From ea5cde1c5dff61799107e2f27eacb8c7a381c2ed Mon Sep 17 00:00:00 2001 From: xueron Date: Tue, 18 Aug 2015 09:12:22 +0800 Subject: [PATCH 01/60] use transaction's connection as readconnection. --- phalcon/mvc/model.zep | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phalcon/mvc/model.zep b/phalcon/mvc/model.zep index d26c9ae12f7..2c6205493f9 100644 --- a/phalcon/mvc/model.zep +++ b/phalcon/mvc/model.zep @@ -377,6 +377,13 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface */ public function getReadConnection() -> { + var transaction; + + let transaction = this->_transaction; + if typeof transaction == "object" { + return transaction->getConnection(); + } + return ( this->_modelsManager)->getReadConnection(this); } From cdd669bfe9ab0223413c68ef4acdb07ffad58f2a Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 18 Aug 2015 00:36:23 +0300 Subject: [PATCH 02/60] Added tests for \Phalcon\Security\Random --- tests/PhalconTest/Security/Random.php | 57 +++++ tests/unit/Phalcon/Security/RandomTest.php | 280 +++++++++++++++++++++ 2 files changed, 337 insertions(+) create mode 100644 tests/PhalconTest/Security/Random.php create mode 100644 tests/unit/Phalcon/Security/RandomTest.php diff --git a/tests/PhalconTest/Security/Random.php b/tests/PhalconTest/Security/Random.php new file mode 100644 index 00000000000..40dc8d26f61 --- /dev/null +++ b/tests/PhalconTest/Security/Random.php @@ -0,0 +1,57 @@ + + * + * 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. + */ + +namespace PhalconTest\Security; + +use \Phalcon\Security\Random as PhRandom; + +class Random extends PhRandom +{ + public function bytes($len = 16) + { + return parent::bytes($len); + } + + public function hex($len = null) + { + return parent::hex($len); + } + + public function base64($len = null) + { + return parent::base64($len); + } + + public function base64Safe($len = null, $padding = false) + { + return parent::base64Safe($len, $padding); + } + + public function uuid() + { + return parent::uuid(); + } + + public function number($len) + { + return parent::number($len); + } +} diff --git a/tests/unit/Phalcon/Security/RandomTest.php b/tests/unit/Phalcon/Security/RandomTest.php new file mode 100644 index 00000000000..fbffb010328 --- /dev/null +++ b/tests/unit/Phalcon/Security/RandomTest.php @@ -0,0 +1,280 @@ + + * + * 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. + */ + +namespace Phalcon\Tests\unit\Phalcon\Security; + +use \PhalconTest\Security\Random as PhTRandom; +use \Phalcon\Tests\unit\Phalcon\_Helper\TestsBase as TBase; + +class RandomTest extends TBase +{ + public function _before() + { + if (!extension_loaded('openssl') && !extension_loaded('libsodium') && !file_exists("/dev/urandom")) { + $this->markTestSkipped('Warning: libsodium or openssl extensions is not loaded and /dev/urandom file does not exists'); + return; + } + + parent::_before(); + } + + /** + * Tests the random number generation + * + * @author Serghei Iakovlev + * @since 2015-08-17 + */ + public function testRandomNumber() + { + $this->specify( + "The random number generation less or equals \$len and greater or equals 0", + function () { + $lens = [ + 2, + 100, + 9, + 8777, + 123456789, + 1, + 9999999999999 + ]; + + $random = new PhTRandom(); + + foreach ($lens as $len) { + $actual = $random->number($len); + + expect($actual)->lessOrEquals($len); + expect($actual)->greaterOrEquals(0); + } + } + ); + } + + /** + * Tests the random UUID v4 generation + * + * @author Serghei Iakovlev + * @since 2015-08-17 + */ + public function testRandomUuid() + { + $this->specify( + "The v4 random method created a properly formatted UUID", + function () { + $random = new PhTRandom(); + + $isValid = function($uuid) { + return (preg_match('/^\{?[0-9a-f]{8}\-?[0-9a-f]{4}\-?[0-9a-f]{4}\-?[0-9a-f]{4}\-?[0-9a-f]{12}\}?$/i', $uuid) === 1); + }; + + for ($i = 0; $i <= 10; $i++) { + $actual = $random->uuid(); + + expect($isValid($actual))->true(); + expect(substr($actual, 14, 1))->equals(4); + expect(in_array(substr($actual, 19, 1), ['8', '9', 'a', 'b']))->true(); + } + } + ); + } + + /** + * Tests the random base64 generation + * + * @author Serghei Iakovlev + * @since 2015-08-17 + */ + public function testRandomBase64() + { + $this->specify( + "The base64 string contains valid chars and result is valid size", + function () { + $lens = [ + 2, + 12, + 16, + 24, + 48, + 100 + ]; + + $random = new PhTRandom(); + + $checkSize = function($base64, $len) { + // Size formula: 4 *( $len / 3) and this need to be rounded up to a multiple of 4. + $formula = (round(4*($len/3))%4 === 0) ? round(4*($len/3)) : round((4*($len/3)+4/2)/4)*4; + + return strlen($base64) == $formula; + }; + + $isValid = function($base64) { + return (preg_match("#[^a-z0-9+_=/-]+#i", $base64) === 0); + }; + + foreach ($lens as $len) { + $actual = $random->base64($len); + + expect($checkSize($actual, $len))->true(); + expect($isValid($actual))->true(); + } + + $actual = $random->base64(); + expect($checkSize($actual, 16))->true(); + expect($isValid($actual))->true(); + } + ); + } + + /** + * Tests the random base64 generation + * + * @author Serghei Iakovlev + * @since 2015-08-17 + */ + public function testRandomBase64Safe() + { + $this->specify( + "The base64 string contains safe and valid chars and result is valid size", + function () { + $lens = [ + 2, + 12, + 16, + 24, + 48, + 100 + ]; + + $random = new PhTRandom(); + + $getSize = function($len) { + // Size formula: 4 *( $len / 3) and this need to be rounded up to a multiple of 4. + return (int)(round(4*($len/3))%4 === 0) ? round(4*($len/3)) : round((4*($len/3)+4/2)/4)*4; + }; + + $isValid = function($base64, $padding = false) { + $pattern = $padding ? "a-z0-9_=-" : "a-z0-9_-"; + return (preg_match("#[^$pattern]+#i", $base64) === 0); + }; + + foreach ($lens as $len) { + $actual = $random->base64Safe($len); + expect(strlen($actual))->lessOrEquals($getSize($len)); + expect($isValid($actual))->true(); + } + + $actual = $random->base64Safe(); + expect(strlen($actual))->lessOrEquals($getSize(16)); + expect($isValid($actual))->true(); + + $actual = $random->base64Safe(null, true); + expect(strlen($actual))->lessOrEquals($getSize(16)); + expect($isValid($actual, true))->true(); + } + ); + } + + /** + * Tests the random hex generation + * + * @author Serghei Iakovlev + * @since 2015-08-17 + */ + public function testRandomHex() + { + $this->specify( + "The hex string contains valid chars and result is valid size", + function () { + $lens = [ + 3, + 6, + 130, + 19, + 710, + 943087 + ]; + + $random = new PhTRandom(); + + $checkSize = function($hex, $len) { + return strlen($hex) == $len * 2; + }; + + $isValid = function($hex) { + return (preg_match("#^[^0-9a-f]+$#i", $hex) === 0); + }; + + foreach ($lens as $len) { + $actual = $random->hex($len); + + expect($checkSize($actual, $len))->true(); + expect($isValid($actual))->true(); + } + + $actual = $random->hex(); + expect($checkSize($actual, 16))->true(); + expect($isValid($actual))->true(); + } + ); + } + + /** + * Tests the random bytes string generation + * + * @author Serghei Iakovlev + * @since 2015-08-17 + */ + public function testRandomByte() + { + $this->specify( + "The random bytes string contains valid chars and result is valid size", + function () { + $lens = [ + 3, + 6, + 19, + 222, + 100, + 9090909, + 12312312 + ]; + + $random = new PhTRandom(); + + $isValid = function($bytes) { + return (preg_match('#^[^\x00-\xFF]+$#', $bytes) === 0); + }; + + foreach ($lens as $len) { + $actual = $random->bytes($len); + + expect(strlen($actual))->equals($len); + expect($isValid($actual))->true(); + } + + $actual = $random->bytes(); + expect(strlen($actual))->equals(16); + expect($isValid($actual))->true(); + } + ); + } +} From d96864c36d8d8f98cd6a6f507edf5bba43dd91a0 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 18 Aug 2015 22:01:21 +0300 Subject: [PATCH 03/60] Improve Random API doc --- phalcon/security/random.zep | 85 +++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/phalcon/security/random.zep b/phalcon/security/random.zep index 4f321aea6c8..6f8e641d463 100644 --- a/phalcon/security/random.zep +++ b/phalcon/security/random.zep @@ -32,41 +32,41 @@ namespace Phalcon\Security; * - /dev/urandom * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * // Random binary string - * $bytes = $random->bytes(); + * // Random binary string + * $bytes = $random->bytes(); * - * // Random hex string - * echo $random->hex(10); // a29f470508d5ccb8e289 - * echo $random->hex(10); // 533c2f08d5eee750e64a - * echo $random->hex(11); // f362ef96cb9ffef150c9cd - * echo $random->hex(12); // 95469d667475125208be45c4 - * echo $random->hex(13); // 05475e8af4a34f8f743ab48761 + * // Random hex string + * echo $random->hex(10); // a29f470508d5ccb8e289 + * echo $random->hex(10); // 533c2f08d5eee750e64a + * echo $random->hex(11); // f362ef96cb9ffef150c9cd + * echo $random->hex(12); // 95469d667475125208be45c4 + * echo $random->hex(13); // 05475e8af4a34f8f743ab48761 * - * // Random base64 string - * echo $random->base64(12); // XfIN81jGGuKkcE1E - * echo $random->base64(12); // 3rcq39QzGK9fUqh8 - * echo $random->base64(); // DRcfbngL/iOo9hGGvy1TcQ== - * echo $random->base64(16); // SvdhPcIHDZFad838Bb0Swg== + * // Random base64 string + * echo $random->base64(12); // XfIN81jGGuKkcE1E + * echo $random->base64(12); // 3rcq39QzGK9fUqh8 + * echo $random->base64(); // DRcfbngL/iOo9hGGvy1TcQ== + * echo $random->base64(16); // SvdhPcIHDZFad838Bb0Swg== * - * // Random URL-safe base64 string - * echo $random->base64Safe(); // PcV6jGbJ6vfVw7hfKIFDGA - * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug - * echo $random->base64Safe(8); // mGyy0evy3ok - * echo $random->base64Safe(null, true); // DRrAgOFkS4rvRiVHFefcQ== + * // Random URL-safe base64 string + * echo $random->base64Safe(); // PcV6jGbJ6vfVw7hfKIFDGA + * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug + * echo $random->base64Safe(8); // mGyy0evy3ok + * echo $random->base64Safe(null, true); // DRrAgOFkS4rvRiVHFefcQ== * - * // Random UUID - * echo $random->uuid(); // db082997-2572-4e2c-a046-5eefe97b1235 - * echo $random->uuid(); // da2aa0e2-b4d0-4e3c-99f5-f5ef62c57fe2 - * echo $random->uuid(); // 75e6b628-c562-4117-bb76-61c4153455a9 - * echo $random->uuid(); // dc446df1-0848-4d05-b501-4af3c220c13d + * // Random UUID + * echo $random->uuid(); // db082997-2572-4e2c-a046-5eefe97b1235 + * echo $random->uuid(); // da2aa0e2-b4d0-4e3c-99f5-f5ef62c57fe2 + * echo $random->uuid(); // 75e6b628-c562-4117-bb76-61c4153455a9 + * echo $random->uuid(); // dc446df1-0848-4d05-b501-4af3c220c13d * - * // Random number between 0 and $len - * echo $random->number(256); // 84 - * echo $random->number(256); // 79 - * echo $random->number(100); // 29 - * echo $random->number(300); // 40 + * // Random number between 0 and $len + * echo $random->number(256); // 84 + * echo $random->number(256); // 79 + * echo $random->number(100); // 29 + * echo $random->number(300); // 40 * * * This class partially borrows SecureRandom library from Ruby @@ -82,9 +82,9 @@ class Random * The result may contain any byte: "x00" - "xFF". * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * $bytes = $random->bytes(); + * $bytes = $random->bytes(); * * * @throws Exception If secure random number generator is not available or unexpected partial read @@ -131,9 +131,9 @@ class Random * The length of the result string is usually greater of $len. * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->hex(10); // a29f470508d5ccb8e289 + * echo $random->hex(10); // a29f470508d5ccb8e289 * * * @throws Exception If secure random number generator is not available or unexpected partial read @@ -148,11 +148,12 @@ class Random * * If $len is not specified, 16 is assumed. It may be larger in future. * The length of the result string is usually greater of $len. + * Size formula: 4 *( $len / 3) and this need to be rounded up to a multiple of 4. * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->base64(12); // 3rcq39QzGK9fUqh8 + * echo $random->base64(12); // 3rcq39QzGK9fUqh8 * * * @throws Exception If secure random number generator is not available or unexpected partial read @@ -173,9 +174,9 @@ class Random * See RFC 3548 for the definition of URL-safe base64. * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug + * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug * * * @link https://www.ietf.org/rfc/rfc3548.txt @@ -206,9 +207,9 @@ class Random * digit and y is one of 8, 9, A, or B (e.g., f47ac10b-58cc-4372-a567-0e02b2c3d479). * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->uuid(); // 1378c906-64bb-4f81-a8d6-4ae1bfcdec22 + * echo $random->uuid(); // 1378c906-64bb-4f81-a8d6-4ae1bfcdec22 * * * @link https://www.ietf.org/rfc/rfc4122.txt @@ -230,10 +231,12 @@ class Random /** * Generates a random number between 0 and $len * + * Returns an integer: 0 <= result <= $len. + * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->number(16); // 8 + * echo $random->number(16); // 8 * * @throws Exception If secure random number generator is not available, unexpected partial read or $len <= 0 */ From dab465dcd1e02eac055509c8903fd100ef65a438 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 19 Aug 2015 23:29:15 +0300 Subject: [PATCH 04/60] Added \Phalcon\Security\Random::base58 --- phalcon/security/random.zep | 62 ++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 5 deletions(-) diff --git a/phalcon/security/random.zep b/phalcon/security/random.zep index 6f8e641d463..8b064666a54 100644 --- a/phalcon/security/random.zep +++ b/phalcon/security/random.zep @@ -67,6 +67,12 @@ namespace Phalcon\Security; * echo $random->number(256); // 79 * echo $random->number(100); // 29 * echo $random->number(300); // 40 + * + * // Random base58 string + * echo $random->base58(); // 4kUgL2pdQMSCQtjE + * echo $random->base58(); // Umjxqf7ZPwh765yR + * echo $random->base58(24); // qoXcgmw4A9dys26HaNEdCRj9 + * echo $random->base58(7); // 774SJD3vgP * * * This class partially borrows SecureRandom library from Ruby @@ -143,6 +149,52 @@ class Random return array_shift(unpack("H*", this->bytes(len))); } + /** + * Generates a random base58 string + * + * If $len is not specified, 16 is assumed. It may be larger in future. + * The result may contain alphanumeric characters except 0, O, I and l. + * + * It is similar to Base64 but has been modified to avoid both non-alphanumeric + * characters and letters which might look ambiguous when printed. + * + * + * $random = new \Phalcon\Security\Random(); + * + * echo $random->base58(); // 4kUgL2pdQMSCQtjE + * + * + * @link https://en.wikipedia.org/wiki/Base58 + * @throws Exception If secure random number generator is not available or unexpected partial read + */ + public function base58(n = null) + { + var bytes, del, key, byte, alphabet; + + let alphabet = array_merge( + range("A", "H"), + range("J", "N"), + range("P", "Z"), + range("a", "k"), + range("m", "z"), + range("1", "9") + ); + + let bytes = unpack("C*", this->bytes(n)); + + for key, byte in bytes { + let byte = byte % 64; + + if byte >= 58 { + let byte = this->number(57); + } + + let bytes[key] = alphabet[byte]; + } + + return join("", bytes); + } + /** * Generates a random base64 string * @@ -220,8 +272,8 @@ class Random var ary; let ary = array_values(unpack("N1a/n1b/n1c/n1d/n1e/N1f", this->bytes(16))); - let ary[2] = (ary[2] & 0x0fff) | 0x4000; - let ary[3] = (ary[3] & 0x3fff) | 0x8000; + let ary[2] = (ary[2] & 0x0fff) | 0x4000, + ary[3] = (ary[3] & 0x3fff) | 0x8000; array_unshift(ary, "%08x-%04x-%04x-%04x-%04x%08x"); @@ -232,7 +284,7 @@ class Random * Generates a random number between 0 and $len * * Returns an integer: 0 <= result <= $len. - + * * * $random = new \Phalcon\Security\Random(); * @@ -259,8 +311,8 @@ class Random let mask = mask | (mask >> 4); do { - let rnd = this->bytes(strlen(bin)); - let first = ord(substr(rnd, 0, 1)); + let rnd = this->bytes(strlen(bin)), + first = ord(substr(rnd, 0, 1)); let rnd = substr_replace(rnd, chr(first & mask), 0, 1); } while (bin < rnd); From d3e8adf48c42b2211f940ffcf37ccd8dff50b0c7 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 19 Aug 2015 23:33:58 +0300 Subject: [PATCH 05/60] Added test for \Phalcon\Security\Random::base58 --- tests/PhalconTest/Security/Random.php | 5 +++ tests/unit/Phalcon/Security/RandomTest.php | 49 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/tests/PhalconTest/Security/Random.php b/tests/PhalconTest/Security/Random.php index 40dc8d26f61..28100b9dd7a 100644 --- a/tests/PhalconTest/Security/Random.php +++ b/tests/PhalconTest/Security/Random.php @@ -35,6 +35,11 @@ public function hex($len = null) return parent::hex($len); } + public function base58($len = null) + { + return parent::base58($len); + } + public function base64($len = null) { return parent::base64($len); diff --git a/tests/unit/Phalcon/Security/RandomTest.php b/tests/unit/Phalcon/Security/RandomTest.php index fbffb010328..403f1c6ef97 100644 --- a/tests/unit/Phalcon/Security/RandomTest.php +++ b/tests/unit/Phalcon/Security/RandomTest.php @@ -97,6 +97,55 @@ function () { ); } + /** + * Tests the random base58 generation + * + * @author Serghei Iakovlev + * @since 2015-08-20 + */ + public function testRandomBase58() + { + $this->specify( + "The base58 string contains valid chars and result is valid size", + function () { + $lens = [ + 2, + 12, + 16, + 24, + 48, + 100 + ]; + + $random = new PhTRandom(); + + $isValid = function($base58) { + $alphabet = array_merge( + range("A", "H"), + range("J", "N"), + range("P", "Z"), + range("a", "k"), + range("m", "z"), + range("1", "9") + ); + + return (preg_match('#^[^'.join('', $alphabet).']+$#i', $base58) === 0); + }; + + foreach ($lens as $len) { + $actual = $random->base58($len); + + expect(strlen($actual))->equals($len); + expect($isValid($actual))->true(); + } + + $actual = $random->base58(); + expect(strlen($actual))->equals(16); + expect($isValid($actual))->true(); + } + ); + } + /** * Tests the random base64 generation * From 4363af608e7631e350efee6191df2cb949eaead8 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 20 Aug 2015 00:04:16 +0300 Subject: [PATCH 06/60] Updated CHANGELOG [ci skip] --- CHANGELOG.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9101f36fa1f..9d5b1862ace 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [2.0.8](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.8) (2015-XX-XX) +- Added `Phalcon\Security\Random::base58` - to generate a random base58 string + # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) - `Image\Adapter\Gd::save()` no longer fails if the method or the instance is created with a filename without an extension - Fixed segfault in `Image\Adapter\Imagick::text()` @@ -5,7 +8,7 @@ - Now you can import macros from other files using `{% include "file.volt" %}` - Undefined function calls fall back to macro calls in Volt - Automatic bound parameters in `Mvc\Model\Criteria` now uses a different prefix -than `Mvc\Model\Query\Builder` to avoid collissions +than `Mvc\Model\Query\Builder` to avoid collisions - Added `Cache\Multiple::flush()` to flush the cache backends added to the multiple system - Fixed `Session\Bag::remove()` - `Session\Bag::destroy()` eliminates any temporary data in the variables bag @@ -37,7 +40,7 @@ belongs to the uniqueId or the whole session data - Now `Validation\Validator\Identical` allows both 'accepted' and 'value' as value to keep backwards compatibility - Added `\Phalcon\Mvc\Model\MetaData\Redis` adapter. - Added Redis Session adapter -- Fixed bug in Mvc\Model\Criteria::fromInput unallowing it to use renamed columns +- Fixed bug in `Mvc\Model\Criteria::fromInput` unallowing it to use renamed columns - Fixed bug in `Http\Request` getRawBody()/getPut() clears input buffer [#10694](https://github.com/phalcon/cphalcon/issues/10694) # [2.0.5](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.5) (2015-07-14) @@ -91,7 +94,7 @@ belongs to the uniqueId or the whole session data # [2.0.3](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.3) (2015-06-10) - Added support for Behaviors in `Phalcon\Mvc\Collection` -- Added SoftDelete and Timestampable behaviors to Collections +- Added `SoftDelete` and `Timestampable` behaviors to Collections - Implemented Namespace aliases in PHQL - Now you can define if a virtual foreign key must ignore null values or not - Fixed bug that added two ? in `Mvc\Url::get()` when using query parameters ([#10421](https://github.com/phalcon/cphalcon/issues/10421)) @@ -122,7 +125,7 @@ belongs to the uniqueId or the whole session data - Added new theme in `Phalcon\Debug` - Allow to count and iterate `Phalcon\Session\Bag` as in 1.3.x - Renamed `getEventsManager()` to `getInternalEventsManager()` in `Phalcon\Di` to avoid collision with existing services - - Added constants FILTER_* to Phalcon\Filter for filters names + - Added constants FILTER_* to `Phalcon\Filter` for filters names - Fixed multibyte characters in cssmin/jsmin - Added `Phalcon\Security::destroyToken()` to remove current token key and value from session removed first argument (password), since it's not used in the function From ce7844c708a1665cd510de75cbf118b134b2d239 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 20 Aug 2015 23:38:41 +0300 Subject: [PATCH 07/60] Improved \Phalcon\Security\Random::base58 performance --- phalcon/security/random.zep | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/phalcon/security/random.zep b/phalcon/security/random.zep index 8b064666a54..bf785233880 100644 --- a/phalcon/security/random.zep +++ b/phalcon/security/random.zep @@ -169,16 +169,10 @@ class Random */ public function base58(n = null) { - var bytes, del, key, byte, alphabet; + var bytes, key, byte; + string alphabet; - let alphabet = array_merge( - range("A", "H"), - range("J", "N"), - range("P", "Z"), - range("a", "k"), - range("m", "z"), - range("1", "9") - ); + let alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; let bytes = unpack("C*", this->bytes(n)); @@ -189,7 +183,7 @@ class Random let byte = this->number(57); } - let bytes[key] = alphabet[byte]; + let bytes[key] = substr(alphabet, byte, 1); } return join("", bytes); From 0cef6a522ef7cf7e5a732726ccdac39f3bceefb8 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 20 Aug 2015 23:53:07 +0300 Subject: [PATCH 08/60] Added support of libsodium into \Phalcon\Security\Random::number --- phalcon/security/random.zep | 49 ++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/phalcon/security/random.zep b/phalcon/security/random.zep index bf785233880..6bd743ca704 100644 --- a/phalcon/security/random.zep +++ b/phalcon/security/random.zep @@ -81,6 +81,8 @@ namespace Phalcon\Security; */ class Random { + const BASE58_ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; + /** * Generates a random binary string * @@ -170,9 +172,6 @@ class Random public function base58(n = null) { var bytes, key, byte; - string alphabet; - - let alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; let bytes = unpack("C*", this->bytes(n)); @@ -183,7 +182,7 @@ class Random let byte = this->number(57); } - let bytes[key] = substr(alphabet, byte, 1); + let bytes[key] = substr(self::BASE58_ALPHABET, byte, 1); } return join("", bytes); @@ -290,31 +289,35 @@ class Random { var hex, bin, mask, rnd, ret, first; - if len > 0 { - let hex = dechex(len); + if len <= 0 { + throw new Exception("Require a positive integer > 0"); + } - if (strlen(hex) & 1) == 1 { - let hex = "0" . hex; - } + if function_exists("\\Sodium\\randombytes_uniform") { + return \\Sodium\\randombytes_uniform(len); + } + + let hex = dechex(len); - let bin = pack("H*", hex); + if (strlen(hex) & 1) == 1 { + let hex = "0" . hex; + } - let mask = ord(substr(bin, 0, 1)); - let mask = mask | (mask >> 1); - let mask = mask | (mask >> 2); - let mask = mask | (mask >> 4); + let bin = pack("H*", hex); - do { - let rnd = this->bytes(strlen(bin)), - first = ord(substr(rnd, 0, 1)); - let rnd = substr_replace(rnd, chr(first & mask), 0, 1); - } while (bin < rnd); + let mask = ord(substr(bin, 0, 1)); + let mask = mask | (mask >> 1); + let mask = mask | (mask >> 2); + let mask = mask | (mask >> 4); - let ret = unpack("H*", rnd); + do { + let rnd = this->bytes(strlen(bin)), + first = ord(substr(rnd, 0, 1)); + let rnd = substr_replace(rnd, chr(first & mask), 0, 1); + } while (bin < rnd); - return hexdec(array_shift(ret)); - } + let ret = unpack("H*", rnd); - throw new Exception("Require a positive integer > 0"); + return hexdec(array_shift(ret)); } } From 955983146174abf8bac7ad14eef2256318467409 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Fri, 21 Aug 2015 01:43:34 +0300 Subject: [PATCH 09/60] Improved \Phalcon\Security\Random performance, CS fixes --- phalcon/security/random.zep | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/phalcon/security/random.zep b/phalcon/security/random.zep index 6bd743ca704..117a62e45b3 100644 --- a/phalcon/security/random.zep +++ b/phalcon/security/random.zep @@ -81,8 +81,6 @@ namespace Phalcon\Security; */ class Random { - const BASE58_ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; - /** * Generates a random binary string * @@ -169,23 +167,25 @@ class Random * @link https://en.wikipedia.org/wiki/Base58 * @throws Exception If secure random number generator is not available or unexpected partial read */ - public function base58(n = null) + public function base58(n = null) -> string { - var bytes, key, byte; + var bytes, idx; + string byteString = "", + alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; let bytes = unpack("C*", this->bytes(n)); - for key, byte in bytes { - let byte = byte % 64; + for idx in bytes { + let idx = idx % 64; - if byte >= 58 { - let byte = this->number(57); + if idx >= 58 { + let idx = this->number(57); } - let bytes[key] = substr(self::BASE58_ALPHABET, byte, 1); + let byteString .= alphabet[(int) idx]; } - return join("", bytes); + return byteString; } /** @@ -287,7 +287,8 @@ class Random */ public function number(int len) -> int { - var hex, bin, mask, rnd, ret, first; + var hex, mask, rnd, ret; + string bin = ""; if len <= 0 { throw new Exception("Require a positive integer > 0"); @@ -303,17 +304,16 @@ class Random let hex = "0" . hex; } - let bin = pack("H*", hex); + let bin .= pack("H*", hex); - let mask = ord(substr(bin, 0, 1)); + let mask = ord(bin[0]); let mask = mask | (mask >> 1); let mask = mask | (mask >> 2); let mask = mask | (mask >> 4); do { - let rnd = this->bytes(strlen(bin)), - first = ord(substr(rnd, 0, 1)); - let rnd = substr_replace(rnd, chr(first & mask), 0, 1); + let rnd = this->bytes(strlen(bin)); + let rnd = substr_replace(rnd, chr(ord(substr(rnd, 0, 1)) & mask), 0, 1); } while (bin < rnd); let ret = unpack("H*", rnd); From ddf803a4bb9e287a47f00aad646b786f7c96c335 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sat, 22 Aug 2015 18:41:00 -0500 Subject: [PATCH 10/60] Updated contributing guide --- CONTRIBUTING.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 86eb4a2ab95..1b1dbbbc166 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,6 +7,18 @@ Phalcon is an open source project and a volunteer effort. Phalcon welcomes contr Contributions to Phalcon should be made in the form of GitHub pull requests. Each pull request will be reviewed by a core contributor (someone with permission to land patches) and either landed in the main tree or given feedback for changes that would be required before it can be merged. All contributions should follow this format, even those from core contributors. *We only accept bug reports, new feature requests and pull requests in GitHub*. For questions regarding the usage of the framework or support requests please visit the [official forums](http://forum.phalconphp.com/). +## Bug Report Checklist + +- Make sure you are using the latest released version of Phalcon before submitting a bug report. + Bugs in versions older than the latest released one will not be addressed by the core team. + +- If you have found a bug it is important to add relevant reproducibility information to your issue to allow us + to reproduce the bug and fix it quicker. Add a script, small program or repository providing the necessary code to + make everyone reproduce the issue reported easily. If a bug cannot be reproduced by the development it would be difficult provide corrections and solutions. [Submit Reproducible Test](https://github.com/phalcon/cphalcon/wiki/Submit-Reproducible-Test) for more information. + +- Be sure that information such as OS, Phalcon version and PHP version are part of the bug report. + + ## Pull Request Checklist - Don't submit your pull requests to the "master" branch. Branch from the required branch and, From 18c08f43c1b6f9248bd5413edba8d64505aca1ea Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sat, 22 Aug 2015 18:47:34 -0500 Subject: [PATCH 11/60] Updated contributing guide (2) --- CONTRIBUTING.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1b1dbbbc166..68b8e537f36 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,10 @@ Phalcon is an open source project and a volunteer effort. Phalcon welcomes contr ## Contributions Contributions to Phalcon should be made in the form of GitHub pull requests. Each pull request will be reviewed by a core contributor (someone with permission to land patches) and either landed in the main tree or given feedback for changes that would be required before it can be merged. All contributions should follow this format, even those from core contributors. -*We only accept bug reports, new feature requests and pull requests in GitHub*. For questions regarding the usage of the framework or support requests please visit the [official forums](http://forum.phalconphp.com/). + +## Questions & Support + +*We only accept bug reports, new feature requests and pull requests in GitHub*. For questions regarding the usage of the framework or support requests please visit the [official forums](https://forum.phalconphp.com/). ## Bug Report Checklist @@ -17,7 +20,8 @@ Contributions to Phalcon should be made in the form of GitHub pull requests. Eac make everyone reproduce the issue reported easily. If a bug cannot be reproduced by the development it would be difficult provide corrections and solutions. [Submit Reproducible Test](https://github.com/phalcon/cphalcon/wiki/Submit-Reproducible-Test) for more information. - Be sure that information such as OS, Phalcon version and PHP version are part of the bug report. - + +- If you're submitting a Segmentation Fault error, we would require a backtrace, please see [Generating a Backtrace](https://github.com/phalcon/cphalcon/wiki/Generating-a-backtrace) ## Pull Request Checklist From 72f7f2ab61e611a231209dd5d8a16b58e2bd2751 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sat, 22 Aug 2015 18:53:17 -0500 Subject: [PATCH 12/60] Updated version to 2.0.8 --- .travis.yml | 1 - config.json | 2 +- phalcon/version.zep | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f29afe54c6..1cba9a12ddf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: php sudo: false php: - - 5.3 - 5.4 - 5.5 - 5.6 diff --git a/config.json b/config.json index 02a75c9af74..5842ea355b4 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": "2.0.7", + "version": "2.0.8", "verbose": false, "optimizer-dirs": [ "optimizers" diff --git a/phalcon/version.zep b/phalcon/version.zep index 238f368108b..f422a9e94c1 100644 --- a/phalcon/version.zep +++ b/phalcon/version.zep @@ -80,7 +80,7 @@ class Version */ protected static function _getVersion() -> array { - return [2, 0, 7, 4, 0]; + return [2, 0, 8, 4, 0]; } /** From 0cdc779ea12b9baf0d1daa5af5e629b0a0780581 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 23 Aug 2015 18:19:34 +0300 Subject: [PATCH 13/60] Update Phalcon\Loader::getPrefixes doc --- phalcon/loader.zep | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phalcon/loader.zep b/phalcon/loader.zep index f96d3acb1c4..3e10d21c4b7 100644 --- a/phalcon/loader.zep +++ b/phalcon/loader.zep @@ -139,6 +139,7 @@ class Loader implements EventsAwareInterface /** * Register directories in which "not found" classes could be found + * @deprecated From Phalcon 2.1.0 version has been removed support for prefixes strategy */ public function registerPrefixes(array! prefixes, boolean merge = false) -> { @@ -160,6 +161,7 @@ class Loader implements EventsAwareInterface /** * Returns the prefixes currently registered in the autoloader + * @deprecated From Phalcon 2.1.0 version has been removed support for prefixes strategy */ public function getPrefixes() -> array { From 25bd2a565c489a6698d26974fcbcaddbf0699251 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sun, 23 Aug 2015 15:44:32 -0500 Subject: [PATCH 14/60] Restoring 5.3 in .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1cba9a12ddf..3f29afe54c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: php sudo: false php: + - 5.3 - 5.4 - 5.5 - 5.6 From e5f9d6b94af9e99e04566c7b5c368bbb288aaaaa Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sun, 23 Aug 2015 18:25:31 -0500 Subject: [PATCH 15/60] Fixes #1624 --- ext/phalcon/session/adapter.zep.c | 17 +++++++++++++++++ ext/phalcon/session/adapter.zep.h | 2 ++ ext/php_phalcon.h | 2 +- phalcon/session/adapter.zep | 8 ++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ext/phalcon/session/adapter.zep.c b/ext/phalcon/session/adapter.zep.c index 6eb0661dd7a..fd665435261 100644 --- a/ext/phalcon/session/adapter.zep.c +++ b/ext/phalcon/session/adapter.zep.c @@ -587,3 +587,20 @@ PHP_METHOD(Phalcon_Session_Adapter, __unset) { } +PHP_METHOD(Phalcon_Session_Adapter, __destruct) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *_0; + + ZEPHIR_MM_GROW(); + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_started"), PH_NOISY_CC); + if (zephir_is_true(_0)) { + ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 62); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_started"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + ZEPHIR_MM_RESTORE(); + +} + diff --git a/ext/phalcon/session/adapter.zep.h b/ext/phalcon/session/adapter.zep.h index aee18de19af..d079c90bd71 100644 --- a/ext/phalcon/session/adapter.zep.h +++ b/ext/phalcon/session/adapter.zep.h @@ -23,6 +23,7 @@ PHP_METHOD(Phalcon_Session_Adapter, __get); PHP_METHOD(Phalcon_Session_Adapter, __set); PHP_METHOD(Phalcon_Session_Adapter, __isset); PHP_METHOD(Phalcon_Session_Adapter, __unset); +PHP_METHOD(Phalcon_Session_Adapter, __destruct); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapter___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) @@ -105,5 +106,6 @@ ZEPHIR_INIT_FUNCS(phalcon_session_adapter_method_entry) { PHP_ME(Phalcon_Session_Adapter, __set, arginfo_phalcon_session_adapter___set, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __isset, arginfo_phalcon_session_adapter___isset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __unset, arginfo_phalcon_session_adapter___unset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Adapter, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR) PHP_FE_END }; diff --git a/ext/php_phalcon.h b/ext/php_phalcon.h index 5a9097fa82e..71240e5a589 100644 --- a/ext/php_phalcon.h +++ b/ext/php_phalcon.h @@ -11,7 +11,7 @@ #include "kernel/globals.h" #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "2.0.7" +#define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" #define PHP_PHALCON_ZEPVERSION "0.7.1b" diff --git a/phalcon/session/adapter.zep b/phalcon/session/adapter.zep index bb8c42d5e15..02fc7dc6f61 100644 --- a/phalcon/session/adapter.zep +++ b/phalcon/session/adapter.zep @@ -333,4 +333,12 @@ abstract class Adapter { return this->remove(index); } + + public function __destruct() + { + if this->_started { + session_write_close(); + let this->_started = false; + } + } } From 4540e579f5585cde946f5d6d061d28917a452684 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sun, 23 Aug 2015 18:26:32 -0500 Subject: [PATCH 16/60] Updating ext/ [ci skip] --- ext/phalcon/0__closure.zep.c | 2 +- ext/phalcon/acl/adapter/memory.zep.c | 6 +- ext/phalcon/annotations/adapter/apc.zep.c | 4 +- ext/phalcon/annotations/adapter/xcache.zep.c | 8 +- ext/phalcon/annotations/annotation.zep.c | 4 +- ext/phalcon/annotations/collection.zep.c | 2 +- ext/phalcon/annotations/reader.zep.c | 14 +- ext/phalcon/assets/collection.zep.c | 10 +- ext/phalcon/assets/inline/css.zep.c | 2 +- ext/phalcon/assets/inline/js.zep.c | 2 +- ext/phalcon/assets/manager.zep.c | 14 +- ext/phalcon/assets/resource.zep.c | 4 +- ext/phalcon/assets/resource/css.zep.c | 2 +- ext/phalcon/assets/resource/js.zep.c | 2 +- ext/phalcon/cache/backend/apc.zep.c | 18 +- ext/phalcon/cache/backend/file.zep.c | 10 +- ext/phalcon/cache/backend/libmemcached.zep.c | 2 +- ext/phalcon/cache/backend/memcache.zep.c | 2 +- ext/phalcon/cache/backend/memory.zep.c | 4 +- ext/phalcon/cache/backend/mongo.zep.c | 24 +- ext/phalcon/cache/backend/redis.zep.c | 2 +- ext/phalcon/cache/backend/xcache.zep.c | 38 +- ext/phalcon/cache/frontend/base64.zep.c | 4 +- ext/phalcon/cache/frontend/data.zep.c | 4 +- ext/phalcon/cache/frontend/igbinary.zep.c | 4 +- ext/phalcon/cache/frontend/output.zep.c | 6 +- ext/phalcon/cli/console.zep.c | 12 +- ext/phalcon/cli/dispatcher.zep.c | 2 +- ext/phalcon/cli/router.zep.c | 8 +- ext/phalcon/config/adapter/ini.zep.c | 4 +- ext/phalcon/config/adapter/yaml.zep.c | 6 +- ext/phalcon/crypt.zep.c | 68 ++-- ext/phalcon/db/adapter/pdo/mysql.zep.c | 2 +- ext/phalcon/db/adapter/pdo/oracle.zep.c | 4 +- ext/phalcon/db/adapter/pdo/postgresql.zep.c | 4 +- ext/phalcon/db/adapter/pdo/sqlite.zep.c | 4 +- ext/phalcon/db/column.zep.c | 2 +- ext/phalcon/db/dialect/mysql.zep.c | 10 +- ext/phalcon/db/dialect/oracle.zep.c | 40 +- ext/phalcon/db/dialect/postgresql.zep.c | 14 +- ext/phalcon/db/dialect/sqlite.zep.c | 6 +- ext/phalcon/db/profiler.zep.c | 8 +- ext/phalcon/debug.zep.c | 50 +-- ext/phalcon/debug/dump.zep.c | 50 +-- ext/phalcon/di.zep.c | 22 +- ext/phalcon/di/factorydefault.zep.c | 44 +-- ext/phalcon/di/factorydefault/cli.zep.c | 22 +- ext/phalcon/di/service.zep.c | 4 +- ext/phalcon/di/service/builder.zep.c | 8 +- ext/phalcon/escaper.zep.c | 18 +- ext/phalcon/events/manager.zep.c | 20 +- ext/phalcon/filter.zep.c | 18 +- ext/phalcon/flash/direct.zep.c | 2 +- ext/phalcon/flash/session.zep.c | 4 +- ext/phalcon/forms/element/check.zep.c | 2 +- ext/phalcon/forms/element/date.zep.c | 2 +- ext/phalcon/forms/element/email.zep.c | 2 +- ext/phalcon/forms/element/file.zep.c | 2 +- ext/phalcon/forms/element/hidden.zep.c | 2 +- ext/phalcon/forms/element/numeric.zep.c | 2 +- ext/phalcon/forms/element/password.zep.c | 2 +- ext/phalcon/forms/element/radio.zep.c | 2 +- ext/phalcon/forms/element/select.zep.c | 4 +- ext/phalcon/forms/element/submit.zep.c | 2 +- ext/phalcon/forms/element/text.zep.c | 2 +- ext/phalcon/forms/element/textarea.zep.c | 2 +- ext/phalcon/forms/form.zep.c | 10 +- ext/phalcon/forms/manager.zep.c | 2 +- ext/phalcon/http/cookie.zep.c | 4 +- ext/phalcon/http/request.zep.c | 60 +-- ext/phalcon/http/request/file.zep.c | 14 +- ext/phalcon/http/response.zep.c | 6 +- ext/phalcon/http/response/headers.zep.c | 6 +- ext/phalcon/image/adapter.zep.c | 14 +- ext/phalcon/image/adapter/gd.zep.c | 292 +++++++-------- ext/phalcon/image/adapter/imagick.zep.c | 76 ++-- ext/phalcon/loader.zep.c | 10 +- ext/phalcon/logger/adapter/file.zep.c | 6 +- ext/phalcon/logger/adapter/firephp.zep.c | 10 +- ext/phalcon/logger/adapter/stream.zep.c | 4 +- ext/phalcon/logger/adapter/syslog.zep.c | 6 +- ext/phalcon/logger/formatter/firephp.zep.c | 6 +- ext/phalcon/logger/formatter/line.zep.c | 2 +- ext/phalcon/mvc/collection.zep.c | 10 +- .../collection/behavior/timestampable.zep.c | 2 +- ext/phalcon/mvc/micro.zep.c | 18 +- ext/phalcon/mvc/model.zep.c | 327 ++++++++-------- .../mvc/model/behavior/timestampable.zep.c | 2 +- ext/phalcon/mvc/model/criteria.zep.c | 6 +- ext/phalcon/mvc/model/manager.zep.c | 16 +- ext/phalcon/mvc/model/metadata/apc.zep.c | 4 +- .../mvc/model/metadata/libmemcached.zep.c | 6 +- ext/phalcon/mvc/model/metadata/memcache.zep.c | 6 +- ext/phalcon/mvc/model/metadata/redis.zep.c | 6 +- ext/phalcon/mvc/model/metadata/xcache.zep.c | 4 +- ext/phalcon/mvc/model/query.zep.c | 158 ++++---- ext/phalcon/mvc/model/query/builder.zep.c | 8 +- ext/phalcon/mvc/model/resultset.zep.c | 10 +- ext/phalcon/mvc/model/resultset/complex.zep.c | 6 +- ext/phalcon/mvc/model/resultset/simple.zep.c | 10 +- ext/phalcon/mvc/model/transaction.zep.c | 4 +- .../mvc/model/transaction/manager.zep.c | 6 +- ext/phalcon/mvc/model/validator/email.zep.c | 2 +- .../mvc/model/validator/inclusionin.zep.c | 2 +- ext/phalcon/mvc/model/validator/ip.zep.c | 2 +- .../mvc/model/validator/stringlength.zep.c | 2 +- ext/phalcon/mvc/model/validator/url.zep.c | 2 +- ext/phalcon/mvc/router.zep.c | 8 +- ext/phalcon/mvc/router/annotations.zep.c | 2 +- ext/phalcon/mvc/router/group.zep.c | 6 +- ext/phalcon/mvc/url.zep.c | 2 +- ext/phalcon/mvc/view.zep.c | 16 +- ext/phalcon/mvc/view/engine/php.zep.c | 4 +- ext/phalcon/mvc/view/engine/volt.zep.c | 32 +- .../mvc/view/engine/volt/compiler.zep.c | 102 ++--- ext/phalcon/mvc/view/simple.zep.c | 14 +- .../paginator/adapter/nativearray.zep.c | 4 +- ext/phalcon/queue/beanstalk.zep.c | 48 +-- ext/phalcon/registry.zep.c | 18 +- ext/phalcon/security.zep.c | 22 +- ext/phalcon/security/random.zep.c | 348 +++++++++++------- ext/phalcon/security/random.zep.h | 6 + .../session/adapter/libmemcached.zep.c | 8 +- ext/phalcon/session/adapter/memcache.zep.c | 8 +- ext/phalcon/session/adapter/redis.zep.c | 8 +- ext/phalcon/session/bag.zep.c | 2 +- ext/phalcon/tag.zep.c | 56 +-- ext/phalcon/tag/select.zep.c | 8 +- ext/phalcon/text.zep.c | 48 +-- ext/phalcon/translate/adapter/csv.zep.c | 8 +- ext/phalcon/translate/adapter/gettext.zep.c | 28 +- .../translate/adapter/nativearray.zep.c | 2 +- .../translate/interpolator/indexedarray.zep.c | 2 +- ext/phalcon/validation/message.zep.c | 2 +- ext/phalcon/validation/validator/alnum.zep.c | 4 +- ext/phalcon/validation/validator/alpha.zep.c | 4 +- .../validation/validator/between.zep.c | 2 +- .../validation/validator/confirmation.zep.c | 8 +- ext/phalcon/validation/validator/digit.zep.c | 4 +- ext/phalcon/validation/validator/email.zep.c | 4 +- .../validation/validator/exclusionin.zep.c | 2 +- ext/phalcon/validation/validator/file.zep.c | 30 +- .../validation/validator/identical.zep.c | 2 +- .../validation/validator/inclusionin.zep.c | 4 +- .../validation/validator/numericality.zep.c | 2 +- .../validation/validator/presenceof.zep.c | 2 +- ext/phalcon/validation/validator/regex.zep.c | 2 +- .../validation/validator/stringlength.zep.c | 6 +- .../validation/validator/uniqueness.zep.c | 2 +- ext/phalcon/validation/validator/url.zep.c | 4 +- ext/phalcon/version.zep.c | 10 +- 151 files changed, 1414 insertions(+), 1313 deletions(-) diff --git a/ext/phalcon/0__closure.zep.c b/ext/phalcon/0__closure.zep.c index 6534e0e4a7a..e48ee4cee1c 100644 --- a/ext/phalcon/0__closure.zep.c +++ b/ext/phalcon/0__closure.zep.c @@ -39,7 +39,7 @@ PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 441, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); diff --git a/ext/phalcon/acl/adapter/memory.zep.c b/ext/phalcon/acl/adapter/memory.zep.c index c3720e808d5..7c0ae982e1d 100644 --- a/ext/phalcon/acl/adapter/memory.zep.c +++ b/ext/phalcon/acl/adapter/memory.zep.c @@ -189,7 +189,7 @@ 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, 78, role); + ZEPHIR_CALL_METHOD(NULL, roleObject, "__construct", NULL, 79, role); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rolesNames"), PH_NOISY_CC); @@ -258,7 +258,7 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { ; zephir_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(deepInheritName, _7); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 79, roleName, deepInheritName); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 80, roleName, deepInheritName); zephir_check_call_status(); } } @@ -361,7 +361,7 @@ 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, 80, resourceName); + ZEPHIR_CALL_METHOD(NULL, resourceObject, "__construct", NULL, 81, resourceName); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_resourcesNames"), PH_NOISY_CC); diff --git a/ext/phalcon/annotations/adapter/apc.zep.c b/ext/phalcon/annotations/adapter/apc.zep.c index dcbcfff5b6f..49cadd4ad01 100644 --- a/ext/phalcon/annotations/adapter/apc.zep.c +++ b/ext/phalcon/annotations/adapter/apc.zep.c @@ -105,7 +105,7 @@ 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, 81, _0); + ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 82, _0); zephir_check_call_status(); RETURN_MM(); @@ -142,7 +142,7 @@ PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_CONCAT_SVV(_2, "_PHAN", _1, key); zephir_fast_strtolower(_0, _2); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 82, _0, data, _3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 83, _0, data, _3); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/annotations/adapter/xcache.zep.c b/ext/phalcon/annotations/adapter/xcache.zep.c index 84df494c286..0864965e40a 100644 --- a/ext/phalcon/annotations/adapter/xcache.zep.c +++ b/ext/phalcon/annotations/adapter/xcache.zep.c @@ -71,10 +71,10 @@ 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, 83, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 84, _0); zephir_check_call_status(); if (Z_TYPE_P(serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 74, serialized); + ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 75, serialized); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_OBJECT) { RETURN_CCTOR(data); @@ -113,9 +113,9 @@ 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, 73, data); + ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 74, data); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _0, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _0, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/annotations/annotation.zep.c b/ext/phalcon/annotations/annotation.zep.c index 06bb61eff47..6ebd3c9cd27 100644 --- a/ext/phalcon/annotations/annotation.zep.c +++ b/ext/phalcon/annotations/annotation.zep.c @@ -167,7 +167,7 @@ PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { ) { ZEPHIR_GET_HVALUE(item, _3); zephir_array_fetch_string(&_4, item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 85, _4); + ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 86, _4); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, item, SS("name"), 0 TSRMLS_CC)) { @@ -180,7 +180,7 @@ 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, 86, expr); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 87, expr); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/annotations/collection.zep.c b/ext/phalcon/annotations/collection.zep.c index 32665cce373..acf440e37a3 100644 --- a/ext/phalcon/annotations/collection.zep.c +++ b/ext/phalcon/annotations/collection.zep.c @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Annotations_Collection, __construct) { ZEPHIR_GET_HVALUE(annotationData, _3); ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 86, annotationData); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 87, annotationData); zephir_check_call_status(); zephir_array_append(&annotations, _4, PH_SEPARATE, "phalcon/annotations/collection.zep", 66); } diff --git a/ext/phalcon/annotations/reader.zep.c b/ext/phalcon/annotations/reader.zep.c index 2e6389a63e6..45b4a0dbca5 100644 --- a/ext/phalcon/annotations/reader.zep.c +++ b/ext/phalcon/annotations/reader.zep.c @@ -57,15 +57,15 @@ PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotations); ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 87); + ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 88); zephir_check_call_status(); if (Z_TYPE_P(comment) == IS_STRING) { ZEPHIR_INIT_VAR(classAnnotations); - ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 89); + ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 90); zephir_check_call_status(); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(classAnnotations, comment, _0, _1 TSRMLS_CC); zephir_check_call_status(); @@ -73,7 +73,7 @@ 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, 90); + ZEPHIR_CALL_METHOD(&properties, reflection, "getproperties", NULL, 91); zephir_check_call_status(); if (zephir_fast_count_int(properties TSRMLS_CC)) { line = 1; @@ -89,7 +89,7 @@ PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_check_call_status(); if (Z_TYPE_P(comment) == IS_STRING) { ZEPHIR_INIT_NVAR(propertyAnnotations); - ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_5); ZVAL_LONG(_5, line); @@ -106,7 +106,7 @@ 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, 91); + ZEPHIR_CALL_METHOD(&methods, reflection, "getmethods", NULL, 92); zephir_check_call_status(); if (zephir_fast_count_int(methods TSRMLS_CC)) { ZEPHIR_INIT_VAR(annotationsMethods); diff --git a/ext/phalcon/assets/collection.zep.c b/ext/phalcon/assets/collection.zep.c index dd17459b630..2c0c0544f45 100644 --- a/ext/phalcon/assets/collection.zep.c +++ b/ext/phalcon/assets/collection.zep.c @@ -232,7 +232,7 @@ PHP_METHOD(Phalcon_Assets_Collection, addCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 92, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -271,7 +271,7 @@ PHP_METHOD(Phalcon_Assets_Collection, addInlineCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -335,7 +335,7 @@ PHP_METHOD(Phalcon_Assets_Collection, addJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -374,7 +374,7 @@ PHP_METHOD(Phalcon_Assets_Collection, addInlineJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -707,7 +707,7 @@ 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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/assets/inline/css.zep.c b/ext/phalcon/assets/inline/css.zep.c index 38fe02ee588..841edc7d1c3 100644 --- a/ext/phalcon/assets/inline/css.zep.c +++ b/ext/phalcon/assets/inline/css.zep.c @@ -69,7 +69,7 @@ PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/assets/inline/js.zep.c b/ext/phalcon/assets/inline/js.zep.c index b8c5a295263..62ae3c8b685 100644 --- a/ext/phalcon/assets/inline/js.zep.c +++ b/ext/phalcon/assets/inline/js.zep.c @@ -69,7 +69,7 @@ PHP_METHOD(Phalcon_Assets_Inline_Js, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/assets/manager.zep.c b/ext/phalcon/assets/manager.zep.c index 2752f94c91b..f92b8e65c79 100644 --- a/ext/phalcon/assets/manager.zep.c +++ b/ext/phalcon/assets/manager.zep.c @@ -157,7 +157,7 @@ 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, 92, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -191,7 +191,7 @@ 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, 93, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -243,7 +243,7 @@ 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, 94, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -277,7 +277,7 @@ 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, 95, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -328,7 +328,7 @@ 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, 97, resource); + ZEPHIR_CALL_METHOD(NULL, collection, "add", NULL, 98, resource); zephir_check_call_status(); RETURN_THIS(); @@ -370,7 +370,7 @@ 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, 98, code); + ZEPHIR_CALL_METHOD(NULL, collection, "addinline", NULL, 99, code); zephir_check_call_status(); RETURN_THIS(); @@ -647,7 +647,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 99, completeTargetPath); + ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 100, completeTargetPath); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/assets/resource.zep.c b/ext/phalcon/assets/resource.zep.c index 40aa21660af..eaf2e238cbf 100644 --- a/ext/phalcon/assets/resource.zep.c +++ b/ext/phalcon/assets/resource.zep.c @@ -415,7 +415,7 @@ PHP_METHOD(Phalcon_Assets_Resource, getRealSourcePath) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_VV(_1, basePath, sourcePath); - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 62, _1); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, _1); zephir_check_call_status(); RETURN_MM(); } @@ -454,7 +454,7 @@ 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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/assets/resource/css.zep.c b/ext/phalcon/assets/resource/css.zep.c index af6ec104f6b..ab0e9dae004 100644 --- a/ext/phalcon/assets/resource/css.zep.c +++ b/ext/phalcon/assets/resource/css.zep.c @@ -79,7 +79,7 @@ PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 100, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 101, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/assets/resource/js.zep.c b/ext/phalcon/assets/resource/js.zep.c index faf64825919..4bdebff3e45 100644 --- a/ext/phalcon/assets/resource/js.zep.c +++ b/ext/phalcon/assets/resource/js.zep.c @@ -59,7 +59,7 @@ PHP_METHOD(Phalcon_Assets_Resource_Js, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 100, _1, path, local, filter, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 101, _1, path, local, filter, attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/cache/backend/apc.zep.c b/ext/phalcon/cache/backend/apc.zep.c index 22886953735..c2548d8fb85 100644 --- a/ext/phalcon/cache/backend/apc.zep.c +++ b/ext/phalcon/cache/backend/apc.zep.c @@ -92,7 +92,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCA", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(cachedContent)) { RETURN_MM_NULL(); @@ -173,7 +173,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, lastKey, preparedContent, ttl); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, lastKey, preparedContent, ttl); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); zephir_check_call_status(); @@ -221,11 +221,11 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, increment) { if ((zephir_function_exists_ex(SS("apc_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 101, prefixedKey, _1); + ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 102, prefixedKey, _1); zephir_check_call_status(); RETURN_CCTOR(result); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_NVAR(result); @@ -273,11 +273,11 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement) { if ((zephir_function_exists_ex(SS("apc_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 102, lastKey, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 103, lastKey, _1); zephir_check_call_status(); RETURN_MM(); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, lastKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, lastKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_VAR(result); @@ -321,7 +321,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "_PHCA", _0, keyName); - ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 103, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 104, _1); zephir_check_call_status(); RETURN_MM(); @@ -427,7 +427,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCA", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 104, lastKey); + ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 105, lastKey); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(_1)) { RETURN_MM_BOOL(1); @@ -471,7 +471,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, flush) { ZEPHIR_CPY_WRT(item, (*ZEPHIR_TMP_ITERATOR_PTR)); } zephir_array_fetch_string(&_4, item, SL("key"), PH_NOISY | PH_READONLY, "phalcon/cache/backend/apc.zep", 264 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 103, _4); + ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 104, _4); zephir_check_call_status(); } _0->funcs->dtor(_0 TSRMLS_CC); diff --git a/ext/phalcon/cache/backend/file.zep.c b/ext/phalcon/cache/backend/file.zep.c index 72965fa510c..2f928a73899 100644 --- a/ext/phalcon/cache/backend/file.zep.c +++ b/ext/phalcon/cache/backend/file.zep.c @@ -123,7 +123,7 @@ PHP_METHOD(Phalcon_Cache_Backend_File, __construct) { return; } } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -336,7 +336,7 @@ 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, 106, cacheFile); + ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 107, cacheFile); zephir_check_call_status(); RETURN_MM(); } @@ -375,7 +375,7 @@ PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_INIT_VAR(_2); object_init_ex(_2, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -655,7 +655,7 @@ 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, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -677,7 +677,7 @@ PHP_METHOD(Phalcon_Cache_Backend_File, flush) { _4 = zephir_start_with(key, prefix, NULL); } if (_4) { - ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 106, cacheFile); + ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 107, cacheFile); zephir_check_call_status(); if (!(zephir_is_true(_5))) { RETURN_MM_BOOL(0); diff --git a/ext/phalcon/cache/backend/libmemcached.zep.c b/ext/phalcon/cache/backend/libmemcached.zep.c index a8b1485dcf6..9fe8dab2996 100644 --- a/ext/phalcon/cache/backend/libmemcached.zep.c +++ b/ext/phalcon/cache/backend/libmemcached.zep.c @@ -112,7 +112,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, __construct) { ZVAL_STRING(_1, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_1, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/cache/backend/memcache.zep.c b/ext/phalcon/cache/backend/memcache.zep.c index 946b6f82fb7..7522ecdb76f 100644 --- a/ext/phalcon/cache/backend/memcache.zep.c +++ b/ext/phalcon/cache/backend/memcache.zep.c @@ -107,7 +107,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Memcache, __construct) { ZVAL_STRING(_0, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/cache/backend/memory.zep.c b/ext/phalcon/cache/backend/memory.zep.c index 208f1cc551f..f7939b63d4d 100644 --- a/ext/phalcon/cache/backend/memory.zep.c +++ b/ext/phalcon/cache/backend/memory.zep.c @@ -412,7 +412,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Memory, serialize) { ZEPHIR_OBS_VAR(_1); zephir_read_property_this(&_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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -431,7 +431,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Memory, unserialize) { - ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 75, 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); diff --git a/ext/phalcon/cache/backend/mongo.zep.c b/ext/phalcon/cache/backend/mongo.zep.c index 78e457f13fd..a2c58af77a4 100644 --- a/ext/phalcon/cache/backend/mongo.zep.c +++ b/ext/phalcon/cache/backend/mongo.zep.c @@ -96,7 +96,7 @@ 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", 79); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -208,7 +208,7 @@ 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, 108); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&document, _3, "findone", NULL, 0, conditions); zephir_check_call_status(); @@ -305,7 +305,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_0); zephir_time(_0); @@ -370,7 +370,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -380,7 +380,7 @@ 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, 109); + ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 110); 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); @@ -432,7 +432,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { zephir_time(_0); zephir_array_update_string(&_2, SL("$gt"), &_0, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 1, 0 TSRMLS_CC); @@ -497,7 +497,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, exists) { ZEPHIR_CONCAT_VV(lastKey, _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 2, 0 TSRMLS_CC); @@ -528,7 +528,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, gc) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -570,7 +570,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -628,7 +628,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -670,11 +670,11 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, flush) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "remove", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 109); + ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 110); zephir_check_call_status(); if (zephir_safe_mod_long_long(zephir_get_intval(_1), 100 TSRMLS_CC) == 0) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "gc", NULL, 0); diff --git a/ext/phalcon/cache/backend/redis.zep.c b/ext/phalcon/cache/backend/redis.zep.c index 45099dbe098..78b02a1f848 100644 --- a/ext/phalcon/cache/backend/redis.zep.c +++ b/ext/phalcon/cache/backend/redis.zep.c @@ -119,7 +119,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Redis, __construct) { ZVAL_STRING(_0, "_PHCR", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/cache/backend/xcache.zep.c b/ext/phalcon/cache/backend/xcache.zep.c index c163fd24cb0..ee23ff82e98 100644 --- a/ext/phalcon/cache/backend/xcache.zep.c +++ b/ext/phalcon/cache/backend/xcache.zep.c @@ -86,7 +86,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, __construct) { ZVAL_STRING(_0, "_PHCX", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -118,7 +118,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCX", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 83, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 84, prefixedKey); zephir_check_call_status(); if (!(zephir_is_true(cachedContent))) { RETURN_MM_NULL(); @@ -204,10 +204,10 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_CPY_WRT(tt1, lifetime); } if (zephir_is_numeric(cachedContent)) { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, cachedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, cachedContent, tt1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, preparedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, preparedContent, tt1); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); @@ -229,14 +229,14 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 169); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 85, specialKey, keys); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -268,14 +268,14 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, delete) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 199); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -318,7 +318,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { } ZEPHIR_INIT_VAR(retval); array_init(retval); - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -374,7 +374,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCX", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 110, lastKey); + ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 111, lastKey); zephir_check_call_status(); RETURN_MM(); } @@ -420,14 +420,14 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, increment) { if ((zephir_function_exists_ex(SS("xcache_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 111, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 112, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -472,14 +472,14 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, decrement) { if ((zephir_function_exists_ex(SS("xcache_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 112, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 113, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -507,7 +507,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 350); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -519,10 +519,10 @@ PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_GET_HMKEY(key, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); zephir_array_unset(&keys, key, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 113, key); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 114, key); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); } RETURN_MM_BOOL(1); diff --git a/ext/phalcon/cache/frontend/base64.zep.c b/ext/phalcon/cache/frontend/base64.zep.c index 38bb2681582..9854dc735c6 100644 --- a/ext/phalcon/cache/frontend/base64.zep.c +++ b/ext/phalcon/cache/frontend/base64.zep.c @@ -158,7 +158,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Base64, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, data); zephir_check_call_status(); RETURN_MM(); @@ -180,7 +180,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Base64, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 115, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 116, data); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/cache/frontend/data.zep.c b/ext/phalcon/cache/frontend/data.zep.c index e9d4df4202f..e6072167324 100644 --- a/ext/phalcon/cache/frontend/data.zep.c +++ b/ext/phalcon/cache/frontend/data.zep.c @@ -159,7 +159,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, data); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, data); zephir_check_call_status(); RETURN_MM(); @@ -178,7 +178,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 74, data); + ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 75, data); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/cache/frontend/igbinary.zep.c b/ext/phalcon/cache/frontend/igbinary.zep.c index 16f1349c07f..4c2de712220 100644 --- a/ext/phalcon/cache/frontend/igbinary.zep.c +++ b/ext/phalcon/cache/frontend/igbinary.zep.c @@ -159,7 +159,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 116, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 117, data); zephir_check_call_status(); RETURN_MM(); @@ -181,7 +181,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 117, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 118, data); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/cache/frontend/output.zep.c b/ext/phalcon/cache/frontend/output.zep.c index 2510a771ecd..9f4948eb65b 100644 --- a/ext/phalcon/cache/frontend/output.zep.c +++ b/ext/phalcon/cache/frontend/output.zep.c @@ -138,7 +138,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Output, start) { ZEPHIR_MM_GROW(); zephir_update_property_this(this_ptr, SL("_buffering"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -158,7 +158,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Output, getContent) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 119); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 120); zephir_check_call_status(); RETURN_MM(); } @@ -178,7 +178,7 @@ PHP_METHOD(Phalcon_Cache_Frontend_Output, stop) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_buffering"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); diff --git a/ext/phalcon/cli/console.zep.c b/ext/phalcon/cli/console.zep.c index 22a2db0ae42..cf4a9a547ca 100644 --- a/ext/phalcon/cli/console.zep.c +++ b/ext/phalcon/cli/console.zep.c @@ -425,7 +425,7 @@ PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (_0) { Z_SET_ISREF_P(arguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 121, arguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 122, arguments); Z_UNSET_ISREF_P(arguments); zephir_check_call_status(); } @@ -440,7 +440,7 @@ PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_5, "--", 0); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 2); - ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 122, arg, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 123, arg, &_5, &_6); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_5); @@ -477,7 +477,7 @@ PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_12, "-", 0); ZEPHIR_SINIT_NVAR(_13); ZVAL_LONG(&_13, 1); - ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 122, arg, &_12, &_13); + ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 123, arg, &_12, &_13); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_15, 0)) { ZEPHIR_SINIT_NVAR(_12); @@ -495,21 +495,21 @@ PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (str) { ZEPHIR_INIT_NVAR(_9); - ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 123); + ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 124); zephir_check_call_status(); zephir_fast_join(_9, _7, args TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_arguments"), _9 TSRMLS_CC); } else { if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("task"), &_15, PH_COPY | PH_SEPARATE); } if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("action"), &_7, PH_COPY | PH_SEPARATE); diff --git a/ext/phalcon/cli/dispatcher.zep.c b/ext/phalcon/cli/dispatcher.zep.c index 650cd2c57fe..49547dea369 100644 --- a/ext/phalcon/cli/dispatcher.zep.c +++ b/ext/phalcon/cli/dispatcher.zep.c @@ -72,7 +72,7 @@ PHP_METHOD(Phalcon_Cli_Dispatcher, __construct) { ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_options"), _0 TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 124); + ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 125); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/cli/router.zep.c b/ext/phalcon/cli/router.zep.c index dcdb0456033..2f5c52d6270 100644 --- a/ext/phalcon/cli/router.zep.c +++ b/ext/phalcon/cli/router.zep.c @@ -108,7 +108,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_1, SS("task"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 125, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 126, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/cli/router.zep", 90); @@ -121,7 +121,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 125, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 126, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/cli/router.zep", 96); @@ -439,7 +439,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { ZEPHIR_INIT_VAR(strParams); zephir_substr(strParams, _15, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); if (zephir_is_true(strParams)) { - ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 123); + ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 124); zephir_check_call_status(); ZEPHIR_INIT_NVAR(params); zephir_fast_explode(params, _17, strParams, LONG_MAX TSRMLS_CC); @@ -506,7 +506,7 @@ 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, 125, pattern, paths); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 126, pattern, paths); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), route TSRMLS_CC); RETURN_CCTOR(route); diff --git a/ext/phalcon/config/adapter/ini.zep.c b/ext/phalcon/config/adapter/ini.zep.c index 29e9e518666..cf9a1da0184 100644 --- a/ext/phalcon/config/adapter/ini.zep.c +++ b/ext/phalcon/config/adapter/ini.zep.c @@ -89,7 +89,7 @@ PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { } - ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 126, filePath, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 127, filePath, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(iniConfig)) { ZEPHIR_INIT_VAR(_0); @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { zephir_substr(_3, path, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); zephir_get_strval(path, _3); zephir_create_array(return_value, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 127, path, value); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 128, path, value); zephir_check_call_status(); zephir_array_update_zval(&return_value, key, &_4, PH_COPY); RETURN_MM(); diff --git a/ext/phalcon/config/adapter/yaml.zep.c b/ext/phalcon/config/adapter/yaml.zep.c index f8027dd58da..23ecb3375b3 100644 --- a/ext/phalcon/config/adapter/yaml.zep.c +++ b/ext/phalcon/config/adapter/yaml.zep.c @@ -90,7 +90,7 @@ PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "yaml", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 129, &_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", 62); @@ -102,11 +102,11 @@ PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, ndocs); Z_SET_ISREF_P(_3); - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath, _2, _3, callbacks); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath, _2, _3, callbacks); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath); zephir_check_call_status(); } if (ZEPHIR_IS_FALSE_IDENTICAL(yamlConfig)) { diff --git a/ext/phalcon/crypt.zep.c b/ext/phalcon/crypt.zep.c index d14cb461966..6742e10539b 100644 --- a/ext/phalcon/crypt.zep.c +++ b/ext/phalcon/crypt.zep.c @@ -271,15 +271,15 @@ PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 1) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _4, _6); @@ -288,11 +288,11 @@ PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 2) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -313,16 +313,16 @@ PHP_METHOD(Phalcon_Crypt, _cryptPadText) { _7 = 1; } i = _8; - ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 109); + ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 110); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, _2); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, _2); zephir_check_call_status(); zephir_concat_self(&padding, _4 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); zephir_concat_self(&padding, _6 TSRMLS_CC); break; @@ -330,15 +330,15 @@ PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 4) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0x80); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 131, _4, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 132, _4, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _2, _6); @@ -347,11 +347,11 @@ PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 5) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -360,7 +360,7 @@ PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZVAL_STRING(&_1, " ", 0); ZEPHIR_SINIT_VAR(_11); ZVAL_LONG(&_11, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, &_1, &_11); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, &_1, &_11); zephir_check_call_status(); break; } @@ -458,18 +458,18 @@ PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_VAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_INIT_VAR(padding); ZEPHIR_CONCAT_VV(padding, _10, last); @@ -490,18 +490,18 @@ PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (length - paddingSize)); @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); paddingSize = zephir_get_intval(_5); break; @@ -683,7 +683,7 @@ PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); if (ZEPHIR_LT_LONG(ivSize, zephir_fast_strlen_ev(encryptKey))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Size of key is too large for this algorithm", "phalcon/crypt.zep", 320); @@ -691,14 +691,14 @@ PHP_METHOD(Phalcon_Crypt, encrypt) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 134, ivSize, &_0); + ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 135, ivSize, &_0); zephir_check_call_status(); if (Z_TYPE_P(iv) != IS_STRING) { ZEPHIR_CALL_FUNCTION(&_1, "strval", NULL, 21, iv); zephir_check_call_status(); ZEPHIR_CPY_WRT(iv, _1); } - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); if (Z_TYPE_P(blockSize) != IS_LONG) { _2 = zephir_get_intval(blockSize); @@ -721,7 +721,7 @@ PHP_METHOD(Phalcon_Crypt, encrypt) { } else { ZEPHIR_CPY_WRT(padded, text); } - ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 136, cipher, encryptKey, padded, mode, iv); + ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 137, cipher, encryptKey, padded, mode, iv); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, iv, _1); RETURN_MM(); @@ -779,7 +779,7 @@ PHP_METHOD(Phalcon_Crypt, decrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); ZEPHIR_INIT_VAR(keySize); ZVAL_LONG(keySize, zephir_fast_strlen_ev(decryptKey)); @@ -799,9 +799,9 @@ PHP_METHOD(Phalcon_Crypt, decrypt) { ZVAL_LONG(&_1, 0); ZEPHIR_INIT_VAR(_2); zephir_substr(_2, text, 0 , zephir_get_intval(ivSize), 0); - ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 137, cipher, decryptKey, _0, mode, _2); + ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 138, cipher, decryptKey, _0, mode, _2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); ZEPHIR_OBS_VAR(paddingType); zephir_read_property_this(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -861,7 +861,7 @@ PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (safe == 1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 114, _0); + ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 115, _0); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "+/", 0); @@ -873,7 +873,7 @@ PHP_METHOD(Phalcon_Crypt, encryptBase64) { } ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -926,13 +926,13 @@ PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZVAL_STRING(&_1, "+/", 0); ZEPHIR_CALL_FUNCTION(&_2, "strtr", NULL, 54, text, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 115, _2); + ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 116, _2); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _3, key); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 115, text); + ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 116, text); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _2, key); zephir_check_call_status(); @@ -949,7 +949,7 @@ PHP_METHOD(Phalcon_Crypt, getAvailableCiphers) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 138); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 139); zephir_check_call_status(); RETURN_MM(); @@ -964,7 +964,7 @@ PHP_METHOD(Phalcon_Crypt, getAvailableModes) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 139); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 140); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/db/adapter/pdo/mysql.zep.c b/ext/phalcon/db/adapter/pdo/mysql.zep.c index 5ab98df2d53..455bf88b196 100644 --- a/ext/phalcon/db/adapter/pdo/mysql.zep.c +++ b/ext/phalcon/db/adapter/pdo/mysql.zep.c @@ -318,7 +318,7 @@ 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", 324 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 325); ZEPHIR_CPY_WRT(oldColumn, columnName); diff --git a/ext/phalcon/db/adapter/pdo/oracle.zep.c b/ext/phalcon/db/adapter/pdo/oracle.zep.c index 5303de6c76e..82a403144c6 100644 --- a/ext/phalcon/db/adapter/pdo/oracle.zep.c +++ b/ext/phalcon/db/adapter/pdo/oracle.zep.c @@ -82,7 +82,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, connect) { ZEPHIR_OBS_NVAR(descriptor); zephir_read_property_this(&descriptor, this_ptr, SL("_descriptor"), PH_NOISY_CC); } - ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_OBS_VAR(startup); if (zephir_array_isset_string_fetch(&startup, descriptor, SS("startup"), 0 TSRMLS_CC)) { @@ -261,7 +261,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/oracle.zep", 194 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _8, PH_SEPARATE, "phalcon/db/adapter/pdo/oracle.zep", 199); ZEPHIR_CPY_WRT(oldColumn, columnName); diff --git a/ext/phalcon/db/adapter/pdo/postgresql.zep.c b/ext/phalcon/db/adapter/pdo/postgresql.zep.c index ac0554100c7..796de8f8c77 100644 --- a/ext/phalcon/db/adapter/pdo/postgresql.zep.c +++ b/ext/phalcon/db/adapter/pdo/postgresql.zep.c @@ -101,7 +101,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, connect) { zephir_array_update_string(&descriptor, SL("password"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 142, descriptor); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(schema))) { ZEPHIR_INIT_VAR(sql); @@ -345,7 +345,7 @@ 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", 313 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 314); ZEPHIR_CPY_WRT(oldColumn, columnName); diff --git a/ext/phalcon/db/adapter/pdo/sqlite.zep.c b/ext/phalcon/db/adapter/pdo/sqlite.zep.c index 3d4066032ee..2b74b3b8215 100644 --- a/ext/phalcon/db/adapter/pdo/sqlite.zep.c +++ b/ext/phalcon/db/adapter/pdo/sqlite.zep.c @@ -82,7 +82,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, connect) { return; } zephir_array_update_string(&descriptor, SL("dsn"), &dbname, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -309,7 +309,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_array_fetch_long(&columnName, field, 1, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 286 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/sqlite.zep", 287); ZEPHIR_CPY_WRT(oldColumn, columnName); diff --git a/ext/phalcon/db/column.zep.c b/ext/phalcon/db/column.zep.c index 073ec1fe32c..7f4cb5abbe0 100644 --- a/ext/phalcon/db/column.zep.c +++ b/ext/phalcon/db/column.zep.c @@ -631,7 +631,7 @@ 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, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 141, columnName, definition); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/db/dialect/mysql.zep.c b/ext/phalcon/db/dialect/mysql.zep.c index 26ac6e8dffb..cff2f278626 100644 --- a/ext/phalcon/db/dialect/mysql.zep.c +++ b/ext/phalcon/db/dialect/mysql.zep.c @@ -259,7 +259,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { ZEPHIR_GET_HVALUE(value, _7); ZEPHIR_SINIT_NVAR(_8); ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_9, 142, value, &_8); + ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_9, 143, value, &_8); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); @@ -277,7 +277,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { } else { ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_9, 142, typeValues, &_10); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_9, 143, typeValues, &_10); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_SVS(_4, "(\"", _2, "\")"); @@ -339,7 +339,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { if (!(ZEPHIR_IS_EMPTY(defaultValue))) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 143, defaultValue, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); @@ -419,7 +419,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { if (!(ZEPHIR_IS_EMPTY(defaultValue))) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 143, defaultValue, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); @@ -903,7 +903,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (!(ZEPHIR_IS_EMPTY(defaultValue))) { ZEPHIR_SINIT_NVAR(_6); ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 143, defaultValue, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); diff --git a/ext/phalcon/db/dialect/oracle.zep.c b/ext/phalcon/db/dialect/oracle.zep.c index 03d43eafaf0..4a420aba4f9 100644 --- a/ext/phalcon/db/dialect/oracle.zep.c +++ b/ext/phalcon/db/dialect/oracle.zep.c @@ -775,14 +775,14 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "' AND OWNER='", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "'"); RETURN_MM(); @@ -811,7 +811,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, listViews) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT VIEW_NAME FROM ALL_VIEWS WHERE OWNER='", _0, "' ORDER BY VIEW_NAME"); RETURN_MM(); @@ -858,14 +858,14 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "' AND OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "'"); RETURN_MM(); @@ -909,14 +909,14 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' AND TC.OWNER = '", _2, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); @@ -949,7 +949,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, listTables) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TABLE_NAME, OWNER FROM ALL_TABLES WHERE OWNER='", _0, "' ORDER BY OWNER, TABLE_NAME"); RETURN_MM(); @@ -991,14 +991,14 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "' AND IC.INDEX_OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "'"); RETURN_MM(); @@ -1040,15 +1040,15 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { ZEPHIR_INIT_VAR(sql); ZVAL_STRING(sql, "SELECT AC.TABLE_NAME, CC.COLUMN_NAME, AC.CONSTRAINT_NAME, AC.R_OWNER, RCC.TABLE_NAME R_TABLE_NAME, RCC.COLUMN_NAME R_COLUMN_NAME FROM ALL_CONSTRAINTS AC JOIN ALL_CONS_COLUMNS CC ON AC.CONSTRAINT_NAME = CC.CONSTRAINT_NAME JOIN ALL_CONS_COLUMNS RCC ON AC.R_OWNER = RCC.OWNER AND AC.R_CONSTRAINT_NAME = RCC.CONSTRAINT_NAME WHERE AC.CONSTRAINT_TYPE='R' ", 1); if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSVS(_3, "AND AC.OWNER='", _0, "' AND AC.TABLE_NAME = '", _2, "'"); zephir_concat_self(&sql, _3 TSRMLS_CC); } else { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVS(_3, "AND AC.TABLE_NAME = '", _0, "'"); @@ -1156,11 +1156,11 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { } - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 143, table); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 144, schema); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 144, _1, _3, alias, escapeChar); + ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 145, _1, _3, alias, escapeChar); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/db/dialect/postgresql.zep.c b/ext/phalcon/db/dialect/postgresql.zep.c index abe67b996b3..02ac0e016bd 100644 --- a/ext/phalcon/db/dialect/postgresql.zep.c +++ b/ext/phalcon/db/dialect/postgresql.zep.c @@ -180,7 +180,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZEPHIR_GET_HVALUE(value, _4); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_6, 142, value, &_5); + ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_6, 143, value, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); @@ -198,7 +198,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } else { ZEPHIR_SINIT_NVAR(_7); ZVAL_STRING(&_7, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_6, 142, typeValues, &_7); + ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_6, 143, typeValues, &_7); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_SVS(_9, "(\"", _10, "\")"); @@ -263,7 +263,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { if (!(ZEPHIR_IS_EMPTY(defaultValue))) { ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 143, defaultValue, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); @@ -398,7 +398,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_11); ZVAL_STRING(&_11, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_12, "addcslashes", NULL, 142, defaultValue, &_11); + ZEPHIR_CALL_FUNCTION(&_12, "addcslashes", NULL, 143, defaultValue, &_11); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_VSVSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" SET DEFAULT \"", _12, "\""); @@ -881,7 +881,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (!(ZEPHIR_IS_EMPTY(defaultValue))) { ZEPHIR_SINIT_NVAR(_6); ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 143, defaultValue, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); @@ -946,7 +946,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { } else { ZEPHIR_CALL_METHOD(&_11, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "preparetable", NULL, 144, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16); ZEPHIR_CONCAT_SVSV(_16, "CREATE INDEX \"", _11, "\" ON ", _15); @@ -983,7 +983,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); ZEPHIR_CALL_METHOD(&_11, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "preparetable", NULL, 144, _11, schemaName); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "preparetable", NULL, 145, _11, schemaName); zephir_check_call_status(); zephir_concat_self(&referenceSql, _10 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_17, reference, "getreferencedcolumns", NULL, 0); diff --git a/ext/phalcon/db/dialect/sqlite.zep.c b/ext/phalcon/db/dialect/sqlite.zep.c index ceceb44fd10..5bb5af4f41f 100644 --- a/ext/phalcon/db/dialect/sqlite.zep.c +++ b/ext/phalcon/db/dialect/sqlite.zep.c @@ -147,7 +147,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { ZEPHIR_GET_HVALUE(value, _5); ZEPHIR_SINIT_NVAR(_6); ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 142, value, &_6); + ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 143, value, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); @@ -165,7 +165,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } else { ZEPHIR_SINIT_NVAR(_8); ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_7, 142, typeValues, &_8); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_7, 143, typeValues, &_8); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVS(_10, "(\"", _2, "\")"); @@ -230,7 +230,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { if (!(ZEPHIR_IS_EMPTY(defaultValue))) { ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 143, defaultValue, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); diff --git a/ext/phalcon/db/profiler.zep.c b/ext/phalcon/db/profiler.zep.c index f5b7e272992..946b5dc6d0b 100644 --- a/ext/phalcon/db/profiler.zep.c +++ b/ext/phalcon/db/profiler.zep.c @@ -109,19 +109,19 @@ 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, 145, sqlStatement); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlstatement", NULL, 146, sqlStatement); zephir_check_call_status(); if (Z_TYPE_P(sqlVariables) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 146, sqlVariables); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 147, sqlVariables); zephir_check_call_status(); } if (Z_TYPE_P(sqlBindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 147, sqlBindTypes); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 148, sqlBindTypes); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_0); zephir_microtime(_0, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 148, _0); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 149, _0); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforestartprofile") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "beforestartprofile", NULL, 0, activeProfile); diff --git a/ext/phalcon/debug.zep.c b/ext/phalcon/debug.zep.c index 3f475877987..8f06a749dea 100644 --- a/ext/phalcon/debug.zep.c +++ b/ext/phalcon/debug.zep.c @@ -191,7 +191,7 @@ PHP_METHOD(Phalcon_Debug, listenExceptions) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _0); zephir_check_call_status(); RETURN_THIS(); @@ -214,7 +214,7 @@ PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtLowSeverity", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 150, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 151, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 2, 0 TSRMLS_CC); @@ -222,7 +222,7 @@ PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_2, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _2); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _2); zephir_check_call_status(); RETURN_THIS(); @@ -263,7 +263,7 @@ 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, 151); + ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 152); zephir_check_call_status(); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_VAR(_2); @@ -309,7 +309,7 @@ PHP_METHOD(Phalcon_Debug, _escapeString) { ZVAL_LONG(&_3, 2); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "utf-8", 0); - ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 152, _0, &_3, &_4); + ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 153, _0, &_3, &_4); zephir_check_call_status(); RETURN_MM(); } @@ -363,7 +363,7 @@ PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 153, v); + ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); zephir_check_call_status(); if (zephir_is_true(_4)) { ZEPHIR_INIT_NVAR(varDump); @@ -380,7 +380,7 @@ PHP_METHOD(Phalcon_Debug, _getArrayDump) { if (Z_TYPE_P(v) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_8); ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 154, v, _8); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); @@ -424,7 +424,7 @@ PHP_METHOD(Phalcon_Debug, _getVarDump) { - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 153, variable); + ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); zephir_check_call_status(); if (zephir_is_true(_0)) { if (Z_TYPE_P(variable) == IS_BOOL) { @@ -458,7 +458,7 @@ PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 154, variable); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); RETURN_MM(); @@ -482,7 +482,7 @@ PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -504,7 +504,7 @@ PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -605,9 +605,9 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { } else { ZEPHIR_INIT_VAR(classReflection); object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -640,9 +640,9 @@ 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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -703,7 +703,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -786,7 +786,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_LONG(&_23, 2); ZEPHIR_SINIT_NVAR(_25); ZVAL_STRING(&_25, "UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 152, _21, &_23, &_25); + ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 153, _21, &_23, &_25); zephir_check_call_status(); zephir_concat_self(&html, _8 TSRMLS_CC); } @@ -813,7 +813,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -822,7 +822,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -850,10 +850,10 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } _0 = zephir_fetch_static_property_ce(phalcon_debug_ce, SL("_isActive") TSRMLS_CC); @@ -917,7 +917,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -936,7 +936,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, "", keyRequest, "", value, ""); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, "", keyRequest, "", _13, ""); @@ -962,7 +962,7 @@ 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(&_13, "get_included_files", NULL, 165); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -977,7 +977,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); diff --git a/ext/phalcon/debug/dump.zep.c b/ext/phalcon/debug/dump.zep.c index fb98e32b398..d2aeb214bf3 100644 --- a/ext/phalcon/debug/dump.zep.c +++ b/ext/phalcon/debug/dump.zep.c @@ -140,7 +140,7 @@ PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -315,7 +315,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -362,7 +362,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -384,7 +384,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -395,7 +395,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -418,7 +418,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _25); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -441,7 +441,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -451,7 +451,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } else { do { Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 170, variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); Z_UNSET_ISREF_P(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { @@ -467,9 +467,9 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 132, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 130, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -486,7 +486,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -497,7 +497,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 171, key); + ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); Z_UNSET_ISREF_P(key); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); @@ -513,7 +513,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -521,11 +521,11 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _20 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -552,7 +552,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); @@ -570,7 +570,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -591,7 +591,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); @@ -613,7 +613,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, ")\n"); @@ -621,7 +621,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -643,7 +643,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -694,9 +694,9 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, 4); ZEPHIR_SINIT_VAR(_40); ZVAL_STRING(&_40, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 152, variable, &_5, &_40); + ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 174, _2); + ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); zephir_check_call_status(); zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -835,7 +835,7 @@ PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( diff --git a/ext/phalcon/di.zep.c b/ext/phalcon/di.zep.c index 428638c27b8..49d116d7b22 100644 --- a/ext/phalcon/di.zep.c +++ b/ext/phalcon/di.zep.c @@ -166,7 +166,7 @@ PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Di, setShared) { object_init_ex(service, phalcon_di_service_ce); ZEPHIR_SINIT_VAR(_0); ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, &_0); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -279,7 +279,7 @@ PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -469,9 +469,9 @@ PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 65, parameters); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 66, parameters); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -482,9 +482,9 @@ PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -496,9 +496,9 @@ PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -800,7 +800,7 @@ PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_VAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 68, _1); zephir_check_call_status(); if (zephir_array_isset(services, possibleService)) { if (zephir_fast_count_int(arguments TSRMLS_CC)) { @@ -820,7 +820,7 @@ PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_NVAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 68, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", NULL, 0, _4, definition); zephir_check_call_status(); diff --git a/ext/phalcon/di/factorydefault.zep.c b/ext/phalcon/di/factorydefault.zep.c index afe70674999..3142e70cc2c 100644 --- a/ext/phalcon/di/factorydefault.zep.c +++ b/ext/phalcon/di/factorydefault.zep.c @@ -45,7 +45,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 75); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 76); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 21, 0 TSRMLS_CC); @@ -57,7 +57,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -70,7 +70,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -83,7 +83,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -109,7 +109,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -122,7 +122,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -135,7 +135,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -148,7 +148,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -161,7 +161,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -174,7 +174,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -187,7 +187,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -200,7 +200,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -213,7 +213,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -226,7 +226,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -239,7 +239,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -252,7 +252,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -265,7 +265,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -276,7 +276,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "sessionBag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Bag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -289,7 +289,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -302,7 +302,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -315,7 +315,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); diff --git a/ext/phalcon/di/factorydefault/cli.zep.c b/ext/phalcon/di/factorydefault/cli.zep.c index 2ee5dccbe89..c400dd47ec1 100644 --- a/ext/phalcon/di/factorydefault/cli.zep.c +++ b/ext/phalcon/di/factorydefault/cli.zep.c @@ -46,7 +46,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 175); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -58,7 +58,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\CLI\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -71,7 +71,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\CLI\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -84,7 +84,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -97,7 +97,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -110,7 +110,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -123,7 +123,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -136,7 +136,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -149,7 +149,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -162,7 +162,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -175,7 +175,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); diff --git a/ext/phalcon/di/service.zep.c b/ext/phalcon/di/service.zep.c index 210c9be500d..ee9d429b6ce 100644 --- a/ext/phalcon/di/service.zep.c +++ b/ext/phalcon/di/service.zep.c @@ -258,7 +258,7 @@ 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, 176, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 177, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -396,7 +396,7 @@ 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, 63, name, definition, shared); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 64, name, definition, shared); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/di/service/builder.zep.c b/ext/phalcon/di/service/builder.zep.c index 29e46600ea6..9bdfdf8d671 100644 --- a/ext/phalcon/di/service/builder.zep.c +++ b/ext/phalcon/di/service/builder.zep.c @@ -188,7 +188,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -241,7 +241,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -311,7 +311,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -375,7 +375,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } diff --git a/ext/phalcon/escaper.zep.c b/ext/phalcon/escaper.zep.c index c8adfb2f229..eaad39f972b 100644 --- a/ext/phalcon/escaper.zep.c +++ b/ext/phalcon/escaper.zep.c @@ -155,13 +155,13 @@ PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); zephir_check_call_status(); RETURN_MM(); @@ -186,11 +186,11 @@ PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -213,7 +213,7 @@ PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -237,7 +237,7 @@ PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -258,7 +258,7 @@ PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -280,7 +280,7 @@ PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -302,7 +302,7 @@ PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/events/manager.zep.c b/ext/phalcon/events/manager.zep.c index bc15c312052..f3857be8803 100644 --- a/ext/phalcon/events/manager.zep.c +++ b/ext/phalcon/events/manager.zep.c @@ -107,7 +107,7 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -117,7 +117,7 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -172,7 +172,7 @@ PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -194,13 +194,13 @@ PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _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, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -388,7 +388,7 @@ PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -614,9 +614,9 @@ PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } @@ -630,10 +630,10 @@ PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } diff --git a/ext/phalcon/filter.zep.c b/ext/phalcon/filter.zep.c index 0e5845486ce..98e3d4f6382 100644 --- a/ext/phalcon/filter.zep.c +++ b/ext/phalcon/filter.zep.c @@ -250,16 +250,16 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -269,14 +269,14 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -286,7 +286,7 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -309,13 +309,13 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } @@ -324,7 +324,7 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/flash/direct.zep.c b/ext/phalcon/flash/direct.zep.c index 98ab9bac0ed..276ba64c9f0 100644 --- a/ext/phalcon/flash/direct.zep.c +++ b/ext/phalcon/flash/direct.zep.c @@ -89,7 +89,7 @@ PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/flash/session.zep.c b/ext/phalcon/flash/session.zep.c index 6ea58471bf5..9ae34cc5f27 100644 --- a/ext/phalcon/flash/session.zep.c +++ b/ext/phalcon/flash/session.zep.c @@ -281,7 +281,7 @@ PHP_METHOD(Phalcon_Flash_Session, output) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -302,7 +302,7 @@ 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, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/forms/element/check.zep.c b/ext/phalcon/forms/element/check.zep.c index fb18ed9c129..7a7b9d4ebd5 100644 --- a/ext/phalcon/forms/element/check.zep.c +++ b/ext/phalcon/forms/element/check.zep.c @@ -54,7 +54,7 @@ PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/date.zep.c b/ext/phalcon/forms/element/date.zep.c index b4b8ee87742..b90e952db2d 100644 --- a/ext/phalcon/forms/element/date.zep.c +++ b/ext/phalcon/forms/element/date.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/email.zep.c b/ext/phalcon/forms/element/email.zep.c index 574d0e199f5..afff3edc90f 100644 --- a/ext/phalcon/forms/element/email.zep.c +++ b/ext/phalcon/forms/element/email.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/file.zep.c b/ext/phalcon/forms/element/file.zep.c index 325078ba37f..509cc292cf6 100644 --- a/ext/phalcon/forms/element/file.zep.c +++ b/ext/phalcon/forms/element/file.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/hidden.zep.c b/ext/phalcon/forms/element/hidden.zep.c index 582bb699903..0d2f9337459 100644 --- a/ext/phalcon/forms/element/hidden.zep.c +++ b/ext/phalcon/forms/element/hidden.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/numeric.zep.c b/ext/phalcon/forms/element/numeric.zep.c index 8e3ed366ac6..a83987dad88 100644 --- a/ext/phalcon/forms/element/numeric.zep.c +++ b/ext/phalcon/forms/element/numeric.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/password.zep.c b/ext/phalcon/forms/element/password.zep.c index 86ceec3f4c7..b0fb1e545f9 100644 --- a/ext/phalcon/forms/element/password.zep.c +++ b/ext/phalcon/forms/element/password.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/radio.zep.c b/ext/phalcon/forms/element/radio.zep.c index ef825aa4381..b0f2e2708b0 100644 --- a/ext/phalcon/forms/element/radio.zep.c +++ b/ext/phalcon/forms/element/radio.zep.c @@ -54,7 +54,7 @@ PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/select.zep.c b/ext/phalcon/forms/element/select.zep.c index d80f769ee81..9169de47895 100644 --- a/ext/phalcon/forms/element/select.zep.c +++ b/ext/phalcon/forms/element/select.zep.c @@ -62,7 +62,7 @@ PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156,7 +156,7 @@ PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/submit.zep.c b/ext/phalcon/forms/element/submit.zep.c index 0b817061560..396c98cf849 100644 --- a/ext/phalcon/forms/element/submit.zep.c +++ b/ext/phalcon/forms/element/submit.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/text.zep.c b/ext/phalcon/forms/element/text.zep.c index 1544f3a5e42..55f2de30b49 100644 --- a/ext/phalcon/forms/element/text.zep.c +++ b/ext/phalcon/forms/element/text.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/textarea.zep.c b/ext/phalcon/forms/element/textarea.zep.c index 2c12c6c7f93..2b2b93a8c04 100644 --- a/ext/phalcon/forms/element/textarea.zep.c +++ b/ext/phalcon/forms/element/textarea.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/form.zep.c b/ext/phalcon/forms/form.zep.c index a3dd9501dad..2b2f1e4b73e 100644 --- a/ext/phalcon/forms/form.zep.c +++ b/ext/phalcon/forms/form.zep.c @@ -446,7 +446,7 @@ PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -454,10 +454,10 @@ PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -523,7 +523,7 @@ PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); zephir_check_call_status(); } } @@ -1053,7 +1053,7 @@ PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/forms/manager.zep.c b/ext/phalcon/forms/manager.zep.c index c7839e1200f..59214441621 100644 --- a/ext/phalcon/forms/manager.zep.c +++ b/ext/phalcon/forms/manager.zep.c @@ -63,7 +63,7 @@ PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index 91de2372986..ad43da308e6 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -354,7 +354,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -457,7 +457,7 @@ PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index e1003bcbe54..9177284b963 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -143,7 +143,7 @@ PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -206,7 +206,7 @@ PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -275,12 +275,12 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); Z_UNSET_ISREF_P(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -346,7 +346,7 @@ PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -829,7 +829,7 @@ PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); zephir_check_call_status(); RETURN_MM(); @@ -1045,7 +1045,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -1120,7 +1120,7 @@ PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -1136,7 +1136,7 @@ PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -1152,7 +1152,7 @@ PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -1168,7 +1168,7 @@ PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -1184,7 +1184,7 @@ PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -1200,7 +1200,7 @@ PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -1216,7 +1216,7 @@ PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -1267,7 +1267,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -1314,7 +1314,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -1366,7 +1366,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -1400,7 +1400,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -1414,7 +1414,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -1490,7 +1490,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -1547,7 +1547,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -1566,7 +1566,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -1647,7 +1647,7 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -1665,7 +1665,7 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -1805,7 +1805,7 @@ PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -1827,7 +1827,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1848,7 +1848,7 @@ PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -1870,7 +1870,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1891,7 +1891,7 @@ PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -1913,7 +1913,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 9cd738b9b8b..31a21167c72 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -129,12 +129,12 @@ PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, name, &_0); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, name, &_0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_extension"), _2 TSRMLS_CC); } @@ -211,15 +211,15 @@ PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -240,7 +240,7 @@ PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -274,7 +274,7 @@ PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index a3c3bbfcab2..9d51386eee6 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -189,7 +189,7 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -716,7 +716,7 @@ PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -975,7 +975,7 @@ PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); zephir_check_call_status(); } } diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index d92f6799a58..eddd37d4deb 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -151,10 +151,10 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -224,7 +224,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); zephir_check_call_status(); } } diff --git a/ext/phalcon/image/adapter.zep.c b/ext/phalcon/image/adapter.zep.c index 1750552ce33..3831da754cf 100644 --- a/ext/phalcon/image/adapter.zep.c +++ b/ext/phalcon/image/adapter.zep.c @@ -282,7 +282,7 @@ PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_8, &_9, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_10); ZVAL_LONG(_10, 1); - ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 68, _8, _10); + ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 69, _8, _10); zephir_check_call_status(); width = zephir_get_intval(_11); ZEPHIR_INIT_NVAR(_10); @@ -291,7 +291,7 @@ PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_10, &_13, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_14); ZVAL_LONG(_14, 1); - ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 68, _10, _14); + ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 69, _10, _14); zephir_check_call_status(); height = zephir_get_intval(_15); ZEPHIR_INIT_NVAR(_14); @@ -721,11 +721,11 @@ PHP_METHOD(Phalcon_Image_Adapter, text) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); @@ -810,11 +810,11 @@ PHP_METHOD(Phalcon_Image_Adapter, background) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); @@ -952,7 +952,7 @@ PHP_METHOD(Phalcon_Image_Adapter, render) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, _0, &_1); zephir_check_call_status(); zephir_get_strval(_3, _2); ZEPHIR_CPY_WRT(ext, _3); diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 5221c63489d..762231a24b1 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -55,13 +55,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -79,7 +79,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -141,11 +141,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_1 TSRMLS_CC) == SUCCESS)) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 62, _2); + ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 63, _2); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -161,35 +161,35 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -214,7 +214,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -237,14 +237,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -283,7 +283,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -331,11 +331,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -359,17 +359,17 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -379,16 +379,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -415,7 +415,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -441,17 +441,17 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -471,16 +471,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -508,20 +508,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -534,11 +534,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -564,7 +564,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -592,7 +592,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -616,18 +616,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -635,13 +635,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); zephir_check_call_status(); } } @@ -664,7 +664,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -713,15 +713,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -747,7 +747,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -773,7 +773,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -814,7 +814,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -826,7 +826,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -839,18 +839,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -872,21 +872,21 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -898,11 +898,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -912,11 +912,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -931,10 +931,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -966,7 +966,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -975,7 +975,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -1009,12 +1009,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -1034,7 +1034,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -1046,17 +1046,17 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -1076,7 +1076,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -1085,7 +1085,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -1106,22 +1106,22 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -1131,13 +1131,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -1148,7 +1148,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -1164,9 +1164,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -1186,9 +1186,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -1201,10 +1201,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -1214,22 +1214,22 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1263,9 +1263,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -1278,11 +1278,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -1310,7 +1310,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); zephir_check_call_status(); i++; } @@ -1349,7 +1349,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -1362,7 +1362,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -1389,11 +1389,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -1401,30 +1401,30 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -1433,64 +1433,64 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -1524,29 +1524,29 @@ 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, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -1554,45 +1554,45 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } @@ -1624,11 +1624,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -1644,7 +1644,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/image/adapter/imagick.zep.c b/ext/phalcon/image/adapter/imagick.zep.c index c3c24e84d91..89bc7c332c3 100644 --- a/ext/phalcon/image/adapter/imagick.zep.c +++ b/ext/phalcon/image/adapter/imagick.zep.c @@ -70,12 +70,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } @@ -137,7 +137,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 62, _3); + ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 63, _3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _4 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -163,7 +163,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -661,7 +661,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -675,11 +675,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -722,7 +722,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -739,7 +739,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -769,7 +769,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -854,7 +854,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -921,7 +921,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -962,24 +962,24 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -995,13 +995,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -1012,13 +1012,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -1037,13 +1037,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -1054,13 +1054,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -1076,13 +1076,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -1093,13 +1093,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -1174,7 +1174,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -1227,7 +1227,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -1266,7 +1266,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -1275,11 +1275,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -1293,7 +1293,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -1432,7 +1432,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _1, "setformat", NULL, 0, ext); @@ -1460,7 +1460,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -1484,7 +1484,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -1559,7 +1559,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index f8b979c5c15..3eeea9f37d3 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -360,7 +360,7 @@ PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -387,7 +387,7 @@ PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -498,7 +498,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -569,7 +569,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -627,7 +627,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { diff --git a/ext/phalcon/logger/adapter/file.zep.c b/ext/phalcon/logger/adapter/file.zep.c index d23805dc88c..cbc6e025e11 100644 --- a/ext/phalcon/logger/adapter/file.zep.c +++ b/ext/phalcon/logger/adapter/file.zep.c @@ -119,7 +119,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -154,7 +154,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -243,7 +243,7 @@ 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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/adapter/firephp.zep.c b/ext/phalcon/logger/adapter/firephp.zep.c index a8775666cf3..81351505b6e 100644 --- a/ext/phalcon/logger/adapter/firephp.zep.c +++ b/ext/phalcon/logger/adapter/firephp.zep.c @@ -110,15 +110,15 @@ PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); } @@ -132,7 +132,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 4500); - ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 69, format, &_2); + ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 70, format, &_2); zephir_check_call_status(); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 102); for ( @@ -148,7 +148,7 @@ 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", &_3, 237, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); diff --git a/ext/phalcon/logger/adapter/stream.zep.c b/ext/phalcon/logger/adapter/stream.zep.c index afe4cd90754..24206c05730 100644 --- a/ext/phalcon/logger/adapter/stream.zep.c +++ b/ext/phalcon/logger/adapter/stream.zep.c @@ -93,7 +93,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -126,7 +126,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } diff --git a/ext/phalcon/logger/adapter/syslog.zep.c b/ext/phalcon/logger/adapter/syslog.zep.c index d1f207ecdf6..aa06b4adb18 100644 --- a/ext/phalcon/logger/adapter/syslog.zep.c +++ b/ext/phalcon/logger/adapter/syslog.zep.c @@ -76,7 +76,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -147,7 +147,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal) { } zephir_array_fetch_long(&_3, appliedFormat, 0, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -167,7 +167,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/formatter/firephp.zep.c b/ext/phalcon/logger/formatter/firephp.zep.c index 62973c1f6d1..2f6d27c30cc 100644 --- a/ext/phalcon/logger/formatter/firephp.zep.c +++ b/ext/phalcon/logger/formatter/firephp.zep.c @@ -188,15 +188,15 @@ PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 151, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); Z_UNSET_ISREF_P(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index 8fbd10cb556..4358cc20845 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -168,7 +168,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); diff --git a/ext/phalcon/mvc/collection.zep.c b/ext/phalcon/mvc/collection.zep.c index b23e098c599..913ac4e27a8 100644 --- a/ext/phalcon/mvc/collection.zep.c +++ b/ext/phalcon/mvc/collection.zep.c @@ -628,7 +628,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -1211,7 +1211,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -1240,7 +1240,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); zephir_check_call_status(); RETURN_MM(); @@ -1795,7 +1795,7 @@ 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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -1829,7 +1829,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); diff --git a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c index 1b5ed81f567..350fca03b52 100644 --- a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c @@ -84,7 +84,7 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index b3ca7b390ea..546f4975167 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -484,7 +484,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -656,11 +656,11 @@ 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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -696,11 +696,11 @@ 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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -739,11 +739,11 @@ 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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -770,11 +770,11 @@ 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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index d2a0caf06ae..ea067c9d9b4 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -584,10 +584,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getDirtyState) { PHP_METHOD(Phalcon_Mvc_Model, getReadConnection) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0; + zval *transaction = NULL, *_0; ZEPHIR_MM_GROW(); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_transaction"), PH_NOISY_CC); + ZEPHIR_CPY_WRT(transaction, _0); + if (Z_TYPE_P(transaction) == IS_OBJECT) { + ZEPHIR_RETURN_CALL_METHOD(transaction, "getconnection", NULL, 0); + zephir_check_call_status(); + RETURN_MM(); + } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); ZEPHIR_RETURN_CALL_METHOD(_0, "getreadconnection", NULL, 0, this_ptr); zephir_check_call_status(); @@ -670,7 +677,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { if (Z_TYPE_P(dataColumnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(dataMapped); array_init(dataMapped); - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 436); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 443); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -699,7 +706,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } 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", 488); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 495); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -715,7 +722,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(_8, "Column '", attribute, "' doesn\\'t make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_9, 9, _8); zephir_check_call_status(); - zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 458 TSRMLS_CC); + zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 465 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -801,7 +808,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 588); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 595); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -822,7 +829,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 531 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 538 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -838,7 +845,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _6 = Z_TYPE_P(value) != IS_NULL; } if (_6) { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 543 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 550 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_8); @@ -862,7 +869,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 564 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 571 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0) || ZEPHIR_IS_LONG(_7, 9) || ZEPHIR_IS_LONG(_7, 3) || ZEPHIR_IS_LONG(_7, 7) || ZEPHIR_IS_LONG(_7, 8)) { ZEPHIR_INIT_NVAR(castValue); @@ -875,7 +882,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(attributeName); - zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 580 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 587 TSRMLS_CC); zephir_update_property_zval_zval(instance, attributeName, castValue TSRMLS_CC); } } @@ -928,7 +935,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_VAR(hydrateObject); object_init(hydrateObject); } - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 662); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 669); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -946,7 +953,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 641 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 648 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -1018,7 +1025,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 709); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 716); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -1026,7 +1033,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); if (Z_TYPE_P(key) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 701); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 708); return; } zephir_update_property_zval_zval(instance, key, value TSRMLS_CC); @@ -1094,7 +1101,7 @@ PHP_METHOD(Phalcon_Mvc_Model, find) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 755); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 762); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -1191,7 +1198,7 @@ PHP_METHOD(Phalcon_Mvc_Model, findFirst) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 842); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 849); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -1278,12 +1285,12 @@ 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, 302, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 303, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -1345,7 +1352,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueParams); ZEPHIR_INIT_NVAR(uniqueTypes); array_init(uniqueTypes); - zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1013); + zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1020); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -1360,7 +1367,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 977 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 984 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1378,9 +1385,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_6) { numberEmpty++; } - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 995); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1002); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 998); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 1005); numberEmpty++; } ZEPHIR_OBS_NVAR(type); @@ -1391,16 +1398,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1003 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1010 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1006); + zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1013); ZEPHIR_CALL_METHOD(&_7, connection, "escapeidentifier", &_8, 0, field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_VS(_9, _7, " = ?"); - zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1007); + zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1014); } if (numberPrimary == numberEmpty) { RETURN_MM_BOOL(0); @@ -1448,7 +1455,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZVAL_NULL(_3); ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, _9, _3, uniqueParams, uniqueTypes); zephir_check_call_status(); - zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1063 TSRMLS_CC); + zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1070 TSRMLS_CC); if (zephir_is_true(_11)) { ZEPHIR_INIT_ZVAL_NREF(_12); ZVAL_LONG(_12, 0); @@ -1517,7 +1524,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1093); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1100); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -1974,7 +1981,7 @@ PHP_METHOD(Phalcon_Mvc_Model, validate) { if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { ZEPHIR_CALL_METHOD(&_1, validator, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1393); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1400); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -2066,7 +2073,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_INIT_VAR(filtered); array_init(filtered); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1459); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1466); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -2075,7 +2082,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_5, message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(_5, filter)) { - zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1456); + zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1463); } } RETURN_CCTOR(filtered); @@ -2106,7 +2113,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(belongsTo TSRMLS_CC)) { error = 0; - zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1602); + zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1609); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -2119,7 +2126,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1503 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1510 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -2138,7 +2145,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1539); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1546); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -2147,11 +2154,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1532 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1539 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1532); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1533); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1539); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1540); if (Z_TYPE_P(value) == IS_NULL) { numberNull++; } @@ -2162,15 +2169,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1544); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1545); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1551); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1552); if (Z_TYPE_P(value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1556); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1563); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(allowNulls); @@ -2255,7 +2262,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_CALL_METHOD(&relations, manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1716); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1723); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -2268,7 +2275,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1655 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1662 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -2286,7 +2293,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1683); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1690); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -2295,23 +2302,23 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1680 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1687 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1680); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1681); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1687); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1688); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1685); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1686); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1692); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1700); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -2355,7 +2362,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { error = 0; - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1835); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1842); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -2368,7 +2375,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1763 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1770 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -2386,7 +2393,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1795); + zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1802); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -2395,23 +2402,23 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_GET_HVALUE(field, _8); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1791 TSRMLS_CC); + zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1798 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSV(_10, "[", _9, "] = ?", position); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1791); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1792); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1799); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVS(_10, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1797); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1804); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1812); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -2538,7 +2545,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2001); + zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2008); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -2555,7 +2562,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(_7, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1937 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2787,7 +2794,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2185); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -2803,7 +2810,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2139 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2146 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2829,23 +2836,23 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2163 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2170 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); } else { if (zephir_array_isset(defaultValues, field)) { ZEPHIR_CALL_METHOD(&_8, connection, "getdefaultvalue", &_9, 0); zephir_check_call_status(); - zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2171); + zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2178); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2180); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); } } } @@ -2857,7 +2864,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); useExplicitIdentity = zephir_get_boolval(_8); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2194); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2201); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); @@ -2868,7 +2875,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2202 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2209 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2883,12 +2890,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } if (_6) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2223); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2230); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { @@ -2898,17 +2905,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn\\'t part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2230 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2237 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); } } } @@ -3006,7 +3013,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", 2437); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2444); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -3021,7 +3028,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2336 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2343 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3034,7 +3041,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2351 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3044,9 +3051,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", 2360); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2360); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2361); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2368); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -3068,9 +3075,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -3088,15 +3095,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2424); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2431); } } } else { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); } } } @@ -3113,12 +3120,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", 2456); + 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", 2463); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2479); + zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2486); for ( ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS ; zephir_hash_move_forward_ex(_13, &_12) @@ -3133,7 +3140,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2467 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2474 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3142,9 +3149,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2474); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2481); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2476); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2483); } } } @@ -3188,7 +3195,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { 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", 2585); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2592); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -3205,7 +3212,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(record) != IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2534); + 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", 2541); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -3217,7 +3224,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2543); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); @@ -3225,7 +3232,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_0))) { ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2572); + zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); for ( ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS ; zephir_hash_move_forward_ex(_9, &_8) @@ -3279,7 +3286,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", 2773); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2780); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -3302,7 +3309,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (_5) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2624); + 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", 2631); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -3314,7 +3321,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -3334,7 +3341,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2647 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3349,7 +3356,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2762); + zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); for ( ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS ; zephir_hash_move_forward_ex(_14, &_13) @@ -3364,7 +3371,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_12))) { ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2704); + zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); for ( ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS ; zephir_hash_move_forward_ex(_18, &_17) @@ -3397,7 +3404,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_16))) { ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); for ( ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS ; zephir_hash_move_forward_ex(_25, &_24) @@ -3426,7 +3433,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2765 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3542,9 +3549,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2878 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3780,10 +3787,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", 3062); + 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", 3069); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3103); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3110); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -3797,7 +3804,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3074 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3081 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3810,7 +3817,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3082 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3089 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3825,17 +3832,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3092 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3099 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3098); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3105); ZEPHIR_CALL_METHOD(&_2, writeConnection, "escapeidentifier", &_9, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_VS(_7, _2, " = ?"); - zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3099); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3100); + zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3106); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -3918,7 +3925,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", 3178); + 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", 3185); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -3943,7 +3950,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_1))) { - 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", 3200); + 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", 3207); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -3952,14 +3959,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", 3208); + 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", 3215); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_1, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3222); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3229); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -3968,7 +3975,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(_5); zephir_create_array(_5, 1, 0 TSRMLS_CC); zephir_array_fast_append(_5, attribute); - zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3216); + zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3223); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -4117,7 +4124,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3303); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4169,7 +4176,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", 3334); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4219,7 +4226,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", 3363); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4269,7 +4276,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", 3392); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4610,7 +4617,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, &_0, 0, 0, "phalcon/mvc/model.zep", 3606); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3613); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4629,7 +4636,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3587 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3594 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -4646,7 +4653,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3596 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3603 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -4711,12 +4718,12 @@ PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { 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", 3645); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3652); 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", 3652); + 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", 3659); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -4738,7 +4745,7 @@ PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3684 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3691 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4750,7 +4757,7 @@ PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3688 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3695 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4763,7 +4770,7 @@ PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not defined on the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3696 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3703 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4775,14 +4782,14 @@ PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_3, "The field '", fieldName, "' was not found in the snapshot"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3703 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3710 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(!ZEPHIR_IS_EQUAL(value, originalValue)); } ZEPHIR_INIT_NVAR(_1); - zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3739); + zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3746); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -4820,12 +4827,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", 3752); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3759); 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", 3759); + 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", 3766); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -4841,7 +4848,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", 3813); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3820); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -4849,17 +4856,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", 3792); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3799); 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", 3800); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3807); continue; } - zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3807 TSRMLS_CC); + zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3814 TSRMLS_CC); if (!ZEPHIR_IS_EQUAL(value, _5)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3808); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3815); continue; } } @@ -4939,7 +4946,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3855 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3862 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5092,7 +5099,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(_2, "The method '", method, "' doesn't exist on model '", modelName, "'"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3947 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3954 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -5158,7 +5165,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVSVS(_2, "The static method '", method, "' doesn't exist on model '", modelName, "'"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3998 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4005 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5170,7 +5177,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_3, "The static method '", method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4002 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4009 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5193,7 +5200,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { if (zephir_array_isset(attributes, extraMethod)) { ZEPHIR_CPY_WRT(field, extraMethod); } else { - ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 67, extraMethod); + ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 68, extraMethod); zephir_check_call_status(); if (zephir_array_isset(attributes, extraMethodFirst)) { ZEPHIR_CPY_WRT(field, extraMethodFirst); @@ -5207,7 +5214,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4036 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4043 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5272,7 +5279,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4100); + zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4107); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -5281,7 +5288,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_GET_HVALUE(item, _3); 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", 4087); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4094); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -5443,7 +5450,7 @@ PHP_METHOD(Phalcon_Mvc_Model, serialize) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -5477,13 +5484,13 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { 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", 4224); + 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", 4231); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -5494,13 +5501,13 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); 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", 4237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4244); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, manager, "initialize", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4256); + zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4263); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -5567,7 +5574,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", 4320); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4327); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -5583,7 +5590,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_6, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4298 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4305 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index fb14f196916..d08c56120c5 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -84,7 +84,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index 6007c0d1763..c9435b1a56c 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -1415,12 +1415,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 306, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 307, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 307, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 308, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index 7313d4c2ae3..6fc6dd579ea 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -1081,7 +1081,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1168,7 +1168,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1255,7 +1255,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1365,9 +1365,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 309, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 310, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1851,7 +1851,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not supported", "phalcon/mvc/model/manager.zep", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 310, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 311, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -1916,10 +1916,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 310, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 311, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 310, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 311, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); diff --git a/ext/phalcon/mvc/model/metadata/apc.zep.c b/ext/phalcon/mvc/model/metadata/apc.zep.c index ac6f6059d3c..ba829bb0be6 100644 --- a/ext/phalcon/mvc/model/metadata/apc.zep.c +++ b/ext/phalcon/mvc/model/metadata/apc.zep.c @@ -111,7 +111,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 81, _1); + ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 82, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -149,7 +149,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/mvc/model/metadata/libmemcached.zep.c b/ext/phalcon/mvc/model/metadata/libmemcached.zep.c index 21767e5a5b4..a3b4ec30f90 100644 --- a/ext/phalcon/mvc/model/metadata/libmemcached.zep.c +++ b/ext/phalcon/mvc/model/metadata/libmemcached.zep.c @@ -104,9 +104,9 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 312, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 313, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -214,7 +214,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 314); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/mvc/model/metadata/memcache.zep.c b/ext/phalcon/mvc/model/metadata/memcache.zep.c index 105c694442a..b09e20ab800 100644 --- a/ext/phalcon/mvc/model/metadata/memcache.zep.c +++ b/ext/phalcon/mvc/model/metadata/memcache.zep.c @@ -111,9 +111,9 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 312, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 314); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/mvc/model/metadata/redis.zep.c b/ext/phalcon/mvc/model/metadata/redis.zep.c index 19e62fb5e95..0ff10fb7644 100644 --- a/ext/phalcon/mvc/model/metadata/redis.zep.c +++ b/ext/phalcon/mvc/model/metadata/redis.zep.c @@ -111,9 +111,9 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 312, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 314); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/mvc/model/metadata/xcache.zep.c b/ext/phalcon/mvc/model/metadata/xcache.zep.c index 21843a8ff37..d4fa12d674e 100644 --- a/ext/phalcon/mvc/model/metadata/xcache.zep.c +++ b/ext/phalcon/mvc/model/metadata/xcache.zep.c @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 83, _1); + ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 84, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/mvc/model/query.zep.c b/ext/phalcon/mvc/model/query.zep.c index 3ac5be446a8..90891d96da0 100644 --- a/ext/phalcon/mvc/model/query.zep.c +++ b/ext/phalcon/mvc/model/query.zep.c @@ -437,7 +437,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SS("type"), SL("all"), 1); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 316, argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 317, argument); zephir_check_call_status(); RETURN_MM(); @@ -476,11 +476,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("when"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 354 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_8, whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 355 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _8); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _8); zephir_check_call_status(); zephir_array_update_string(&_4, SL("then"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 356); @@ -489,7 +489,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("else"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 360 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 361); @@ -498,7 +498,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("case"), 1); zephir_array_fetch_string(&_6, expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 367 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&return_value, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -541,13 +541,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, argument); zephir_check_call_status(); zephir_array_append(&functionArgs, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 391); } } else { zephir_create_array(functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, arguments); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, arguments); zephir_check_call_status(); zephir_array_fast_append(functionArgs, _3); } @@ -617,12 +617,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { if (!ZEPHIR_IS_LONG(exprType, 409)) { ZEPHIR_OBS_VAR(exprLeft); if (zephir_array_isset_string_fetch(&exprLeft, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 316, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 317, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } ZEPHIR_OBS_VAR(exprRight); if (zephir_array_isset_string_fetch(&exprRight, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 316, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 317, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } } @@ -700,7 +700,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 319, expr); zephir_check_call_status(); break; } @@ -1145,12 +1145,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 319, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 320, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 320, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 321, expr); zephir_check_call_status(); break; } @@ -1160,7 +1160,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { add_assoc_stringl_ex(exprReturn, SS("type"), SL("select"), 1); ZEPHIR_INIT_NVAR(_3); ZVAL_BOOL(_3, 1); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 321, expr, _3); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 322, expr, _3); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_12, PH_COPY | PH_SEPARATE); break; @@ -1179,7 +1179,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SS("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 319, expr); zephir_check_call_status(); RETURN_MM(); } @@ -1192,7 +1192,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ; zephir_hash_move_forward_ex(_14, &_13) ) { ZEPHIR_GET_HVALUE(exprListItem, _15); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 316, exprListItem); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 317, exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, _12, PH_SEPARATE, "phalcon/mvc/model/query.zep", 745); } @@ -1249,7 +1249,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("object"), 1); 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, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); zephir_array_update_string(&sqlColumn, SL("balias"), &_4, PH_COPY | PH_SEPARATE); if (Z_TYPE_P(eager) != IS_NULL) { @@ -1292,7 +1292,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_array_fetch(&modelName, sqlAliasesModels, columnDomain, PH_NOISY, "phalcon/mvc/model/query.zep", 828 TSRMLS_CC); if (Z_TYPE_P(preparedAlias) != IS_STRING) { if (ZEPHIR_IS_EQUAL(columnDomain, modelName)) { - ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(preparedAlias, columnDomain); @@ -1318,7 +1318,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("scalar"), 1); ZEPHIR_OBS_VAR(columnData); zephir_array_fetch_string(&columnData, column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 871 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 316, columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 317, columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(balias); if (zephir_array_isset_string_fetch(&balias, sqlExprColumn, SS("balias"), 0 TSRMLS_CC)) { @@ -1542,7 +1542,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_4); @@ -1550,7 +1550,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_fast_append(sqlJoinConditions, _0); @@ -1586,7 +1586,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_4); @@ -1594,7 +1594,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, _0, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1076); @@ -1687,7 +1687,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_8, SS("type"), 355); zephir_array_update_string(&_8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _8); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_10); @@ -1695,7 +1695,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_10, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_10, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _10); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _10); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7, PH_COPY | PH_SEPARATE); } @@ -1717,7 +1717,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_12, SS("type"), 355); zephir_array_update_string(&_12, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _12); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _12); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_13); @@ -1725,7 +1725,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_13, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_13, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_13, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _13); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _13); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -1746,7 +1746,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_14, SS("type"), 355); zephir_array_update_string(&_14, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _14); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _14); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_15); @@ -1754,7 +1754,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_15, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_15, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _15); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _15); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -1836,7 +1836,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 322, manager, joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 323, 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", 1315 TSRMLS_CC); @@ -1850,7 +1850,7 @@ 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", &_4, 323, joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 324, joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, joinItem, SS("alias"), 0 TSRMLS_CC)) { @@ -1918,7 +1918,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_GET_HVALUE(joinItem, _11); ZEPHIR_OBS_NVAR(joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, joinItem, SS("conditions"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 316, joinExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 317, joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, joinAliasName, &_12, PH_COPY | PH_SEPARATE); } @@ -2015,10 +2015,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 324, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 325, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 325, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 326, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } if (zephir_array_isset_long(sqlJoin, 0)) { @@ -2095,7 +2095,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1625 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 316, _3); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 317, _3); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, orderItem, SS("sort"), 1 TSRMLS_CC)) { ZEPHIR_INIT_NVAR(orderPartSort); @@ -2151,13 +2151,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(groupItem, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, groupItem); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1659); } } else { zephir_create_array(groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, group); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, group); zephir_check_call_status(); zephir_array_fast_append(groupParts, _3); } @@ -2186,13 +2186,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { ZEPHIR_OBS_VAR(number); if (zephir_array_isset_string_fetch(&number, limitClause, SS("number"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, number); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(offset); if (zephir_array_isset_string_fetch(&offset, limitClause, SS("offset"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, offset); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_0, PH_COPY | PH_SEPARATE); } @@ -2518,12 +2518,12 @@ 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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, 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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(sqlJoins); @@ -2539,7 +2539,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { ; zephir_hash_move_forward_ex(_34, &_33) ) { ZEPHIR_GET_HVALUE(column, _35); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 327, column); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 328, column); zephir_check_call_status(); zephir_is_iterable(_3, &_38, &_37, 0, 0, "phalcon/mvc/model/query.zep", 1997); for ( @@ -2588,31 +2588,31 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 316, where); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 317, where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SS("groupBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 328, groupBy); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 329, groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(having); if (zephir_array_isset_string_fetch(&having, ast, SS("having"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 316, having); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 317, having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(order); if (zephir_array_isset_string_fetch(&order, ast, SS("orderBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 329, order); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 330, order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_41, PH_COPY | PH_SEPARATE); } @@ -2707,7 +2707,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_OBS_NVAR(_8); zephir_array_fetch_string(&_8, exprValue, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2110 TSRMLS_CC); zephir_array_update_string(&_7, SL("type"), &_8, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 316, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 317, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_7, SL("value"), &_0, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, _7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2112); @@ -2885,7 +2885,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_4, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2260 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 316, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 317, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_append(&sqlFields, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2260); ZEPHIR_OBS_NVAR(exprColumn); @@ -2895,7 +2895,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_NVAR(_14); zephir_array_fetch_string(&_14, exprColumn, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2263 TSRMLS_CC); zephir_array_update_string(&_13, SL("type"), &_14, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_13, SL("value"), &_15, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, _13, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2265); @@ -2910,13 +2910,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_16); ZVAL_BOOL(&_16, 1); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, where, &_16); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, where, &_16); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_15, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_15, PH_COPY | PH_SEPARATE); } @@ -3038,13 +3038,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_9); ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 316, where, &_9); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 317, where, &_9); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_10, PH_COPY | PH_SEPARATE); } @@ -3096,22 +3096,22 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 321); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 322); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 331); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 332); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 332); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 333); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 333); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 334); zephir_check_call_status(); break; } @@ -3504,12 +3504,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { isKeepingSnapshots = zephir_get_boolval(_40); } object_init_ex(return_value, phalcon_mvc_model_resultset_simple_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 334, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 335, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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, 335, columns1, resultData, cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, columns1, resultData, cache); zephir_check_call_status(); RETURN_MM(); @@ -3677,7 +3677,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_15, insertModel, "create", NULL, 0, insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, _15, insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 337, _15, insertModel); zephir_check_call_status(); RETURN_MM(); @@ -3816,13 +3816,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_array_update_zval(&updateValues, fieldName, &updateValue, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, selectBindParams, selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); } @@ -3855,7 +3855,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11, record); zephir_check_call_status(); RETURN_MM(); } @@ -3866,7 +3866,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); @@ -3907,13 +3907,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, _1, "load", NULL, 0, modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); } @@ -3946,7 +3946,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2, record); zephir_check_call_status(); RETURN_MM(); } @@ -3957,7 +3957,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); @@ -4014,18 +4014,18 @@ 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, 338); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 339); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 339, _5); + ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 340, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 309); - ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 340, _2); + ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 341, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 341, selectIr); + ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 342, selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -4153,22 +4153,22 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property_this(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 343, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 344, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 344, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 345, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 345, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 346, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 346, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 347, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } @@ -4230,7 +4230,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -4443,7 +4443,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_3); ZVAL_BOOL(&_3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 343, intermediate, _1, _2, &_3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 344, intermediate, _1, _2, &_3); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/model/query/builder.zep.c b/ext/phalcon/mvc/model/query/builder.zep.c index a3efc7ac9d4..39426d59fb0 100644 --- a/ext/phalcon/mvc/model/query/builder.zep.c +++ b/ext/phalcon/mvc/model/query/builder.zep.c @@ -1840,21 +1840,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_INIT_VAR(query); object_init_ex(query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 347); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 348); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 338, _0, _1); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 339, _0, _1); zephir_check_call_status(); ZEPHIR_OBS_VAR(bindParams); zephir_read_property_this(&bindParams, this_ptr, SL("_bindParams"), PH_NOISY_CC); if (Z_TYPE_P(bindParams) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 348, bindParams); + ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 349, bindParams); zephir_check_call_status(); } ZEPHIR_OBS_VAR(bindTypes); zephir_read_property_this(&bindTypes, this_ptr, SL("_bindTypes"), PH_NOISY_CC); if (Z_TYPE_P(bindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 349, bindTypes); + ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 350, bindTypes); zephir_check_call_status(); } RETURN_CCTOR(query); diff --git a/ext/phalcon/mvc/model/resultset.zep.c b/ext/phalcon/mvc/model/resultset.zep.c index b0c3efcce1a..1b1b795029e 100644 --- a/ext/phalcon/mvc/model/resultset.zep.c +++ b/ext/phalcon/mvc/model/resultset.zep.c @@ -170,7 +170,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pointer"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (zephir_get_numberval(_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -219,7 +219,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -359,7 +359,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { if (ZEPHIR_GT_LONG(_0, index)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -444,7 +444,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -469,7 +469,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (zephir_get_numberval(count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/model/resultset/complex.zep.c b/ext/phalcon/mvc/model/resultset/complex.zep.c index 5c002c790e8..a5c5f07d027 100644 --- a/ext/phalcon/mvc/model/resultset/complex.zep.c +++ b/ext/phalcon/mvc/model/resultset/complex.zep.c @@ -72,7 +72,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_this(this_ptr, SL("_columnTypes"), columnTypes TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 351, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -296,7 +296,7 @@ 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, 73, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_CCTOR(serialized); @@ -328,7 +328,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { zephir_update_property_this(this_ptr, SL("_disableHydration"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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", 304); diff --git a/ext/phalcon/mvc/model/resultset/simple.zep.c b/ext/phalcon/mvc/model/resultset/simple.zep.c index 911a89b40a1..8a6c4f39224 100644 --- a/ext/phalcon/mvc/model/resultset/simple.zep.c +++ b/ext/phalcon/mvc/model/resultset/simple.zep.c @@ -78,7 +78,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_this(this_ptr, SL("_model"), model TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_columnMap"), columnMap TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_keepSnapshots"), keepSnapshots TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 351, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -136,12 +136,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 351, _2, row, columnMap, _3, _6); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 352, _2, row, columnMap, _3, _6); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 352, row, columnMap, hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 353, row, columnMap, hydrateMode); zephir_check_call_status(); break; } while(0); @@ -281,7 +281,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, serialize) { ZEPHIR_OBS_NVAR(_1); zephir_read_property_this(&_1, this_ptr, SL("_hydrateMode"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("hydrateMode"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -312,7 +312,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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); diff --git a/ext/phalcon/mvc/model/transaction.zep.c b/ext/phalcon/mvc/model/transaction.zep.c index 23b58272e08..cc5e99185c9 100644 --- a/ext/phalcon/mvc/model/transaction.zep.c +++ b/ext/phalcon/mvc/model/transaction.zep.c @@ -248,7 +248,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 353, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 354, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -270,7 +270,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 354); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 355); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); diff --git a/ext/phalcon/mvc/model/transaction/manager.zep.c b/ext/phalcon/mvc/model/transaction/manager.zep.c index 79235e84402..df711241822 100644 --- a/ext/phalcon/mvc/model/transaction/manager.zep.c +++ b/ext/phalcon/mvc/model/transaction/manager.zep.c @@ -259,7 +259,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "rollbackPendent", 1); zephir_array_fast_append(_2, _3); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 355, _2); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 356, _2); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_initialized"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -321,9 +321,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) { ZEPHIR_INIT_VAR(transaction); object_init_ex(transaction, phalcon_mvc_model_transaction_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_service"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 356, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); + ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 357, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 357, this_ptr); + ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 358, 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)); diff --git a/ext/phalcon/mvc/model/validator/email.zep.c b/ext/phalcon/mvc/model/validator/email.zep.c index ead2b41264c..f4f640aff05 100644 --- a/ext/phalcon/mvc/model/validator/email.zep.c +++ b/ext/phalcon/mvc/model/validator/email.zep.c @@ -94,7 +94,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/model/validator/inclusionin.zep.c b/ext/phalcon/mvc/model/validator/inclusionin.zep.c index 3e3358b4132..f95d7b38208 100644 --- a/ext/phalcon/mvc/model/validator/inclusionin.zep.c +++ b/ext/phalcon/mvc/model/validator/inclusionin.zep.c @@ -131,7 +131,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { zephir_check_temp_parameter(_0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 359, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_5))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/model/validator/ip.zep.c b/ext/phalcon/mvc/model/validator/ip.zep.c index afb6bf89221..d44083f5bcc 100644 --- a/ext/phalcon/mvc/model/validator/ip.zep.c +++ b/ext/phalcon/mvc/model/validator/ip.zep.c @@ -148,7 +148,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_array_update_string(&options, SL("flags"), &_6, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 275); - ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 192, value, &_5, options); + ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 193, value, &_5, options); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/model/validator/stringlength.zep.c b/ext/phalcon/mvc/model/validator/stringlength.zep.c index ba089b88786..c493d5450c8 100644 --- a/ext/phalcon/mvc/model/validator/stringlength.zep.c +++ b/ext/phalcon/mvc/model/validator/stringlength.zep.c @@ -118,7 +118,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); diff --git a/ext/phalcon/mvc/model/validator/url.zep.c b/ext/phalcon/mvc/model/validator/url.zep.c index 7008417e89f..b5734f622a2 100644 --- a/ext/phalcon/mvc/model/validator/url.zep.c +++ b/ext/phalcon/mvc/model/validator/url.zep.c @@ -95,7 +95,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/router.zep.c b/ext/phalcon/mvc/router.zep.c index 33c3b9115f3..68830237dae 100644 --- a/ext/phalcon/mvc/router.zep.c +++ b/ext/phalcon/mvc/router.zep.c @@ -142,7 +142,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_1, SS("controller"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^/([\\w0-9\\_\\-]+)[/]{0,1}$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 76, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 77, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/mvc/router.zep", 120); @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^/([\\w0-9\\_\\-]+)/([\\w0-9\\.\\_]+)(/.*)*$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 76, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 77, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/mvc/router.zep", 126); @@ -742,7 +742,7 @@ PHP_METHOD(Phalcon_Mvc_Router, handle) { ZEPHIR_OBS_VAR(notFoundPaths); zephir_read_property_this(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(notFoundPaths) != IS_NULL) { - ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 77, notFoundPaths); + ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 78, notFoundPaths); zephir_check_call_status(); ZEPHIR_INIT_NVAR(routeFound); ZVAL_BOOL(routeFound, 1); @@ -866,7 +866,7 @@ 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, 76, pattern, paths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, pattern, paths, httpMethods); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(position, 1)) { diff --git a/ext/phalcon/mvc/router/annotations.zep.c b/ext/phalcon/mvc/router/annotations.zep.c index 0e5023e1445..9edaeb56689 100644 --- a/ext/phalcon/mvc/router/annotations.zep.c +++ b/ext/phalcon/mvc/router/annotations.zep.c @@ -326,7 +326,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } zephir_update_property_this(this_ptr, SL("_processed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 360, realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 361, realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/mvc/router/group.zep.c b/ext/phalcon/mvc/router/group.zep.c index 4baff7d60a2..a59a066884a 100644 --- a/ext/phalcon/mvc/router/group.zep.c +++ b/ext/phalcon/mvc/router/group.zep.c @@ -613,7 +613,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property_this(&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, 77, paths); + ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 78, paths); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(processedPaths, paths); @@ -632,10 +632,10 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_VV(_2, _1, pattern); - ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 76, _2, mergedPaths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, _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, 361, this_ptr); + ZEPHIR_CALL_METHOD(NULL, route, "setgroup", NULL, 362, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); diff --git a/ext/phalcon/mvc/url.zep.c b/ext/phalcon/mvc/url.zep.c index ae2de236bde..97775e5d5f6 100644 --- a/ext/phalcon/mvc/url.zep.c +++ b/ext/phalcon/mvc/url.zep.c @@ -412,7 +412,7 @@ PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 362, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 363, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index 4c011694c55..cbf02db103b 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -741,7 +741,7 @@ PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); RETURN_THIS(); @@ -773,7 +773,7 @@ PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 363, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 364, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -1116,7 +1116,7 @@ PHP_METHOD(Phalcon_Mvc_View, render) { zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_disabled"), PH_NOISY_CC); if (!ZEPHIR_IS_FALSE(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); RETURN_MM_BOOL(0); @@ -1176,7 +1176,7 @@ PHP_METHOD(Phalcon_Mvc_View, render) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); mustClean = 1; @@ -1393,11 +1393,11 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); 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, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 285); zephir_check_call_status(); RETURN_MM(); @@ -1551,7 +1551,7 @@ 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, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(view, "getcontent", NULL, 0); zephir_check_call_status(); @@ -1568,7 +1568,7 @@ PHP_METHOD(Phalcon_Mvc_View, finish) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); RETURN_THIS(); diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index f1910edbe49..650ee4e4ff8 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -70,7 +70,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 365); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -92,7 +92,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean == 1) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index c97dd984f09..bda94cce10b 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -89,18 +89,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(compiler); object_init_ex(compiler, phalcon_mvc_view_engine_volt_compiler_ce); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 365, _0); + ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 366, _0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _1); if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 366, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 367, dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(options); zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 367, options); + ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 368, options); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_compiler"), compiler TSRMLS_CC); @@ -143,7 +143,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 365); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -171,7 +171,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); @@ -205,7 +205,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { ZVAL_LONG(length, zephir_fast_count_int(item TSRMLS_CC)); } else { if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, item); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, item); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -234,7 +234,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SS("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 368, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 369, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(_0)); } @@ -290,7 +290,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 369, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 370, text); zephir_check_call_status(); RETURN_MM(); } @@ -299,17 +299,17 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _1 = ZEPHIR_IS_STRING(from, "utf8"); } if (_1) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 370, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 371, text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, text, from, to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, text, from, to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 371, from, to, text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 372, from, to, text); zephir_check_call_status(); RETURN_MM(); } @@ -383,7 +383,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 372, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 373, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } @@ -391,13 +391,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(length) != IS_NULL) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 374, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 374, value, &_5); zephir_check_call_status(); RETURN_MM(); } @@ -430,7 +430,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { Z_SET_ISREF_P(value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 374, value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 375, value); Z_UNSET_ISREF_P(value); zephir_check_call_status(); RETURN_CTOR(value); @@ -477,7 +477,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 375, macro, arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 376, macro, arguments); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index 25b96276028..d9e4b064cf8 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -545,7 +545,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 377, 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", 339 TSRMLS_CC); @@ -567,7 +567,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_7, right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 352 TSRMLS_CC); zephir_concat_self(&exprCode, _7 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 376, right); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 377, right); zephir_check_call_status(); zephir_concat_self(&exprCode, _1 TSRMLS_CC); } @@ -599,7 +599,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(funcArguments); ZEPHIR_OBS_NVAR(funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, expr, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 377, funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(arguments); @@ -622,7 +622,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(_1, funcArguments); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "compileFunction", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _2, _1); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -684,7 +684,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(exprLevel); zephir_read_property_this(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 378, block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 379, block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(exprLevel, 1)) { ZEPHIR_CPY_WRT(escapedCode, code); @@ -711,7 +711,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { } ZEPHIR_INIT_NVAR(_2); zephir_camelize(_2, name); - ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 67, _2); + ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 68, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); ZVAL_STRING(className, "Phalcon\\Tag", 1); @@ -780,7 +780,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 376, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 377, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -843,28 +843,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -939,11 +939,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, funcArguments, _4); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, funcArguments, _4); Z_UNSET_ISREF_P(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 377, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -958,7 +958,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -1159,7 +1159,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 377, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 378, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -1177,7 +1177,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -1199,7 +1199,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 377, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -1210,13 +1210,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 380, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 381, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 376, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 377, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -1392,7 +1392,7 @@ 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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 376, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 377, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -1400,7 +1400,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 376, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 377, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -1492,7 +1492,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -1571,7 +1571,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends) { } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 381, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 382, statements); zephir_check_call_status(); RETURN_MM(); } @@ -1622,7 +1622,7 @@ 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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, 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", 1369 TSRMLS_CC); @@ -1652,7 +1652,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 382, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -1700,7 +1700,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, statement, SS("if_expr"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 376, ifExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 377, ifExpr); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_SVS(_5, "if (", _12, ") { ?>"); @@ -1804,16 +1804,16 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 381, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 382, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 382, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SV(_5, "", _4); @@ -1845,7 +1845,7 @@ 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", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1880,9 +1880,9 @@ 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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -1912,7 +1912,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 381, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 382, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); @@ -1974,10 +1974,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 376, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 377, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 376, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 377, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -2038,7 +2038,7 @@ 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", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -2066,7 +2066,7 @@ 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", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -2100,7 +2100,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 381, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 382, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -2132,7 +2132,7 @@ 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", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -2209,14 +2209,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 376, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 377, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 376, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 377, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -2300,7 +2300,7 @@ 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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 376, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 377, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -2316,7 +2316,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 382, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, " - * $random = new \Phalcon\Security\Random(); - * - * // Random binary string - * $bytes = $random->bytes(); - * - * // Random hex string - * echo $random->hex(10); // a29f470508d5ccb8e289 - * echo $random->hex(10); // 533c2f08d5eee750e64a - * echo $random->hex(11); // f362ef96cb9ffef150c9cd - * echo $random->hex(12); // 95469d667475125208be45c4 - * echo $random->hex(13); // 05475e8af4a34f8f743ab48761 - * - * // Random base64 string - * echo $random->base64(12); // XfIN81jGGuKkcE1E - * echo $random->base64(12); // 3rcq39QzGK9fUqh8 - * echo $random->base64(); // DRcfbngL/iOo9hGGvy1TcQ== - * echo $random->base64(16); // SvdhPcIHDZFad838Bb0Swg== - * - * // Random URL-safe base64 string - * echo $random->base64Safe(); // PcV6jGbJ6vfVw7hfKIFDGA - * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug - * echo $random->base64Safe(8); // mGyy0evy3ok - * echo $random->base64Safe(null, true); // DRrAgOFkS4rvRiVHFefcQ== - * - * // Random UUID - * echo $random->uuid(); // db082997-2572-4e2c-a046-5eefe97b1235 - * echo $random->uuid(); // da2aa0e2-b4d0-4e3c-99f5-f5ef62c57fe2 - * echo $random->uuid(); // 75e6b628-c562-4117-bb76-61c4153455a9 - * echo $random->uuid(); // dc446df1-0848-4d05-b501-4af3c220c13d - * - * // Random number between 0 and $len - * echo $random->number(256); // 84 - * echo $random->number(256); // 79 - * echo $random->number(100); // 29 - * echo $random->number(300); // 40 + * $random = new \Phalcon\Security\Random(); + * + * // Random binary string + * $bytes = $random->bytes(); + * + * // Random hex string + * echo $random->hex(10); // a29f470508d5ccb8e289 + * echo $random->hex(10); // 533c2f08d5eee750e64a + * echo $random->hex(11); // f362ef96cb9ffef150c9cd + * echo $random->hex(12); // 95469d667475125208be45c4 + * echo $random->hex(13); // 05475e8af4a34f8f743ab48761 + * + * // Random base64 string + * echo $random->base64(12); // XfIN81jGGuKkcE1E + * echo $random->base64(12); // 3rcq39QzGK9fUqh8 + * echo $random->base64(); // DRcfbngL/iOo9hGGvy1TcQ== + * echo $random->base64(16); // SvdhPcIHDZFad838Bb0Swg== + * + * // Random URL-safe base64 string + * echo $random->base64Safe(); // PcV6jGbJ6vfVw7hfKIFDGA + * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug + * echo $random->base64Safe(8); // mGyy0evy3ok + * echo $random->base64Safe(null, true); // DRrAgOFkS4rvRiVHFefcQ== + * + * // Random UUID + * echo $random->uuid(); // db082997-2572-4e2c-a046-5eefe97b1235 + * echo $random->uuid(); // da2aa0e2-b4d0-4e3c-99f5-f5ef62c57fe2 + * echo $random->uuid(); // 75e6b628-c562-4117-bb76-61c4153455a9 + * echo $random->uuid(); // dc446df1-0848-4d05-b501-4af3c220c13d + * + * // Random number between 0 and $len + * echo $random->number(256); // 84 + * echo $random->number(256); // 79 + * echo $random->number(100); // 29 + * echo $random->number(300); // 40 + * + * // Random base58 string + * echo $random->base58(); // 4kUgL2pdQMSCQtjE + * echo $random->base58(); // Umjxqf7ZPwh765yR + * echo $random->base58(24); // qoXcgmw4A9dys26HaNEdCRj9 + * echo $random->base58(7); // 774SJD3vgP * * * This class partially borrows SecureRandom library from Ruby @@ -94,9 +101,9 @@ ZEPHIR_INIT_CLASS(Phalcon_Security_Random) { * The result may contain any byte: "x00" - "xFF". * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * $bytes = $random->bytes(); + * $bytes = $random->bytes(); * * * @throws Exception If secure random number generator is not available or unexpected partial read @@ -129,7 +136,7 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 400, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -140,26 +147,26 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { ZVAL_STRING(&_2, "/dev/urandom", 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "rb", 0); - ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 285, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 286, &_2, &_3); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 403, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 388, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 117); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 123); return; } RETURN_CCTOR(ret); } } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 124); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 130); return; } @@ -171,9 +178,9 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { * The length of the result string is usually greater of $len. * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->hex(10); // a29f470508d5ccb8e289 + * echo $random->hex(10); // a29f470508d5ccb8e289 * * * @throws Exception If secure random number generator is not available or unexpected partial read @@ -199,26 +206,96 @@ PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); - ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 121, _3); + ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); RETURN_MM(); } +/** + * Generates a random base58 string + * + * If $len is not specified, 16 is assumed. It may be larger in future. + * The result may contain alphanumeric characters except 0, O, I and l. + * + * It is similar to Base64 but has been modified to avoid both non-alphanumeric + * characters and letters which might look ambiguous when printed. + * + * + * $random = new \Phalcon\Security\Random(); + * + * echo $random->base58(); // 4kUgL2pdQMSCQtjE + * + * + * @link https://en.wikipedia.org/wiki/Base58 + * @throws Exception If secure random number generator is not available or unexpected partial read + */ +PHP_METHOD(Phalcon_Security_Random, base58) { + + unsigned char _8; + zephir_fcall_cache_entry *_7 = NULL; + double _5; + HashTable *_3; + HashPosition _2; + int ZEPHIR_LAST_CALL_STATUS; + zval *byteString, *alphabet; + zval *n = NULL, *bytes = NULL, *idx = NULL, *_0 = NULL, _1, **_4, *_6 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 1, &n); + + if (!n) { + n = ZEPHIR_GLOBAL(global_null); + } + ZEPHIR_INIT_VAR(byteString); + ZVAL_STRING(byteString, "", 1); + ZEPHIR_INIT_VAR(alphabet); + ZVAL_STRING(alphabet, "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", 1); + + + ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, n); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_1); + ZVAL_STRING(&_1, "C*", 0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + zephir_check_call_status(); + zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); + for ( + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) + ) { + ZEPHIR_GET_HVALUE(idx, _4); + _5 = zephir_safe_mod_zval_long(idx, 64 TSRMLS_CC); + ZEPHIR_INIT_NVAR(idx); + ZVAL_DOUBLE(idx, _5); + if (ZEPHIR_GE_LONG(idx, 58)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, 57); + ZEPHIR_CALL_METHOD(&idx, this_ptr, "number", &_7, 0, _6); + zephir_check_call_status(); + } + _8 = ZEPHIR_STRING_OFFSET(alphabet, zephir_get_intval(idx)); + zephir_concat_self_char(&byteString, _8 TSRMLS_CC); + } + RETURN_CTOR(byteString); + +} + /** * Generates a random base64 string * * If $len is not specified, 16 is assumed. It may be larger in future. * The length of the result string is usually greater of $len. + * Size formula: 4 *( $len / 3) and this need to be rounded up to a multiple of 4. * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->base64(12); // 3rcq39QzGK9fUqh8 + * echo $random->base64(12); // 3rcq39QzGK9fUqh8 * * * @throws Exception If secure random number generator is not available or unexpected partial read @@ -242,7 +319,7 @@ PHP_METHOD(Phalcon_Security_Random, base64) { ZVAL_LONG(_1, len); ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -259,9 +336,9 @@ PHP_METHOD(Phalcon_Security_Random, base64) { * See RFC 3548 for the definition of URL-safe base64. * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug + * echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug * * * @link https://www.ietf.org/rfc/rfc3548.txt @@ -322,9 +399,9 @@ PHP_METHOD(Phalcon_Security_Random, base64Safe) { * digit and y is one of 8, 9, A, or B (e.g., f47ac10b-58cc-4372-a567-0e02b2c3d479). * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->uuid(); // 1378c906-64bb-4f81-a8d6-4ae1bfcdec22 + * echo $random->uuid(); // 1378c906-64bb-4f81-a8d6-4ae1bfcdec22 * * * @link https://www.ietf.org/rfc/rfc4122.txt @@ -343,22 +420,22 @@ PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 215, _3); + ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); - zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 222 TSRMLS_CC); + zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 268 TSRMLS_CC); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, ((((int) (zephir_get_numberval(_4)) & 0x0fff)) | 0x4000)); - zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 222); - zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 223 TSRMLS_CC); + zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 268); + zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 269 TSRMLS_CC); ZEPHIR_INIT_VAR(_6); ZVAL_LONG(_6, ((((int) (zephir_get_numberval(_5)) & 0x3fff)) | 0x8000)); - zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 223); + zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 269); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "%08x-%04x-%04x-%04x-%04x%08x", ZEPHIR_TEMP_PARAM_COPY); Z_SET_ISREF_P(ary); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, ary, _7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, ary, _7); zephir_check_temp_parameter(_7); Z_UNSET_ISREF_P(ary); zephir_check_call_status(); @@ -373,95 +450,106 @@ PHP_METHOD(Phalcon_Security_Random, uuid) { /** * Generates a random number between 0 and $len * + * Returns an integer: 0 <= result <= $len. + * * - * $random = new \Phalcon\Security\Random(); + * $random = new \Phalcon\Security\Random(); * - * echo $random->number(16); // 8 + * echo $random->number(16); // 8 * * @throws Exception If secure random number generator is not available, unexpected partial read or $len <= 0 */ PHP_METHOD(Phalcon_Security_Random, number) { - zephir_fcall_cache_entry *_4 = NULL, *_9 = NULL, *_14 = NULL, *_18 = NULL; - zval *len_param = NULL, *hex = NULL, *bin = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *first = NULL, _0 = zval_used_for_init, *_1, _2, *_3, *_8 = NULL, _10 = zval_used_for_init, _11 = zval_used_for_init, _12 = zval_used_for_init, *_13 = NULL, _15 = zval_used_for_init, _16 = zval_used_for_init, *_17 = NULL; - int len, ZEPHIR_LAST_CALL_STATUS, _5, _6, _7; + zephir_fcall_cache_entry *_5 = NULL, *_9 = NULL, *_13 = NULL, *_17 = NULL; + unsigned char _4; + zval *bin; + zval *len_param = NULL, *hex = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *_0 = NULL, _1 = zval_used_for_init, *_2, *_3 = NULL, _10 = zval_used_for_init, *_11 = NULL, _12 = zval_used_for_init, _14 = zval_used_for_init, _15 = zval_used_for_init, *_16 = NULL; + int len, ZEPHIR_LAST_CALL_STATUS, _6, _7, _8; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &len_param); len = zephir_get_intval(len_param); + ZEPHIR_INIT_VAR(bin); + ZVAL_STRING(bin, "", 1); - if (len > 0) { - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 405, &_0); - zephir_check_call_status(); - if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { - ZEPHIR_INIT_VAR(_1); - ZEPHIR_CONCAT_SV(_1, "0", hex); - ZEPHIR_CPY_WRT(hex, _1); - } - ZEPHIR_SINIT_NVAR(_0); - ZVAL_STRING(&_0, "H*", 0); - ZEPHIR_CALL_FUNCTION(&bin, "pack", NULL, 406, &_0, hex); + if (len <= 0) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 294); + return; + } + if ((zephir_function_exists_ex(SS("\\sodium\\randombytes_uniform") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, len); + ZEPHIR_RETURN_CALL_FUNCTION("\\sodium\\randombytes_uniform", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_SINIT_VAR(_2); - ZVAL_LONG(&_2, 1); - ZEPHIR_INIT_VAR(_3); - zephir_substr(_3, bin, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&mask, "ord", &_4, 132, _3); + RETURN_MM(); + } + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, len); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + zephir_check_call_status(); + if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "0", hex); + ZEPHIR_CPY_WRT(hex, _2); + } + ZEPHIR_SINIT_NVAR(_1); + ZVAL_STRING(&_1, "H*", 0); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + zephir_check_call_status(); + zephir_concat_self(&bin, _3 TSRMLS_CC); + _4 = ZEPHIR_STRING_OFFSET(bin, 0); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, _4); + ZEPHIR_CALL_FUNCTION(&mask, "ord", &_5, 133, &_1); + zephir_check_call_status(); + _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _6); + _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _7); + _8 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _8); + do { + ZEPHIR_INIT_NVAR(_0); + ZVAL_LONG(_0, zephir_fast_strlen_ev(bin)); + ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _0); zephir_check_call_status(); - _5 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _5); - _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _6); - _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _7); - do { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, zephir_fast_strlen_ev(bin)); - ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_10); - ZVAL_LONG(&_10, 0); - ZEPHIR_SINIT_NVAR(_11); - ZVAL_LONG(&_11, 1); - ZEPHIR_INIT_NVAR(_8); - zephir_substr(_8, rnd, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&first, "ord", &_4, 132, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_12); - zephir_bitwise_and_function(&_12, first, mask TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_14, 130, &_12); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_15); - ZVAL_LONG(&_15, 0); - ZEPHIR_SINIT_NVAR(_16); - ZVAL_LONG(&_16, 1); - ZEPHIR_CALL_FUNCTION(&_17, "substr_replace", &_18, 407, rnd, _13, &_15, &_16); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(rnd, _17); - } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, 0); ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 404, &_10, rnd); + ZVAL_LONG(&_10, 1); + ZEPHIR_INIT_NVAR(_0); + zephir_substr(_0, rnd, 0 , 1 , 0); + ZEPHIR_CALL_FUNCTION(&_11, "ord", &_5, 133, _0); zephir_check_call_status(); - Z_SET_ISREF_P(ret); - ZEPHIR_CALL_FUNCTION(&_13, "array_shift", NULL, 121, ret); - Z_UNSET_ISREF_P(ret); + ZEPHIR_SINIT_NVAR(_12); + zephir_bitwise_and_function(&_12, _11, mask TSRMLS_CC); + ZEPHIR_CALL_FUNCTION(&_11, "chr", &_13, 131, &_12); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 408, _13); + ZEPHIR_SINIT_NVAR(_14); + ZVAL_LONG(&_14, 0); + ZEPHIR_SINIT_NVAR(_15); + ZVAL_LONG(&_15, 1); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); - RETURN_MM(); - } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 269); - return; + ZEPHIR_CPY_WRT(rnd, _16); + } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "H*", 0); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + zephir_check_call_status(); + Z_SET_ISREF_P(ret); + ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); + Z_UNSET_ISREF_P(ret); + zephir_check_call_status(); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + zephir_check_call_status(); + RETURN_MM(); } diff --git a/ext/phalcon/security/random.zep.h b/ext/phalcon/security/random.zep.h index 8e8a66e3add..180f271a22f 100644 --- a/ext/phalcon/security/random.zep.h +++ b/ext/phalcon/security/random.zep.h @@ -5,6 +5,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Security_Random); PHP_METHOD(Phalcon_Security_Random, bytes); PHP_METHOD(Phalcon_Security_Random, hex); +PHP_METHOD(Phalcon_Security_Random, base58); PHP_METHOD(Phalcon_Security_Random, base64); PHP_METHOD(Phalcon_Security_Random, base64Safe); PHP_METHOD(Phalcon_Security_Random, uuid); @@ -18,6 +19,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_hex, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base58, 0, 0, 0) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base64, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() @@ -34,6 +39,7 @@ ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_security_random_method_entry) { PHP_ME(Phalcon_Security_Random, bytes, arginfo_phalcon_security_random_bytes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, hex, arginfo_phalcon_security_random_hex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security_Random, base58, arginfo_phalcon_security_random_base58, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64, arginfo_phalcon_security_random_base64, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64Safe, arginfo_phalcon_security_random_base64safe, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, uuid, NULL, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/session/adapter/libmemcached.zep.c b/ext/phalcon/session/adapter/libmemcached.zep.c index 5adb61408db..bddc85a0b46 100644 --- a/ext/phalcon/session/adapter/libmemcached.zep.c +++ b/ext/phalcon/session/adapter/libmemcached.zep.c @@ -123,7 +123,7 @@ PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 312, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_create_array(_4, 4, 0 TSRMLS_CC); @@ -131,7 +131,7 @@ PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { zephir_array_update_string(&_4, SL("client"), &client, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("prefix"), &prefix, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("statsKey"), &statsKey, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, _4); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 313, _1, _4); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_libmemcached"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_5); @@ -170,9 +170,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/adapter/memcache.zep.c b/ext/phalcon/session/adapter/memcache.zep.c index 3cffd35f931..76116f5521c 100644 --- a/ext/phalcon/session/adapter/memcache.zep.c +++ b/ext/phalcon/session/adapter/memcache.zep.c @@ -117,9 +117,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 312, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -158,9 +158,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/adapter/redis.zep.c b/ext/phalcon/session/adapter/redis.zep.c index 6b59b71a507..c27a8f02dfa 100644 --- a/ext/phalcon/session/adapter/redis.zep.c +++ b/ext/phalcon/session/adapter/redis.zep.c @@ -116,9 +116,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 312, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -157,9 +157,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/bag.zep.c b/ext/phalcon/session/bag.zep.c index 04d63d9eb5e..1d6a90da36a 100644 --- a/ext/phalcon/session/bag.zep.c +++ b/ext/phalcon/session/bag.zep.c @@ -541,7 +541,7 @@ PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 411, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/tag.zep.c b/ext/phalcon/tag.zep.c index 63a371d2ee2..72c0ed33940 100644 --- a/ext/phalcon/tag.zep.c +++ b/ext/phalcon/tag.zep.c @@ -869,7 +869,7 @@ PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -899,7 +899,7 @@ PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -929,7 +929,7 @@ PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -955,7 +955,7 @@ PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -985,7 +985,7 @@ PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1015,7 +1015,7 @@ PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1041,7 +1041,7 @@ PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1067,7 +1067,7 @@ PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1093,7 +1093,7 @@ PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1119,7 +1119,7 @@ PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1145,7 +1145,7 @@ PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1175,7 +1175,7 @@ PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1205,7 +1205,7 @@ PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1235,7 +1235,7 @@ PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1261,7 +1261,7 @@ PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1287,7 +1287,7 @@ PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1313,7 +1313,7 @@ PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1343,7 +1343,7 @@ PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1378,7 +1378,7 @@ PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1415,7 +1415,7 @@ PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1452,7 +1452,7 @@ PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1484,7 +1484,7 @@ PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -1524,7 +1524,7 @@ PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -2173,20 +2173,20 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 129, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 414, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "ASCII//TRANSLIT", 0); - ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 371, &_0, &_3, text); + ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 372, &_0, &_3, text); zephir_check_call_status(); zephir_get_strval(text, _5); } @@ -2244,12 +2244,12 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_CPY_WRT(friendly, _11); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 128, &_3); + ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 129, &_3); zephir_check_call_status(); if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 414, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); diff --git a/ext/phalcon/tag/select.zep.c b/ext/phalcon/tag/select.zep.c index 94b16581ce7..9207dddfe38 100644 --- a/ext/phalcon/tag/select.zep.c +++ b/ext/phalcon/tag/select.zep.c @@ -151,7 +151,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 415, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -160,7 +160,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 416, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -313,12 +313,12 @@ PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 416, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index 0f341d3d8d6..177a0db6cde 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -194,13 +194,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -211,13 +211,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -228,7 +228,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -237,7 +237,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -245,21 +245,21 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 418, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -388,7 +388,7 @@ PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -443,7 +443,7 @@ PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -509,24 +509,24 @@ PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 372, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 373, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -632,24 +632,24 @@ PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 421, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 421, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 422, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 423, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 423, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -661,7 +661,7 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 424, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } diff --git a/ext/phalcon/translate/adapter/csv.zep.c b/ext/phalcon/translate/adapter/csv.zep.c index d51c010cf62..415074fdf61 100644 --- a/ext/phalcon/translate/adapter/csv.zep.c +++ b/ext/phalcon/translate/adapter/csv.zep.c @@ -60,7 +60,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -73,7 +73,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, 426, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -103,7 +103,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -117,7 +117,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 427, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; diff --git a/ext/phalcon/translate/adapter/gettext.zep.c b/ext/phalcon/translate/adapter/gettext.zep.c index acb8ba00794..149576046be 100644 --- a/ext/phalcon/translate/adapter/gettext.zep.c +++ b/ext/phalcon/translate/adapter/gettext.zep.c @@ -76,7 +76,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -117,22 +117,22 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 419, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 428, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 429, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -245,12 +245,12 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 430, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 431, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -290,7 +290,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 432, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -310,7 +310,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, 432, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -381,14 +381,14 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -437,7 +437,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -450,12 +450,12 @@ 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", NULL, 434, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 414, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); diff --git a/ext/phalcon/translate/adapter/nativearray.zep.c b/ext/phalcon/translate/adapter/nativearray.zep.c index 06765f7ad6a..54e771dd4c1 100644 --- a/ext/phalcon/translate/adapter/nativearray.zep.c +++ b/ext/phalcon/translate/adapter/nativearray.zep.c @@ -55,7 +55,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { diff --git a/ext/phalcon/translate/interpolator/indexedarray.zep.c b/ext/phalcon/translate/interpolator/indexedarray.zep.c index 402fe22ec6b..5b4c008355a 100644 --- a/ext/phalcon/translate/interpolator/indexedarray.zep.c +++ b/ext/phalcon/translate/interpolator/indexedarray.zep.c @@ -63,7 +63,7 @@ PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholders) { } if (_0) { Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, placeholders, translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, placeholders, translation); Z_UNSET_ISREF_P(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); diff --git a/ext/phalcon/validation/message.zep.c b/ext/phalcon/validation/message.zep.c index 46a81ee21d7..9384c6b05e5 100644 --- a/ext/phalcon/validation/message.zep.c +++ b/ext/phalcon/validation/message.zep.c @@ -231,7 +231,7 @@ PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 435, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 437, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/validation/validator/alnum.zep.c b/ext/phalcon/validation/validator/alnum.zep.c index 7d65ef87eab..b98ff9f2a7a 100644 --- a/ext/phalcon/validation/validator/alnum.zep.c +++ b/ext/phalcon/validation/validator/alnum.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 436, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/alpha.zep.c b/ext/phalcon/validation/validator/alpha.zep.c index f10124068bb..6b961f8cc0f 100644 --- a/ext/phalcon/validation/validator/alpha.zep.c +++ b/ext/phalcon/validation/validator/alpha.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 437, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/between.zep.c b/ext/phalcon/validation/validator/between.zep.c index 713ebd1169b..90a878b2813 100644 --- a/ext/phalcon/validation/validator/between.zep.c +++ b/ext/phalcon/validation/validator/between.zep.c @@ -131,7 +131,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/confirmation.zep.c b/ext/phalcon/validation/validator/confirmation.zep.c index 88f8e8cc2ae..f3cf5b4da8d 100644 --- a/ext/phalcon/validation/validator/confirmation.zep.c +++ b/ext/phalcon/validation/validator/confirmation.zep.c @@ -77,7 +77,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(&_1, this_ptr, "compare", NULL, 438, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -120,7 +120,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -162,12 +162,12 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } diff --git a/ext/phalcon/validation/validator/digit.zep.c b/ext/phalcon/validation/validator/digit.zep.c index 0ef489116ca..82bcbc18d8c 100644 --- a/ext/phalcon/validation/validator/digit.zep.c +++ b/ext/phalcon/validation/validator/digit.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/email.zep.c b/ext/phalcon/validation/validator/email.zep.c index 46031d4d506..a577f7fd586 100644 --- a/ext/phalcon/validation/validator/email.zep.c +++ b/ext/phalcon/validation/validator/email.zep.c @@ -83,7 +83,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/exclusionin.zep.c b/ext/phalcon/validation/validator/exclusionin.zep.c index 5e865ae3289..ce375d01d42 100644 --- a/ext/phalcon/validation/validator/exclusionin.zep.c +++ b/ext/phalcon/validation/validator/exclusionin.zep.c @@ -126,7 +126,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/file.zep.c b/ext/phalcon/validation/validator/file.zep.c index 5464189ff38..340682df313 100644 --- a/ext/phalcon/validation/validator/file.zep.c +++ b/ext/phalcon/validation/validator/file.zep.c @@ -136,7 +136,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 435, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -176,7 +176,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -239,7 +239,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -285,7 +285,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -295,9 +295,9 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -322,7 +322,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 435, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -348,12 +348,12 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -384,7 +384,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -408,7 +408,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -469,7 +469,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -525,7 +525,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 435, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); diff --git a/ext/phalcon/validation/validator/identical.zep.c b/ext/phalcon/validation/validator/identical.zep.c index 62bbac1a914..6d032c04220 100644 --- a/ext/phalcon/validation/validator/identical.zep.c +++ b/ext/phalcon/validation/validator/identical.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/inclusionin.zep.c b/ext/phalcon/validation/validator/inclusionin.zep.c index 57a555e8276..b7679a597d6 100644 --- a/ext/phalcon/validation/validator/inclusionin.zep.c +++ b/ext/phalcon/validation/validator/inclusionin.zep.c @@ -110,7 +110,7 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 359, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -146,7 +146,7 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/numericality.zep.c b/ext/phalcon/validation/validator/numericality.zep.c index bac2f5a30e6..1b93abd93e3 100644 --- a/ext/phalcon/validation/validator/numericality.zep.c +++ b/ext/phalcon/validation/validator/numericality.zep.c @@ -118,7 +118,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); diff --git a/ext/phalcon/validation/validator/presenceof.zep.c b/ext/phalcon/validation/validator/presenceof.zep.c index 035c505e3ab..61946931bb0 100644 --- a/ext/phalcon/validation/validator/presenceof.zep.c +++ b/ext/phalcon/validation/validator/presenceof.zep.c @@ -104,7 +104,7 @@ PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/regex.zep.c b/ext/phalcon/validation/validator/regex.zep.c index ac1f577b042..a4f5eeb9ce7 100644 --- a/ext/phalcon/validation/validator/regex.zep.c +++ b/ext/phalcon/validation/validator/regex.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); diff --git a/ext/phalcon/validation/validator/stringlength.zep.c b/ext/phalcon/validation/validator/stringlength.zep.c index 19059cc3c5e..dc981a1efd0 100644 --- a/ext/phalcon/validation/validator/stringlength.zep.c +++ b/ext/phalcon/validation/validator/stringlength.zep.c @@ -117,7 +117,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -152,7 +152,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 435, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -189,7 +189,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 435, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index 37cdbac06d8..e7cae8aed92 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -162,7 +162,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/url.zep.c b/ext/phalcon/validation/validator/url.zep.c index 7012ec4491c..34f3c2d1498 100644 --- a/ext/phalcon/validation/validator/url.zep.c +++ b/ext/phalcon/validation/validator/url.zep.c @@ -83,7 +83,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/version.zep.c b/ext/phalcon/version.zep.c index 2919c1cbe09..08275c82cb5 100644 --- a/ext/phalcon/version.zep.c +++ b/ext/phalcon/version.zep.c @@ -97,7 +97,7 @@ PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 0); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 7); + ZVAL_LONG(_0, 8); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -178,7 +178,7 @@ PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 440, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -219,11 +219,11 @@ PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 440, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); zephir_check_call_status(); break; } From 4840b41d12ddd1ef1b171177a74f12f956683c97 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sun, 23 Aug 2015 18:33:33 -0500 Subject: [PATCH 17/60] Fixes #10813 --- phalcon/mvc/view/engine/volt/compiler.zep | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/phalcon/mvc/view/engine/volt/compiler.zep b/phalcon/mvc/view/engine/volt/compiler.zep index 00a6e9fd077..e9aadc1756d 100644 --- a/phalcon/mvc/view/engine/volt/compiler.zep +++ b/phalcon/mvc/view/engine/volt/compiler.zep @@ -563,7 +563,7 @@ class Compiler implements InjectionAwareInterface /** * By default it tries to call a macro */ - return "$this->callMacro('" . name . "', array(" . arguments . "))"; + return "$this->callMacro('" . name . "', array(" . arguments . "))"; } return this->expression(nameExpr) . "(" . arguments . ")"; @@ -1930,9 +1930,11 @@ class Compiler implements InjectionAwareInterface } /** - * Bind the closure to the $this object allowing to call services + * Bind the closure to the $this object allowing to call services, only PHP >= 5.4 */ - let code .= macroName . " = \\Closure::bind(" . macroName . ", $this); ?>"; + if !is_php_version("5.3") { + let code .= macroName . " = \\Closure::bind(" . macroName . ", $this); ?>"; + } return code; } From a11f31c909e608a278124e57227a5a5eb40302a3 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sun, 23 Aug 2015 18:38:11 -0500 Subject: [PATCH 18/60] Fixes #10801 --- ext/phalcon/logger/adapter.zep.c | 12 +++ ext/phalcon/logger/adapter.zep.h | 2 + .../mvc/view/engine/volt/compiler.zep.c | 86 ++++++++++--------- phalcon/logger/adapter.zep | 10 +++ 4 files changed, 68 insertions(+), 42 deletions(-) diff --git a/ext/phalcon/logger/adapter.zep.c b/ext/phalcon/logger/adapter.zep.c index c32a2e8447b..1314dfab1dd 100644 --- a/ext/phalcon/logger/adapter.zep.c +++ b/ext/phalcon/logger/adapter.zep.c @@ -187,6 +187,18 @@ PHP_METHOD(Phalcon_Logger_Adapter, rollback) { } +/** + * Returns the whether the logger is currently in an active transaction or not + * + * @return boolean + */ +PHP_METHOD(Phalcon_Logger_Adapter, isTransaction) { + + + RETURN_MEMBER(this_ptr, "_transaction"); + +} + /** * Sends/Writes a critical message to the log */ diff --git a/ext/phalcon/logger/adapter.zep.h b/ext/phalcon/logger/adapter.zep.h index 6956cdfd8b7..698d132347a 100644 --- a/ext/phalcon/logger/adapter.zep.h +++ b/ext/phalcon/logger/adapter.zep.h @@ -9,6 +9,7 @@ PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); PHP_METHOD(Phalcon_Logger_Adapter, begin); PHP_METHOD(Phalcon_Logger_Adapter, commit); PHP_METHOD(Phalcon_Logger_Adapter, rollback); +PHP_METHOD(Phalcon_Logger_Adapter, isTransaction); PHP_METHOD(Phalcon_Logger_Adapter, critical); PHP_METHOD(Phalcon_Logger_Adapter, emergency); PHP_METHOD(Phalcon_Logger_Adapter, debug); @@ -80,6 +81,7 @@ ZEPHIR_INIT_FUNCS(phalcon_logger_adapter_method_entry) { PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, isTransaction, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, critical, arginfo_phalcon_logger_adapter_critical, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, emergency, arginfo_phalcon_logger_adapter_emergency, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index d9e4b064cf8..ddf2e5de79c 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -2324,9 +2324,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { zephir_concat_self_str(&code, SL(""); - zephir_concat_self(&code, _2 TSRMLS_CC); + if (!(zephir_is_php_version(50300))) { + ZEPHIR_INIT_LNVAR(_2); + ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); + zephir_concat_self(&code, _2 TSRMLS_CC); + } RETURN_CCTOR(code); } @@ -2398,26 +2400,26 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2188); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1988); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2436,10 +2438,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2016 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2024 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -2475,7 +2477,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2052 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -2486,7 +2488,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2067); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -2503,18 +2505,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2089 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -2596,13 +2598,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -2664,7 +2666,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -2674,7 +2676,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); return; } ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 382, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); @@ -2692,7 +2694,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2303); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -2702,7 +2704,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2271 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 382, localBlock); zephir_check_call_status(); @@ -2721,7 +2723,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2296); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -2832,7 +2834,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2345); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -2842,7 +2844,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2352 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2855,7 +2857,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2360 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2871,7 +2873,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2379); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); return; } RETURN_CCTOR(compilation); @@ -2951,49 +2953,49 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2426 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2428); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2436 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2438); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2446 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2449); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2458 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2460); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2468 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2470); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2478 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { @@ -3025,11 +3027,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2523); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2526); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); return; } } @@ -3056,7 +3058,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2560 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3081,7 +3083,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2586 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/phalcon/logger/adapter.zep b/phalcon/logger/adapter.zep index ce5c860f9a1..02d267df6e7 100644 --- a/phalcon/logger/adapter.zep +++ b/phalcon/logger/adapter.zep @@ -145,6 +145,16 @@ abstract class Adapter return this; } + /** + * Returns the whether the logger is currently in an active transaction or not + * + * @return boolean + */ + public function isTransaction() + { + return this->_transaction; + } + /** * Sends/Writes a critical message to the log */ From 08711796141f89f40394e562570802c049de33a3 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Sun, 23 Aug 2015 22:14:50 -0500 Subject: [PATCH 19/60] Fixes #10266 --- CHANGELOG.md | 6 ++++- ext/phalcon/db/result/pdo.zep.c | 47 +++++++++++++++------------------ phalcon/db/result/pdo.zep | 38 ++++++++++++++------------ 3 files changed, 48 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d5b1862ace..63a2318d205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # [2.0.8](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.8) (2015-XX-XX) - Added `Phalcon\Security\Random::base58` - to generate a random base58 string +- Added `Phalcon\Logger\Adapter::isTransaction()` to check whether the logger is currently in transaction + mode or not (Phalcon 1.3 behavior) +- `Phalcon\Session\Adapter` now closes the session when the adapter is destroyed (Phalcon 1.3 behavior) +- Fixed fetching of data in modes FETCH_CLASS, FETCH_INTO and FETCH_FUNC in `Phalcon\Db` # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) - `Image\Adapter\Gd::save()` no longer fails if the method or the instance is created with a filename without an extension @@ -21,7 +25,7 @@ belongs to the uniqueId or the whole session data - Added a fix to avoid that a table present in many sub-queries causes invalid SQL generation - Add `CookieInterface`, update `Cookie` and `Cookies` to use this interface - Decoupling `Cookies` and `Cookie` - Check `Session` state before using it in `Cookie`. [#10789](https://github.com/phalcon/cphalcon/issues/10789) - Fixed merge of `Phalcon\Config` instances containing objects different than `Phalcon\Config` compatible instances -- When creating tables in Postgres, inline PRIMARY keys are now escaped properly[#10797](https://github.com/phalcon/cphalcon/pull/10797) +- When creating tables in Postgres, inline PRIMARY keys are now escaped properly[#10797](https://github.com/phalcon/cphalcon/pull/10797) - Fixed incorrect generation of `SELECT COUNT(\*)` causing unexpected exceptions when `phqlLiterals` is disabled - Added `Phalcon\Security\Random` - secure random number generator class. Provides secure random number generator which is suitable for generating session key in HTTP cookies, etc diff --git a/ext/phalcon/db/result/pdo.zep.c b/ext/phalcon/db/result/pdo.zep.c index 658a68c093f..e92edc01754 100644 --- a/ext/phalcon/db/result/pdo.zep.c +++ b/ext/phalcon/db/result/pdo.zep.c @@ -204,7 +204,7 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, fetchArray) { PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { int ZEPHIR_LAST_CALL_STATUS; - zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *_0, *_1; + zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *pdoStatement; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 3, &fetchStyle, &fetchArgument, &ctorArgs); @@ -220,32 +220,29 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { } + ZEPHIR_OBS_VAR(pdoStatement); + zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); if (Z_TYPE_P(fetchStyle) == IS_LONG) { - if ((((int) (zephir_get_numberval(fetchStyle)) & 8)) == 8) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); + if (ZEPHIR_IS_LONG(fetchStyle, 8)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 7)) == 7) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 7)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 10)) == 10) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 10)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle); zephir_check_call_status(); RETURN_MM(); } - _1 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_1, "fetchall", NULL, 0); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0); zephir_check_call_status(); RETURN_MM(); @@ -295,7 +292,7 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZVAL_STRING(&_2, "/^SELECT\\s+(.*)/i", 0); zephir_preg_match(_1, &_2, sqlStatement, matches, 0, 0 , 0 TSRMLS_CC); if (zephir_is_true(_1)) { - zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 213 TSRMLS_CC); + zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 217 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "SELECT COUNT(*) \"numrows\" FROM (SELECT ", _3, ")"); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); @@ -305,7 +302,7 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZEPHIR_CALL_METHOD(&row, result, "fetch", NULL, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(rowCount); - zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 215 TSRMLS_CC); + zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 219 TSRMLS_CC); } } else { ZEPHIR_INIT_NVAR(rowCount); @@ -398,16 +395,16 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, dataSeek) { * * * //Return array with integer indexes - * $result->setFetchMode(Phalcon\Db::FETCH_NUM); + * $result->setFetchMode(\Phalcon\Db::FETCH_NUM); * * //Return associative array without integer indexes - * $result->setFetchMode(Phalcon\Db::FETCH_ASSOC); + * $result->setFetchMode(\Phalcon\Db::FETCH_ASSOC); * * //Return associative array together with integer indexes - * $result->setFetchMode(Phalcon\Db::FETCH_BOTH); + * $result->setFetchMode(\Phalcon\Db::FETCH_BOTH); * * //Return an object - * $result->setFetchMode(Phalcon\Db::FETCH_OBJ); + * $result->setFetchMode(\Phalcon\Db::FETCH_OBJ); * */ PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { @@ -429,10 +426,10 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { ZEPHIR_OBS_VAR(pdoStatement); zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - if (((fetchMode & 7)) == 7) { + if (fetchMode == 8) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -442,10 +439,10 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 8)) == 8) { + if (fetchMode == 9) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -455,7 +452,7 @@ PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 9)) == 9) { + if (fetchMode == 7) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); diff --git a/phalcon/db/result/pdo.zep b/phalcon/db/result/pdo.zep index 87857c17bca..300d8a3826a 100644 --- a/phalcon/db/result/pdo.zep +++ b/phalcon/db/result/pdo.zep @@ -147,24 +147,28 @@ class Pdo implements ResultInterface */ public function fetchAll(var fetchStyle = null, var fetchArgument = null, var ctorArgs = null) -> array { + var pdoStatement; + + let pdoStatement = this->_pdoStatement; + if typeof fetchStyle == "integer" { - if (fetchStyle & Db::FETCH_CLASS) == Db::FETCH_CLASS { - return this->_pdoStatement->fetchAll(fetchStyle, fetchArgument, ctorArgs); + if fetchStyle == Db::FETCH_CLASS { + return pdoStatement->fetchAll(fetchStyle, fetchArgument, ctorArgs); } - if (fetchStyle & Db::FETCH_COLUMN) == Db::FETCH_COLUMN { - return this->_pdoStatement->fetchAll(fetchStyle, fetchArgument); + if fetchStyle == Db::FETCH_COLUMN { + return pdoStatement->fetchAll(fetchStyle, fetchArgument); } - if (fetchStyle & Db::FETCH_FUNC) == Db::FETCH_FUNC { - return this->_pdoStatement->fetchAll(fetchStyle, fetchArgument); + if fetchStyle == Db::FETCH_FUNC { + return pdoStatement->fetchAll(fetchStyle, fetchArgument); } - return this->_pdoStatement->fetchAll(fetchStyle); + return pdoStatement->fetchAll(fetchStyle); } - return this->_pdoStatement->fetchAll(); + return pdoStatement->fetchAll(); } /** @@ -295,16 +299,16 @@ class Pdo implements ResultInterface * * * //Return array with integer indexes - * $result->setFetchMode(Phalcon\Db::FETCH_NUM); + * $result->setFetchMode(\Phalcon\Db::FETCH_NUM); * * //Return associative array without integer indexes - * $result->setFetchMode(Phalcon\Db::FETCH_ASSOC); + * $result->setFetchMode(\Phalcon\Db::FETCH_ASSOC); * * //Return associative array together with integer indexes - * $result->setFetchMode(Phalcon\Db::FETCH_BOTH); + * $result->setFetchMode(\Phalcon\Db::FETCH_BOTH); * * //Return an object - * $result->setFetchMode(Phalcon\Db::FETCH_OBJ); + * $result->setFetchMode(\Phalcon\Db::FETCH_OBJ); * */ public function setFetchMode(int fetchMode, var colNoOrClassNameOrObject = null, var ctorargs = null) -> boolean @@ -313,23 +317,23 @@ class Pdo implements ResultInterface let pdoStatement = this->_pdoStatement; - if (fetchMode & Db::FETCH_COLUMN) == Db::FETCH_COLUMN { - if pdoStatement->setFetchMode(fetchMode, colNoOrClassNameOrObject) { + if fetchMode == Db::FETCH_CLASS { + if pdoStatement->setFetchMode(fetchMode, colNoOrClassNameOrObject, ctorargs) { let this->_fetchMode = fetchMode; return true; } return false; } - if (fetchMode & Db::FETCH_CLASS) == Db::FETCH_CLASS { - if pdoStatement->setFetchMode(fetchMode, colNoOrClassNameOrObject, ctorargs) { + if fetchMode == Db::FETCH_INTO { + if pdoStatement->setFetchMode(fetchMode, colNoOrClassNameOrObject) { let this->_fetchMode = fetchMode; return true; } return false; } - if (fetchMode & Db::FETCH_INTO) == Db::FETCH_INTO { + if fetchMode == Db::FETCH_COLUMN { if pdoStatement->setFetchMode(fetchMode, colNoOrClassNameOrObject) { let this->_fetchMode = fetchMode; return true; From 7a037330ee3353c76a2d207d0f4e0b68b4011b3a Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 24 Aug 2015 12:28:41 +0300 Subject: [PATCH 20/60] Cleanup Phalcon\Logger\Adapter::isTransaction doc --- phalcon/logger/adapter.zep | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/phalcon/logger/adapter.zep b/phalcon/logger/adapter.zep index 02d267df6e7..97a05f710eb 100644 --- a/phalcon/logger/adapter.zep +++ b/phalcon/logger/adapter.zep @@ -146,11 +146,9 @@ abstract class Adapter } /** - * Returns the whether the logger is currently in an active transaction or not - * - * @return boolean - */ - public function isTransaction() + * Returns the whether the logger is currently in an active transaction or not + */ + public function isTransaction() -> boolean { return this->_transaction; } From 0a23964ae9a0cf8fdd7b06b098e9ca6e9a73211a Mon Sep 17 00:00:00 2001 From: Green Cat Date: Mon, 24 Aug 2015 16:08:55 +0100 Subject: [PATCH 21/60] Adds the missing code property of validation\message --- phalcon/validation/message.zep | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/phalcon/validation/message.zep b/phalcon/validation/message.zep index 1caacf8b308..f39f8d86df1 100644 --- a/phalcon/validation/message.zep +++ b/phalcon/validation/message.zep @@ -34,19 +34,18 @@ class Message implements MessageInterface protected _message; protected _field; + + protected _code; /** * Phalcon\Validation\Message constructor - * - * @param string message - * @param string field - * @param string type */ - public function __construct(string! message, field = null, type = null) + public function __construct(string! message, string field = null, string type = null, int code = null) { let this->_message = message, this->_field = field, - this->_type = type; + this->_type = type, + this->_code = code; } /** @@ -101,6 +100,23 @@ class Message implements MessageInterface { return this->_field; } + + /** + * Sets code for the message + */ + public function setCode(int code) -> + { + let this->_code = code; + return this; + } + + /** + * Returns the message code + */ + public function getCode() -> int + { + return this->_code; + } /** * Magic __toString method returns verbose message From 04f0da8c826dc9116138bf0351f928c58f5c1ee1 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 24 Aug 2015 19:23:01 +0300 Subject: [PATCH 22/60] Case uniformity --- phalcon/di/factorydefault/cli.zep | 8 ++++---- phalcon/dispatcher.zep | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/phalcon/di/factorydefault/cli.zep b/phalcon/di/factorydefault/cli.zep index 2ac7b761f47..a8db248c7d7 100644 --- a/phalcon/di/factorydefault/cli.zep +++ b/phalcon/di/factorydefault/cli.zep @@ -23,7 +23,7 @@ use Phalcon\Di\Service; use Phalcon\Di\FactoryDefault; /** - * Phalcon\Di\FactoryDefault\CLI + * Phalcon\Di\FactoryDefault\Cli * * This is a variant of the standard Phalcon\Di. By default it automatically * registers all the services provided by the framework. @@ -34,15 +34,15 @@ class Cli extends FactoryDefault { /** - * Phalcon\Di\FactoryDefault\CLI constructor + * Phalcon\Di\FactoryDefault\Cli constructor */ public function __construct() { parent::__construct(); let this->_services = [ - "router": new Service("router", "Phalcon\\CLI\\Router", true), - "dispatcher": new Service("dispatcher", "Phalcon\\CLI\\Dispatcher", true), + "router": new Service("router", "Phalcon\\Cli\\Router", true), + "dispatcher": new Service("dispatcher", "Phalcon\\Cli\\Dispatcher", true), "modelsManager": new Service("modelsManager", "Phalcon\\Mvc\\Model\\Manager", true), "modelsMetadata": new Service("modelsMetadata", "Phalcon\\Mvc\\Model\\MetaData\\Memory", true), "filter": new Service("filter", "Phalcon\\Filter", true), diff --git a/phalcon/dispatcher.zep b/phalcon/dispatcher.zep index 6e9a9ca7f87..67a59de0457 100644 --- a/phalcon/dispatcher.zep +++ b/phalcon/dispatcher.zep @@ -30,8 +30,8 @@ use Phalcon\Events\EventsAwareInterface; /** * Phalcon\Dispatcher * - * This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\CLI\Dispatcher. - * This class can't be instantiated directly, you can use it to create your own dispatchers + * This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\Cli\Dispatcher. + * This class can't be instantiated directly, you can use it to create your own dispatchers. */ abstract class Dispatcher implements DispatcherInterface, InjectionAwareInterface, EventsAwareInterface { From 792a08fe3c2d11a8eb839c3a2ab3a24289187ffc Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 24 Aug 2015 23:03:20 +0300 Subject: [PATCH 23/60] Introduced Column::hasDefault --- phalcon/db/column.zep | 8 ++++++++ phalcon/db/columninterface.zep | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/phalcon/db/column.zep b/phalcon/db/column.zep index ccf414be97c..36fa135b453 100644 --- a/phalcon/db/column.zep +++ b/phalcon/db/column.zep @@ -557,4 +557,12 @@ class Column implements ColumnInterface return new self(columnName, definition); } + + /** + * Check whether column has default value + */ + public function hasDefault() -> boolean + { + return this->_default !== null; + } } diff --git a/phalcon/db/columninterface.zep b/phalcon/db/columninterface.zep index 4ff4553eed0..b478bbb1904 100644 --- a/phalcon/db/columninterface.zep +++ b/phalcon/db/columninterface.zep @@ -144,9 +144,14 @@ interface ColumnInterface */ public function getDefault(); + /** + * Check whether column has default value + */ + public function hasDefault() -> boolean; + /** * Restores the internal state of a Phalcon\Db\Column object */ public static function __set_state(array! data) -> ; -} \ No newline at end of file +} From c1f4f7a98ad30f2e8255a39ccb682c053eeb1588 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 25 Aug 2015 01:42:31 +0300 Subject: [PATCH 24/60] Added Column::TYPE_TIMESTAMP Fixed #2850 issue Refs #10448 --- phalcon/db/adapter/pdo/mysql.zep | 8 ++++++++ phalcon/db/adapter/pdo/oracle.zep | 2 +- phalcon/db/adapter/pdo/postgresql.zep | 8 ++++++++ phalcon/db/column.zep | 5 +++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/phalcon/db/adapter/pdo/mysql.zep b/phalcon/db/adapter/pdo/mysql.zep index 61211618052..3b4616e5a36 100644 --- a/phalcon/db/adapter/pdo/mysql.zep +++ b/phalcon/db/adapter/pdo/mysql.zep @@ -172,6 +172,14 @@ class Mysql extends PdoAdapter implements AdapterInterface break; } + /** + * Timestamp are dates + */ + if memstr(columnType, "timestamp") { + let definition["type"] = Column::TYPE_TIMESTAMP; + break; + } + /** * Text are varchars */ diff --git a/phalcon/db/adapter/pdo/oracle.zep b/phalcon/db/adapter/pdo/oracle.zep index e6ab9ebdd81..9acc2e1f0da 100644 --- a/phalcon/db/adapter/pdo/oracle.zep +++ b/phalcon/db/adapter/pdo/oracle.zep @@ -142,7 +142,7 @@ class Oracle extends PdoAdapter implements AdapterInterface } if memstr(columnType, "TIMESTAMP") { - let definition["type"] = Column::TYPE_INTEGER; + let definition["type"] = Column::TYPE_TIMESTAMP; break; } diff --git a/phalcon/db/adapter/pdo/postgresql.zep b/phalcon/db/adapter/pdo/postgresql.zep index bcdf3183c25..bc337afe8ab 100644 --- a/phalcon/db/adapter/pdo/postgresql.zep +++ b/phalcon/db/adapter/pdo/postgresql.zep @@ -168,6 +168,14 @@ class Postgresql extends PdoAdapter implements AdapterInterface break; } + /** + * Timestamp + */ + if memstr(columnType, "timestamp") { + let definition["type"] = Column::TYPE_TIMESTAMP; + break; + } + /** * Numeric */ diff --git a/phalcon/db/column.zep b/phalcon/db/column.zep index ccf414be97c..2b932760210 100644 --- a/phalcon/db/column.zep +++ b/phalcon/db/column.zep @@ -133,6 +133,11 @@ class Column implements ColumnInterface */ const TYPE_JSONB = 16; + /** + * Datetime abstract type + */ + const TYPE_TIMESTAMP = 17; + /** * Bind Type Null */ From c425cdcaa831a4ebde0946795307479bbb311a8f Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 25 Aug 2015 02:04:15 +0300 Subject: [PATCH 25/60] Added missed timestamp type to SQLite adapter --- phalcon/db/adapter/pdo/sqlite.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/db/adapter/pdo/sqlite.zep b/phalcon/db/adapter/pdo/sqlite.zep index 554dac70ed6..d034023f6e8 100644 --- a/phalcon/db/adapter/pdo/sqlite.zep +++ b/phalcon/db/adapter/pdo/sqlite.zep @@ -164,7 +164,7 @@ class Sqlite extends PdoAdapter implements AdapterInterface * Timestamp as date */ if memstr(columnType, "timestamp") { - let definition["type"] = Column::TYPE_DATE; + let definition["type"] = Column::TYPE_TIMESTAMP; break; } From c2c594454e3129844de8d8c224a242a8acb8f8b3 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Tue, 25 Aug 2015 15:49:57 -0500 Subject: [PATCH 26/60] Updated CHANGELOG [ci skip] --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63a2318d205..2bfafef9ec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ mode or not (Phalcon 1.3 behavior) - `Phalcon\Session\Adapter` now closes the session when the adapter is destroyed (Phalcon 1.3 behavior) - Fixed fetching of data in modes FETCH_CLASS, FETCH_INTO and FETCH_FUNC in `Phalcon\Db` +- Added missing code property in Phalcon\Validation\Message available in Phalcon 1.3.x +- Added Phalcon\Db\Column::TYPE_DATETIME to allow migrations on these kind of columns +- Added Phalcon\Db\ColumnInterface::hasDefault to check if a column has a default value declared in its database + column definition # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) - `Image\Adapter\Gd::save()` no longer fails if the method or the instance is created with a filename without an extension From b313ae4ee50039706dd2652018300f2ecc336a92 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 26 Aug 2015 08:40:34 +0300 Subject: [PATCH 27/60] Updated CHANGELOG [ci skip] --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bfafef9ec2..3eebef8f04b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ mode or not (Phalcon 1.3 behavior) - `Phalcon\Session\Adapter` now closes the session when the adapter is destroyed (Phalcon 1.3 behavior) - Fixed fetching of data in modes FETCH_CLASS, FETCH_INTO and FETCH_FUNC in `Phalcon\Db` -- Added missing code property in Phalcon\Validation\Message available in Phalcon 1.3.x -- Added Phalcon\Db\Column::TYPE_DATETIME to allow migrations on these kind of columns -- Added Phalcon\Db\ColumnInterface::hasDefault to check if a column has a default value declared in its database +- Added missing code property in `Phalcon\Validation\Message` available in Phalcon 1.3.x +- Added `Phalcon\Db\Column::TYPE_TIMESTAMP` to allow migrations on these kind of columns +- Added `Phalcon\Db\ColumnInterface::hasDefault` to check if a column has a default value declared in its database column definition # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) From e79ff365e1023fdb1bc984061ebd7eff380a604d Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 27 Aug 2015 01:01:17 +0300 Subject: [PATCH 28/60] Added support of `DEFAULT CURRENT_TIMESTAMP` definition to SQL dialects --- phalcon/db/dialect/mysql.zep | 20 +++++++++++++++++--- phalcon/db/dialect/oracle.zep | 8 +++++++- phalcon/db/dialect/postgresql.zep | 21 ++++++++++++++++++--- phalcon/db/dialect/sqlite.zep | 14 ++++++++++++-- 4 files changed, 54 insertions(+), 9 deletions(-) diff --git a/phalcon/db/dialect/mysql.zep b/phalcon/db/dialect/mysql.zep index 1dfaaa6473c..05aa81b72a0 100644 --- a/phalcon/db/dialect/mysql.zep +++ b/phalcon/db/dialect/mysql.zep @@ -93,6 +93,12 @@ class MySQL extends Dialect } break; + case Column::TYPE_TIMESTAMP: + if empty columnSql { + let columnSql .= "TIMESTAMP"; + } + break; + case Column::TYPE_CHAR: if empty columnSql { let columnSql .= "CHAR"; @@ -188,7 +194,7 @@ class MySQL extends Dialect default: if empty columnSql { - throw new Exception("Unrecognized MySQL data type"); + throw new Exception("Unrecognized MySQL data type at column " . column->getName()); } let typeValues = column->getTypeValues(); @@ -220,7 +226,11 @@ class MySQL extends Dialect let defaultValue = column->getDefault(); if ! empty defaultValue { - let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let sql .= " DEFAULT CURRENT_TIMESTAMP"; + } else { + let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } } if column->isNotNull() { @@ -249,7 +259,11 @@ class MySQL extends Dialect let defaultValue = column->getDefault(); if ! empty defaultValue { - let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let sql .= " DEFAULT CURRENT_TIMESTAMP"; + } else { + let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } } if column->isNotNull() { diff --git a/phalcon/db/dialect/oracle.zep b/phalcon/db/dialect/oracle.zep index 69a4cdd3c50..3fbbaad3d85 100644 --- a/phalcon/db/dialect/oracle.zep +++ b/phalcon/db/dialect/oracle.zep @@ -98,6 +98,12 @@ class Oracle extends Dialect let columnSql = "TIMESTAMP"; break; + case Column::TYPE_TIMESTAMP: + if empty columnSql { + let columnSql .= "TIMESTAMP"; + } + break; + case Column::TYPE_CHAR: let columnSql = "CHAR(" . size . ")"; break; @@ -116,7 +122,7 @@ class Oracle extends Dialect break; default: - throw new Exception("Unrecognized Oracle data type"); + throw new Exception("Unrecognized Oracle data type at column " . column->getName()); } return columnSql; diff --git a/phalcon/db/dialect/postgresql.zep b/phalcon/db/dialect/postgresql.zep index 217466db7c4..05b7d997f8a 100644 --- a/phalcon/db/dialect/postgresql.zep +++ b/phalcon/db/dialect/postgresql.zep @@ -92,6 +92,12 @@ class Postgresql extends Dialect } break; + case Column::TYPE_TIMESTAMP: + if empty columnSql { + let columnSql .= "TIMESTAMP"; + } + break; + case Column::TYPE_CHAR: if empty columnSql { let columnSql .= "CHARACTER"; @@ -140,7 +146,7 @@ class Postgresql extends Dialect default: if empty columnSql { - throw new Exception("Unrecognized PostgreSQL data type"); + throw new Exception("Unrecognized PostgreSQL data type at column " . column->getName()); } let typeValues = column->getTypeValues(); @@ -174,7 +180,11 @@ class Postgresql extends Dialect let defaultValue = column->getDefault(); if !empty defaultValue { - let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let sql .= " DEFAULT CURRENT_TIMESTAMP"; + } else { + let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } } if column->isNotNull() { @@ -219,7 +229,12 @@ class Postgresql extends Dialect } let defaultValue = column->getDefault(); if !empty defaultValue { - let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" SET DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" SET DEFAULT CURRENT_TIMESTAMP"; + } else { + let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" SET DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } } } diff --git a/phalcon/db/dialect/sqlite.zep b/phalcon/db/dialect/sqlite.zep index dbc13c7e80c..19b954d8b45 100644 --- a/phalcon/db/dialect/sqlite.zep +++ b/phalcon/db/dialect/sqlite.zep @@ -88,6 +88,12 @@ class Sqlite extends Dialect } break; + case Column::TYPE_TIMESTAMP: + if empty columnSql { + let columnSql .= "TIMESTAMP"; + } + break; + case Column::TYPE_CHAR: if empty columnSql { let columnSql .= "CHARACTER"; @@ -109,7 +115,7 @@ class Sqlite extends Dialect default: if empty columnSql { - throw new Exception("Unrecognized SQLite data type"); + throw new Exception("Unrecognized SQLite data type at column " . column->getName()); } let typeValues = column->getTypeValues(); @@ -143,7 +149,11 @@ class Sqlite extends Dialect let defaultValue = column->getDefault(); if ! empty defaultValue { - let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let sql .= " DEFAULT CURRENT_TIMESTAMP"; + } else { + let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } } if column->isNotNull() { From 71683f4cbac56161ce342b51a403f1fa187871c9 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 27 Aug 2015 23:05:59 +0300 Subject: [PATCH 29/60] Fixed determining of default value for column in Phalcon\Db\Dialect classes --- phalcon/db/dialect/mysql.zep | 18 +++++++++++------- phalcon/db/dialect/postgresql.zep | 16 ++++++++++------ phalcon/db/dialect/sqlite.zep | 4 ++-- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/phalcon/db/dialect/mysql.zep b/phalcon/db/dialect/mysql.zep index 05aa81b72a0..1d5ca63d956 100644 --- a/phalcon/db/dialect/mysql.zep +++ b/phalcon/db/dialect/mysql.zep @@ -224,8 +224,8 @@ class MySQL extends Dialect let sql = "ALTER TABLE " . this->prepareTable(tableName, schemaName) . " ADD `" . column->getName() . "` " . this->getColumnDefinition(column); - let defaultValue = column->getDefault(); - if ! empty defaultValue { + if column->hasDefault() { + let defaultValue = column->getDefault(); if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { let sql .= " DEFAULT CURRENT_TIMESTAMP"; } else { @@ -257,8 +257,8 @@ class MySQL extends Dialect let sql = "ALTER TABLE " . this->prepareTable(tableName, schemaName) . " MODIFY `" . column->getName() . "` " . this->getColumnDefinition(column); - let defaultValue = column->getDefault(); - if ! empty defaultValue { + if column->hasDefault() { + let defaultValue = column->getDefault(); if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { let sql .= " DEFAULT CURRENT_TIMESTAMP"; } else { @@ -392,9 +392,13 @@ class MySQL extends Dialect /** * Add a Default clause */ - let defaultValue = column->getDefault(); - if ! empty defaultValue { - let columnLine .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + if column->hasDefault() { + let defaultValue = column->getDefault(); + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let columnLine .= " DEFAULT CURRENT_TIMESTAMP"; + } else { + let columnLine .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } } /** diff --git a/phalcon/db/dialect/postgresql.zep b/phalcon/db/dialect/postgresql.zep index 05b7d997f8a..0068bbe9783 100644 --- a/phalcon/db/dialect/postgresql.zep +++ b/phalcon/db/dialect/postgresql.zep @@ -224,12 +224,12 @@ class Postgresql extends Dialect //DEFAULT if column->getDefault() != currentColumn->getDefault() { - if empty column->getDefault() && !empty currentColumn->getDefault() { + if !column->hasDefault() && !empty currentColumn->getDefault() { let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" DROP DEFAULT;"; } - let defaultValue = column->getDefault(); - if !empty defaultValue { + if column->hasDefault() { + let defaultValue = column->getDefault(); if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" SET DEFAULT CURRENT_TIMESTAMP"; } else { @@ -367,9 +367,13 @@ class Postgresql extends Dialect /** * Add a Default clause */ - let defaultValue = column->getDefault(); - if !empty defaultValue { - let columnLine .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + if column->hasDefault() { + let defaultValue = column->getDefault(); + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let columnLine .= " DEFAULT CURRENT_TIMESTAMP"; + } else { + let columnLine .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } } /** diff --git a/phalcon/db/dialect/sqlite.zep b/phalcon/db/dialect/sqlite.zep index 19b954d8b45..ce9d08b0ca4 100644 --- a/phalcon/db/dialect/sqlite.zep +++ b/phalcon/db/dialect/sqlite.zep @@ -147,8 +147,8 @@ class Sqlite extends Dialect let sql .= "\"" . column->getName() . "\" " . this->getColumnDefinition(column); - let defaultValue = column->getDefault(); - if ! empty defaultValue { + if column->hasDefault() { + let defaultValue = column->getDefault(); if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { let sql .= " DEFAULT CURRENT_TIMESTAMP"; } else { From a6519f23197e737446d2f22218202d26c0bb40c0 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 27 Aug 2015 23:44:55 +0300 Subject: [PATCH 30/60] Update CHANGELOG.md --- CHANGELOG.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3eebef8f04b..d8f543a2d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - Added `Phalcon\Db\Column::TYPE_TIMESTAMP` to allow migrations on these kind of columns - Added `Phalcon\Db\ColumnInterface::hasDefault` to check if a column has a default value declared in its database column definition +- Fixed determining of default value for column in `Phalcon\Db\Dialect\MySQL`, `Phalcon\Db\Dialect\Sqlite` and + `Phalcon\Db\Dialect\Postgresql` classes # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) - `Image\Adapter\Gd::save()` no longer fails if the method or the instance is created with a filename without an extension @@ -38,11 +40,11 @@ belongs to the uniqueId or the whole session data - Added `Http\Response::setCache()` to easily set cache headers. - When a beanstalkd connection is closed the adapter does not produce a notice anymore - Default separator in `Text::increment` is now _ (underscore) -- Using tel_field in Volt now generates correct PHP code +- Using `tel_field` in Volt now generates correct PHP code - SQL generated by PostgreSQL dialect in dropTable and dropView is now correct - Errors generated in `Cache\Backend\Memcached` now shows the result code to easily debug problems - Fixed `LIMIT/OFFSET` SQL generation in `Mvc\Model\Query\Builder` -- Fixed Logger\Formatter\Line to match 1.3.x behavior +- Fixed `Logger\Formatter\Line` to match 1.3.x behavior - Fixed warning when castOnHydrate' is true [#10648](https://github.com/phalcon/cphalcon/pull/10648) - Added name before int/float/numeric/string/bool/null/other variables in Debug\Dump::output - Now `Validation\Validator\Identical` allows both 'accepted' and 'value' as value to keep backwards compatibility @@ -78,7 +80,7 @@ belongs to the uniqueId or the whole session data - Added 'autoescape' option that allows to globally enable autoescape in any Volt template - Added readAttribute/writeAttribute to `Phalcon\Mvc\Collection\Document` - Added toArray to `Phalcon\Mvc\Collection\Document` -- Global setting db.force_casting now forces casting bound parameters to specified bind types +- Global setting `db.force_casting` now forces casting bound parameters to specified bind types - Introduced new placeholders in PHQL enclosed in brackets that allow to set the type: {name:str} or {names:array} - Now you can bind arrays in bound parameters in PHQL - Global setting orm.cast_on_hydrate allow to cast hydrated attributes to the original types in the mapped tables instead of using strings @@ -88,7 +90,7 @@ belongs to the uniqueId or the whole session data - Added global setting orm.ignore_unknown_columns to ignore unexpected columns when hydrating instances in the ORM This fixes extra auxiliar columns used in `Db\Adapter\Pdo\Oracle` - Added support for afterFetch in `Mvc\Collection` -- Added 'beforeMatch' parameter in @Route annotation of `Mvc\Router\Annotations` +- Added `beforeMatch` parameter in `@Route` annotation of `Mvc\Router\Annotations` - Added groupBy/getGroupBy/having/getHaving to `Mvc\Model\Criteria` - `Phalcon\Mvc\Model::count()` now return values as integer - Removed `__construct` from `Phalcon\Mvc\View\EngineInterface` From c42f3c7a4b235025ceb4df38b6bb116e72bbfcec Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 30 Aug 2015 13:19:45 +0300 Subject: [PATCH 31/60] Update FormatterInterface::format doc --- phalcon/logger/formatterinterface.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/logger/formatterinterface.zep b/phalcon/logger/formatterinterface.zep index 8472cd7f195..045af72c4f3 100644 --- a/phalcon/logger/formatterinterface.zep +++ b/phalcon/logger/formatterinterface.zep @@ -35,5 +35,5 @@ interface FormatterInterface * @param int timestamp * @param array $context */ - public function format(string message, int type, int timestamp, var context = null); + public function format(string message, int type, int timestamp, var context = null) -> string|array; } From cf260e4c3130450be374171cf43be7edfd7c5743 Mon Sep 17 00:00:00 2001 From: tmihalik Date: Mon, 31 Aug 2015 14:09:51 +0200 Subject: [PATCH 32/60] fixed phpdoc --- phalcon/di/injectable.zep | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/phalcon/di/injectable.zep b/phalcon/di/injectable.zep index d614297d63c..9fa5f170af9 100644 --- a/phalcon/di/injectable.zep +++ b/phalcon/di/injectable.zep @@ -36,26 +36,26 @@ use Phalcon\Session\BagInterface; * @property \Phalcon\Mvc\Dispatcher|\Phalcon\Mvc\DispatcherInterface $dispatcher; * @property \Phalcon\Mvc\Router|\Phalcon\Mvc\RouterInterface $router * @property \Phalcon\Mvc\Url|\Phalcon\Mvc\UrlInterface $url - * @property \Phalcon\Http\Request|\Phalcon\HTTP\RequestInterface $request - * @property \Phalcon\Http\Response|\Phalcon\HTTP\ResponseInterface $response + * @property \Phalcon\Http\Request|\Phalcon\Http\RequestInterface $request + * @property \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface $response * @property \Phalcon\Http\Response\Cookies|\Phalcon\Http\Response\CookiesInterface $cookies * @property \Phalcon\Filter|\Phalcon\FilterInterface $filter * @property \Phalcon\Flash\Direct $flash * @property \Phalcon\Flash\Session $flashSession * @property \Phalcon\Session\Adapter\Files|\Phalcon\Session\Adapter|\Phalcon\Session\AdapterInterface $session - * @property \Phalcon\Events\Manager $eventsManager + * @property \Phalcon\Events\Manager|\Phalcon\Events\ManagerInterface $eventsManager * @property \Phalcon\Db\AdapterInterface $db * @property \Phalcon\Security $security - * @property \Phalcon\Crypt $crypt + * @property \Phalcon\Crypt|\Phalcon\CryptInterface $crypt * @property \Phalcon\Tag $tag * @property \Phalcon\Escaper|\Phalcon\EscaperInterface $escaper * @property \Phalcon\Annotations\Adapter\Memory|\Phalcon\Annotations\Adapter $annotations * @property \Phalcon\Mvc\Model\Manager|\Phalcon\Mvc\Model\ManagerInterface $modelsManager * @property \Phalcon\Mvc\Model\MetaData\Memory|\Phalcon\Mvc\Model\MetadataInterface $modelsMetadata - * @property \Phalcon\Mvc\Model\Transaction\Manager $transactionManager + * @property \Phalcon\Mvc\Model\Transaction\Manager|\Phalcon\Mvc\Model\Transaction\ManagerInterface $transactionManager * @property \Phalcon\Assets\Manager $assets * @property \Phalcon\Di|\Phalcon\DiInterface $di - * @property \Phalcon\Session\Bag $persistent + * @property \Phalcon\Session\Bag|\Phalcon\Session\BagInterface $persistent * @property \Phalcon\Mvc\View|\Phalcon\Mvc\ViewInterface $view */ abstract class Injectable implements InjectionAwareInterface, EventsAwareInterface From 403b63322b21fade43d1829490620eaee33d965b Mon Sep 17 00:00:00 2001 From: tmihalik Date: Mon, 31 Aug 2015 14:44:20 +0200 Subject: [PATCH 33/60] add return type --- phalcon/session/adapter.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/session/adapter.zep b/phalcon/session/adapter.zep index 02fc7dc6f61..cf2b96e3537 100644 --- a/phalcon/session/adapter.zep +++ b/phalcon/session/adapter.zep @@ -105,7 +105,7 @@ abstract class Adapter /** * Get session name */ - public function getName() + public function getName() -> string { return session_name(); } From c45dfad78e9cd45dffe44d6e5446e84ebc4ca962 Mon Sep 17 00:00:00 2001 From: tmihalik Date: Mon, 31 Aug 2015 14:48:28 +0200 Subject: [PATCH 34/60] add setName and getName method to adapterinterface --- phalcon/session/adapterinterface.zep | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/phalcon/session/adapterinterface.zep b/phalcon/session/adapterinterface.zep index ef389dcb533..83d19656c19 100644 --- a/phalcon/session/adapterinterface.zep +++ b/phalcon/session/adapterinterface.zep @@ -81,4 +81,14 @@ interface AdapterInterface * Regenerate session's id */ public function regenerateId(bool deleteOldSession = true) -> ; + + /** + * Set session name + */ + public function setName(string name); + + /** + * Get session name + */ + public function getName() -> string; } From 8a23b3a718c8a71885a641e0ccfe66cd5f448158 Mon Sep 17 00:00:00 2001 From: Jim Date: Tue, 1 Sep 2015 14:58:28 +0200 Subject: [PATCH 35/60] Add "onConstruct" hook --- phalcon/cli/task.zep | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phalcon/cli/task.zep b/phalcon/cli/task.zep index 7e321b49921..3844bd9b3e5 100644 --- a/phalcon/cli/task.zep +++ b/phalcon/cli/task.zep @@ -58,6 +58,8 @@ class Task extends Injectable */ public final function __construct() { - + if method_exists(this, "onConstruct") { + this->{"onConstruct"}(); + } } } From 6892e198dc4745c284a9f7c40c83799534c5e9fa Mon Sep 17 00:00:00 2001 From: Olivier Date: Thu, 3 Sep 2015 00:09:05 +0200 Subject: [PATCH 36/60] NPE in Phalcon\Form\Element::appendMessage - missing statement --- phalcon/forms/element.zep | 1 + unit-tests/FormsTest.php | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/phalcon/forms/element.zep b/phalcon/forms/element.zep index 98d2b832a1f..e80a11cfabb 100755 --- a/phalcon/forms/element.zep +++ b/phalcon/forms/element.zep @@ -533,6 +533,7 @@ abstract class Element implements ElementInterface let messages = this->_messages; if typeof messages != "object" { let this->_messages = new Group(); + let messages = this->_messages; } messages->appendMessage(message); return this; diff --git a/unit-tests/FormsTest.php b/unit-tests/FormsTest.php index 8ae28907779..230c05fecdc 100644 --- a/unit-tests/FormsTest.php +++ b/unit-tests/FormsTest.php @@ -25,7 +25,8 @@ Phalcon\Forms\Element\Radio, Phalcon\Validation\Validator\PresenceOf, Phalcon\Validation\Validator\StringLength, - Phalcon\Validation\Validator\Regex; + Phalcon\Validation\Validator\Regex, + Phalcon\Validation\Message; class ContactFormPublicProperties { @@ -533,4 +534,10 @@ public function testCorrectlyAddOptionToSelectElementIfParameterIsAString() $this->assertEquals('', preg_replace('/[[:cntrl:]]/', '', $element->render())); } + + public function testElementAppendMessage() + { + $element = new Select('test-select'); + $element->appendMessage(new Message('')); + } } From bf574625f4a597da6e9a859b0a1d21a34166576a Mon Sep 17 00:00:00 2001 From: tmihalik Date: Fri, 4 Sep 2015 10:16:38 +0200 Subject: [PATCH 37/60] mvc/model/row.zep add return type --- phalcon/mvc/model/row.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/mvc/model/row.zep b/phalcon/mvc/model/row.zep index 4a49631997b..eec40d506ce 100644 --- a/phalcon/mvc/model/row.zep +++ b/phalcon/mvc/model/row.zep @@ -127,7 +127,7 @@ class Row implements EntityInterface, ResultInterface, \ArrayAccess * * @return array */ - public function toArray() + public function toArray() -> array { return get_object_vars(this); } From fe8fa35a0c55f5f4fba1954a93ca89a444b198e2 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 6 Sep 2015 23:20:49 +0300 Subject: [PATCH 38/60] Update Phalcon\Config\Adapter\Yaml doc --- phalcon/config/adapter/yaml.zep | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/phalcon/config/adapter/yaml.zep b/phalcon/config/adapter/yaml.zep index cac09be33f5..6f0d34aae91 100644 --- a/phalcon/config/adapter/yaml.zep +++ b/phalcon/config/adapter/yaml.zep @@ -30,8 +30,9 @@ use Phalcon\Config\Exception; * Given the following configuration file: * * - * phalcon - * baseuri: /phalcon/ + * phalcon: + * baseuri: /phalcon/ + * controllersDir: !approot /app/controllers/ * models: * metadata: memory * @@ -39,7 +40,15 @@ use Phalcon\Config\Exception; * You can read it as follows: * * - * $config = new Phalcon\Config\Adapter\Yaml("path/config.yaml"); + * define('APPROOT', dirname(__DIR__)); + * + * $config = new Phalcon\Config\Adapter\Yaml("path/config.yaml", [ + * '!approot' => function($value) { + * return APPROOT . $value; + * } + * ]); + * + * echo $config->phalcon->controllersDir; * echo $config->phalcon->baseuri; * echo $config->models->metadata; * From 393b1afdda0c10d2f81509dd4a74ca6fddddd2f2 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 8 Sep 2015 09:45:29 +0300 Subject: [PATCH 39/60] Fixed #10904 issue --- phalcon/db/dialect/mysql.zep | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phalcon/db/dialect/mysql.zep b/phalcon/db/dialect/mysql.zep index 1d5ca63d956..81aee9d3913 100644 --- a/phalcon/db/dialect/mysql.zep +++ b/phalcon/db/dialect/mysql.zep @@ -237,6 +237,10 @@ class MySQL extends Dialect let sql .= " NOT NULL"; } + if column->isAutoIncrement() { + let sql .= " AUTO_INCREMENT"; + } + if column->isFirst() { let sql .= " FIRST"; } else { @@ -269,6 +273,11 @@ class MySQL extends Dialect if column->isNotNull() { let sql .= " NOT NULL"; } + + if column->isAutoIncrement() { + let sql .= " AUTO_INCREMENT"; + } + return sql; } From 79a9bfcb8d8eafeb9fe521de42e4e1b50570b10a Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Tue, 8 Sep 2015 11:30:24 -0500 Subject: [PATCH 40/60] Invoking finders in __call too --- ext/phalcon/acl/adapter.zep.c | 3 + ext/phalcon/acl/resource.zep.c | 3 + ext/phalcon/acl/role.zep.c | 3 + ext/phalcon/cache/backend/redis.zep.c | 6 +- ext/phalcon/cli/task.zep.c | 11 + ext/phalcon/config/adapter/yaml.zep.c | 19 +- ext/phalcon/db/adapter.zep.c | 2 + ext/phalcon/db/adapter/pdo/mysql.zep.c | 44 +-- ext/phalcon/db/adapter/pdo/oracle.zep.c | 2 +- ext/phalcon/db/adapter/pdo/postgresql.zep.c | 60 ++-- ext/phalcon/db/adapter/pdo/sqlite.zep.c | 2 +- ext/phalcon/db/column.zep.c | 42 ++- ext/phalcon/db/column.zep.h | 2 + ext/phalcon/db/columninterface.zep.c | 5 + ext/phalcon/db/columninterface.zep.h | 1 + ext/phalcon/db/dialect/mysql.zep.c | 277 +++++++++-------- ext/phalcon/db/dialect/oracle.zep.c | 41 ++- ext/phalcon/db/dialect/postgresql.zep.c | 289 ++++++++++-------- ext/phalcon/db/dialect/sqlite.zep.c | 125 ++++---- ext/phalcon/db/index.zep.c | 6 + ext/phalcon/db/profiler/item.zep.c | 66 ++-- ext/phalcon/db/profiler/item.zep.h | 4 +- ext/phalcon/db/rawvalue.zep.c | 4 + ext/phalcon/db/reference.zep.c | 12 + ext/phalcon/di/factorydefault/cli.zep.c | 8 +- ext/phalcon/di/injectable.zep.c | 12 +- ext/phalcon/dispatcher.zep.c | 4 +- ext/phalcon/events/event.zep.c | 22 +- ext/phalcon/forms/element.zep.c | 4 +- ext/phalcon/http/request/file.zep.c | 3 + ext/phalcon/image/adapter.zep.c | 8 +- ext/phalcon/image/adapter/imagick.zep.c | 90 ++---- ext/phalcon/logger/adapter.zep.c | 2 - ext/phalcon/logger/formatter/line.zep.c | 26 +- ext/phalcon/logger/item.zep.c | 6 + ext/phalcon/mvc/model.zep.c | 256 +++++++++------- ext/phalcon/mvc/model.zep.h | 7 + ext/phalcon/mvc/model/criteria.zep.c | 4 +- ext/phalcon/mvc/model/manager.zep.c | 16 +- .../mvc/model/metadata/libmemcached.zep.c | 6 +- ext/phalcon/mvc/model/metadata/memcache.zep.c | 6 +- ext/phalcon/mvc/model/metadata/redis.zep.c | 6 +- ext/phalcon/mvc/model/query.zep.c | 154 +++++----- ext/phalcon/mvc/model/query/builder.zep.c | 8 +- ext/phalcon/mvc/model/resultset/complex.zep.c | 2 +- ext/phalcon/mvc/model/resultset/simple.zep.c | 6 +- ext/phalcon/mvc/model/transaction.zep.c | 4 +- .../mvc/model/transaction/manager.zep.c | 6 +- .../mvc/model/validator/inclusionin.zep.c | 2 +- .../mvc/model/validator/stringlength.zep.c | 2 +- ext/phalcon/mvc/router/annotations.zep.c | 2 +- ext/phalcon/mvc/router/group.zep.c | 2 +- ext/phalcon/mvc/url.zep.c | 2 +- ext/phalcon/mvc/view.zep.c | 3 +- ext/phalcon/mvc/view/engine/php.zep.c | 2 +- ext/phalcon/mvc/view/engine/volt.zep.c | 28 +- .../mvc/view/engine/volt/compiler.zep.c | 94 +++--- ext/phalcon/mvc/view/simple.zep.c | 6 +- .../paginator/adapter/nativearray.zep.c | 2 +- ext/phalcon/queue/beanstalk.zep.c | 32 +- ext/phalcon/security/random.zep.c | 2 +- .../session/adapter/libmemcached.zep.c | 4 +- ext/phalcon/session/adapter/memcache.zep.c | 4 +- ext/phalcon/session/adapter/redis.zep.c | 4 +- ext/phalcon/session/adapterinterface.zep.c | 10 + ext/phalcon/session/adapterinterface.zep.h | 6 + ext/phalcon/tag.zep.c | 2 +- ext/phalcon/text.zep.c | 2 +- .../translate/interpolator/indexedarray.zep.c | 2 +- ext/phalcon/validation/message.zep.c | 73 ++++- ext/phalcon/validation/message.zep.h | 9 + .../validation/validator/inclusionin.zep.c | 2 +- .../validation/validator/stringlength.zep.c | 2 +- phalcon/mvc/model.zep | 135 ++++---- 74 files changed, 1243 insertions(+), 886 deletions(-) diff --git a/ext/phalcon/acl/adapter.zep.c b/ext/phalcon/acl/adapter.zep.c index fcf885ac71a..8ba37a8b253 100644 --- a/ext/phalcon/acl/adapter.zep.c +++ b/ext/phalcon/acl/adapter.zep.c @@ -70,6 +70,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Adapter) { /** * Role which the list is checking if it's allowed to certain resource/access + * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveRole) { @@ -80,6 +81,7 @@ PHP_METHOD(Phalcon_Acl_Adapter, getActiveRole) { /** * Resource which the list is checking if some role can access it + * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveResource) { @@ -90,6 +92,7 @@ PHP_METHOD(Phalcon_Acl_Adapter, getActiveResource) { /** * Active access which the list is checking if some role can access it + * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveAccess) { diff --git a/ext/phalcon/acl/resource.zep.c b/ext/phalcon/acl/resource.zep.c index 6b8ddb9144d..4ade7a6f0b6 100644 --- a/ext/phalcon/acl/resource.zep.c +++ b/ext/phalcon/acl/resource.zep.c @@ -46,6 +46,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Resource) { /** * Resource name + * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getName) { @@ -56,6 +57,7 @@ PHP_METHOD(Phalcon_Acl_Resource, getName) { /** * Resource name + * @var string */ PHP_METHOD(Phalcon_Acl_Resource, __toString) { @@ -66,6 +68,7 @@ PHP_METHOD(Phalcon_Acl_Resource, __toString) { /** * Resource description + * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getDescription) { diff --git a/ext/phalcon/acl/role.zep.c b/ext/phalcon/acl/role.zep.c index cf40e13220e..916a2ce2da5 100644 --- a/ext/phalcon/acl/role.zep.c +++ b/ext/phalcon/acl/role.zep.c @@ -47,6 +47,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Role) { /** * Role name + * @var string */ PHP_METHOD(Phalcon_Acl_Role, getName) { @@ -57,6 +58,7 @@ PHP_METHOD(Phalcon_Acl_Role, getName) { /** * Role name + * @var string */ PHP_METHOD(Phalcon_Acl_Role, __toString) { @@ -67,6 +69,7 @@ PHP_METHOD(Phalcon_Acl_Role, __toString) { /** * Role description + * @var string */ PHP_METHOD(Phalcon_Acl_Role, getDescription) { diff --git a/ext/phalcon/cache/backend/redis.zep.c b/ext/phalcon/cache/backend/redis.zep.c index 78b02a1f848..e68d330c003 100644 --- a/ext/phalcon/cache/backend/redis.zep.c +++ b/ext/phalcon/cache/backend/redis.zep.c @@ -140,10 +140,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { diff --git a/ext/phalcon/cli/task.zep.c b/ext/phalcon/cli/task.zep.c index f1d5d405eaa..62dde3a8243 100644 --- a/ext/phalcon/cli/task.zep.c +++ b/ext/phalcon/cli/task.zep.c @@ -12,6 +12,9 @@ #include #include "kernel/main.h" +#include "kernel/object.h" +#include "kernel/fcall.h" +#include "kernel/memory.h" /** @@ -55,7 +58,15 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Task) { */ PHP_METHOD(Phalcon_Cli_Task, __construct) { + int ZEPHIR_LAST_CALL_STATUS; + ZEPHIR_MM_GROW(); + + if ((zephir_method_exists_ex(this_ptr, SS("onconstruct") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_CALL_METHOD(NULL, this_ptr, "onconstruct", NULL, 0); + zephir_check_call_status(); + } + ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/config/adapter/yaml.zep.c b/ext/phalcon/config/adapter/yaml.zep.c index 23ecb3375b3..9211e87e3a8 100644 --- a/ext/phalcon/config/adapter/yaml.zep.c +++ b/ext/phalcon/config/adapter/yaml.zep.c @@ -29,8 +29,9 @@ * Given the following configuration file: * * - * phalcon - * baseuri: /phalcon/ + * phalcon: + * baseuri: /phalcon/ + * controllersDir: !approot /app/controllers/ * models: * metadata: memory * @@ -38,7 +39,15 @@ * You can read it as follows: * * - * $config = new Phalcon\Config\Adapter\Yaml("path/config.yaml"); + * define('APPROOT', dirname(__DIR__)); + * + * $config = new Phalcon\Config\Adapter\Yaml("path/config.yaml", [ + * '!approot' => function($value) { + * return APPROOT . $value; + * } + * ]); + * + * echo $config->phalcon->controllersDir; * echo $config->phalcon->baseuri; * echo $config->models->metadata; * @@ -93,7 +102,7 @@ PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 129, &_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", 62); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_config_exception_ce, "Yaml extension not loaded", "phalcon/config/adapter/yaml.zep", 71); return; } if (!ZEPHIR_IS_STRING_IDENTICAL(callbacks, "")) { @@ -118,7 +127,7 @@ PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_CONCAT_SVS(_5, "Configuration file ", _3, " can't be loaded"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 72 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 81 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/db/adapter.zep.c b/ext/phalcon/db/adapter.zep.c index 11cbe016ca3..06c791017af 100644 --- a/ext/phalcon/db/adapter.zep.c +++ b/ext/phalcon/db/adapter.zep.c @@ -132,6 +132,8 @@ PHP_METHOD(Phalcon_Db_Adapter, getType) { /** * Active SQL bound parameter variables + * + * @var string */ PHP_METHOD(Phalcon_Db_Adapter, getSqlVariables) { diff --git a/ext/phalcon/db/adapter/pdo/mysql.zep.c b/ext/phalcon/db/adapter/pdo/mysql.zep.c index 455bf88b196..12004997630 100644 --- a/ext/phalcon/db/adapter/pdo/mysql.zep.c +++ b/ext/phalcon/db/adapter/pdo/mysql.zep.c @@ -130,7 +130,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 329); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 337); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -192,13 +192,19 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -208,7 +214,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 196)) { + if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 204)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 9); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -218,7 +224,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 206)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 214)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -228,7 +234,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 216)) { + if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 224)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -237,7 +243,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 225)) { + if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 233)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 10); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -246,19 +252,19 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 12); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 13); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 11); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -269,7 +275,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 265)) { + if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 273)) { ZEPHIR_INIT_NVAR(matches); ZVAL_NULL(matches); ZEPHIR_INIT_NVAR(_8); @@ -289,7 +295,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } } } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 280)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 288)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -297,30 +303,30 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 311 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 310 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 317 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 325 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 326 TSRMLS_CC); zephir_array_update_string(&definition, SL("default"), &_14, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 324 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 332 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 325); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 333); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); diff --git a/ext/phalcon/db/adapter/pdo/oracle.zep.c b/ext/phalcon/db/adapter/pdo/oracle.zep.c index 82a403144c6..20e598a9229 100644 --- a/ext/phalcon/db/adapter/pdo/oracle.zep.c +++ b/ext/phalcon/db/adapter/pdo/oracle.zep.c @@ -211,7 +211,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { } if (zephir_memnstr_str(columnType, SL("TIMESTAMP"), "phalcon/db/adapter/pdo/oracle.zep", 144)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 0); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } diff --git a/ext/phalcon/db/adapter/pdo/postgresql.zep.c b/ext/phalcon/db/adapter/pdo/postgresql.zep.c index 796de8f8c77..361642ce52d 100644 --- a/ext/phalcon/db/adapter/pdo/postgresql.zep.c +++ b/ext/phalcon/db/adapter/pdo/postgresql.zep.c @@ -152,7 +152,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 318); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 326); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -216,7 +216,13 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 182)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -228,14 +234,14 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 195)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 203)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 4); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -244,14 +250,14 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 204)) { + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 212)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 213)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 221)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -262,7 +268,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 224)) { + if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 232)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -274,19 +280,19 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_9, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 16); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 15); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -300,7 +306,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 266)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 274)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -308,22 +314,22 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 282 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 290 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 289 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 297 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 311 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 312 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); ZVAL_STRING(_8, "/^'|'?::[[:alnum:][:space:]]+$/", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_9); @@ -333,7 +339,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_check_temp_parameter(_9); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_15, PH_COPY | PH_SEPARATE); - zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 305 TSRMLS_CC); + zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_18); ZVAL_STRING(&_18, "null", 0); ZEPHIR_CALL_FUNCTION(&_19, "strcasecmp", &_20, 19, _17, &_18); @@ -342,12 +348,12 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("default"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 321 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 314); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 322); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); @@ -398,11 +404,11 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 329); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 337); return; } if (!(zephir_fast_count_int(columns TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 333); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 341); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dialect"), PH_NOISY_CC); @@ -416,7 +422,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 349); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 357); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -442,13 +448,13 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 361 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } else { - zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 356 TSRMLS_CC); + zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 364 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _6, ";"); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _4); @@ -512,7 +518,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 381); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 389); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -538,7 +544,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 386 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 394 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -546,7 +552,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } else { ZEPHIR_INIT_VAR(_6); if (!(ZEPHIR_IS_EMPTY(sql))) { - zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 390 TSRMLS_CC); + zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 398 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _7, ";"); ZEPHIR_CALL_METHOD(&_6, this_ptr, "execute", NULL, 0, _4); diff --git a/ext/phalcon/db/adapter/pdo/sqlite.zep.c b/ext/phalcon/db/adapter/pdo/sqlite.zep.c index 2b74b3b8215..5e04432cbef 100644 --- a/ext/phalcon/db/adapter/pdo/sqlite.zep.c +++ b/ext/phalcon/db/adapter/pdo/sqlite.zep.c @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { } if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/sqlite.zep", 166)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 1); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } diff --git a/ext/phalcon/db/column.zep.c b/ext/phalcon/db/column.zep.c index 7f4cb5abbe0..b04f83ebc59 100644 --- a/ext/phalcon/db/column.zep.c +++ b/ext/phalcon/db/column.zep.c @@ -237,6 +237,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Column) { */ zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_JSONB"), 16 TSRMLS_CC); + /** + * Datetime abstract type + */ + zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_TIMESTAMP"), 17 TSRMLS_CC); + /** * Bind Type Null */ @@ -279,6 +284,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Column) { /** * Column's name + * + * @var string */ PHP_METHOD(Phalcon_Db_Column, getName) { @@ -289,6 +296,8 @@ PHP_METHOD(Phalcon_Db_Column, getName) { /** * Schema which table related is + * + * @var string */ PHP_METHOD(Phalcon_Db_Column, getSchemaName) { @@ -299,6 +308,8 @@ PHP_METHOD(Phalcon_Db_Column, getSchemaName) { /** * Column data type + * + * @var int|string */ PHP_METHOD(Phalcon_Db_Column, getType) { @@ -309,6 +320,8 @@ PHP_METHOD(Phalcon_Db_Column, getType) { /** * Column data type reference + * + * @var int */ PHP_METHOD(Phalcon_Db_Column, getTypeReference) { @@ -319,6 +332,8 @@ PHP_METHOD(Phalcon_Db_Column, getTypeReference) { /** * Column data type values + * + * @var array|string */ PHP_METHOD(Phalcon_Db_Column, getTypeValues) { @@ -329,6 +344,8 @@ PHP_METHOD(Phalcon_Db_Column, getTypeValues) { /** * Integer column size + * + * @var int */ PHP_METHOD(Phalcon_Db_Column, getSize) { @@ -339,6 +356,8 @@ PHP_METHOD(Phalcon_Db_Column, getSize) { /** * Integer column number scale + * + * @var int */ PHP_METHOD(Phalcon_Db_Column, getScale) { @@ -389,7 +408,7 @@ PHP_METHOD(Phalcon_Db_Column, __construct) { if (zephir_array_isset_string_fetch(&type, definition, SS("type"), 0 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 292); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 297); return; } ZEPHIR_OBS_VAR(typeReference); @@ -423,7 +442,7 @@ PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_scale"), scale TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 338); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 343); return; } while(0); @@ -450,7 +469,7 @@ PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_autoIncrement"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 378); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 383); return; } while(0); @@ -571,7 +590,7 @@ PHP_METHOD(Phalcon_Db_Column, __set_state) { if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_columnName"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(columnName); if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_name"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 484); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 489); return; } } @@ -600,7 +619,7 @@ PHP_METHOD(Phalcon_Db_Column, __set_state) { zephir_array_update_string(&definition, SL("size"), &size, PH_COPY | PH_SEPARATE); } if (zephir_array_isset_string_fetch(&scale, data, SS("_scale"), 1 TSRMLS_CC)) { - zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 518 TSRMLS_CC); + zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 523 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_1, 0) || ZEPHIR_IS_LONG(_1, 7) || ZEPHIR_IS_LONG(_1, 3) || ZEPHIR_IS_LONG(_1, 9) || ZEPHIR_IS_LONG(_1, 14)) { zephir_array_update_string(&definition, SL("scale"), &scale, PH_COPY | PH_SEPARATE); @@ -637,3 +656,16 @@ PHP_METHOD(Phalcon_Db_Column, __set_state) { } +/** + * Check whether column has default value + */ +PHP_METHOD(Phalcon_Db_Column, hasDefault) { + + zval *_0; + + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_default"), PH_NOISY_CC); + RETURN_BOOL(Z_TYPE_P(_0) != IS_NULL); + +} + diff --git a/ext/phalcon/db/column.zep.h b/ext/phalcon/db/column.zep.h index 82cf316423e..894f17a7918 100644 --- a/ext/phalcon/db/column.zep.h +++ b/ext/phalcon/db/column.zep.h @@ -21,6 +21,7 @@ PHP_METHOD(Phalcon_Db_Column, isFirst); PHP_METHOD(Phalcon_Db_Column, getAfterPosition); PHP_METHOD(Phalcon_Db_Column, getBindType); PHP_METHOD(Phalcon_Db_Column, __set_state); +PHP_METHOD(Phalcon_Db_Column, hasDefault); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_column___construct, 0, 0, 2) ZEND_ARG_INFO(0, name) @@ -50,5 +51,6 @@ ZEPHIR_INIT_FUNCS(phalcon_db_column_method_entry) { PHP_ME(Phalcon_Db_Column, getAfterPosition, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, getBindType, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, __set_state, arginfo_phalcon_db_column___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Phalcon_Db_Column, hasDefault, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phalcon/db/columninterface.zep.c b/ext/phalcon/db/columninterface.zep.c index 4f0ae580b98..88406450ad4 100644 --- a/ext/phalcon/db/columninterface.zep.c +++ b/ext/phalcon/db/columninterface.zep.c @@ -142,6 +142,11 @@ ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getBindType); */ ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getDefault); +/** + * Check whether column has default value + */ +ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, hasDefault); + /** * Restores the internal state of a Phalcon\Db\Column object */ diff --git a/ext/phalcon/db/columninterface.zep.h b/ext/phalcon/db/columninterface.zep.h index 6938fe377ae..d64f82308e7 100644 --- a/ext/phalcon/db/columninterface.zep.h +++ b/ext/phalcon/db/columninterface.zep.h @@ -30,6 +30,7 @@ ZEPHIR_INIT_FUNCS(phalcon_db_columninterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getAfterPosition, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getBindType, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getDefault, NULL) + PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, hasDefault, NULL) ZEND_FENTRY(__set_state, NULL, arginfo_phalcon_db_columninterface___set_state, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phalcon/db/dialect/mysql.zep.c b/ext/phalcon/db/dialect/mysql.zep.c index cff2f278626..ba3284b96d7 100644 --- a/ext/phalcon/db/dialect/mysql.zep.c +++ b/ext/phalcon/db/dialect/mysql.zep.c @@ -43,11 +43,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_MySQL) { */ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { - zephir_fcall_cache_entry *_9 = NULL; - HashTable *_6; - HashPosition _5; + zephir_fcall_cache_entry *_10 = NULL; + HashTable *_7; + HashPosition _6; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *value = NULL, *valueSql, **_7, _8 = zval_used_for_init, _10 = zval_used_for_init, *_11; + zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *value = NULL, *valueSql, **_8, _9 = zval_used_for_init, _11 = zval_used_for_init, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -121,6 +121,12 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHAR") TSRMLS_CC); @@ -242,7 +248,16 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized MySQL data type", "phalcon/db/dialect/mysql.zep", 191); + ZEPHIR_INIT_VAR(_5); + object_init_ex(_5, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized MySQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_5, "phalcon/db/dialect/mysql.zep", 197 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -251,36 +266,36 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_6, &_5, 0, 0, "phalcon/db/dialect/mysql.zep", 202); + zephir_is_iterable(typeValues, &_7, &_6, 0, 0, "phalcon/db/dialect/mysql.zep", 208); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zephir_hash_move_forward_ex(_7, &_6) ) { - ZEPHIR_GET_HVALUE(value, _7); - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_9, 143, value, &_8); + ZEPHIR_GET_HVALUE(value, _8); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_10, 143, value, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_4); + ZEPHIR_CONCAT_SVS(_4, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _4 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_8); - ZVAL_LONG(&_8, 0); - ZEPHIR_SINIT_VAR(_10); - ZVAL_LONG(&_10, -2); - ZEPHIR_INIT_VAR(_11); - zephir_substr(_11, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(", _11, ")"); - zephir_concat_self(&columnSql, _4 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_LONG(&_9, 0); + ZEPHIR_SINIT_VAR(_11); + ZVAL_LONG(&_11, -2); + ZEPHIR_INIT_NVAR(_5); + zephir_substr(_5, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(", _5, ")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_9, 143, typeValues, &_10); + ZEPHIR_SINIT_NVAR(_11); + ZVAL_STRING(&_11, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_3, "addcslashes", &_10, 143, typeValues, &_11); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(\"", _2, "\")"); + ZEPHIR_CONCAT_SVS(_4, "(\"", _3, "\")"); zephir_concat_self(&columnSql, _4 TSRMLS_CC); } } @@ -296,7 +311,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -334,33 +349,41 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " ADD `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 143, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 229)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_4, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_8)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); zephir_check_call_status(); if (zephir_is_true(afterPosition)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SV(_5, " AFTER ", afterPosition); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_7); + ZEPHIR_CONCAT_SV(_7, " AFTER ", afterPosition); + zephir_concat_self(&sql, _7 TSRMLS_CC); } } RETURN_CCTOR(sql); @@ -373,7 +396,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -414,20 +437,28 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " MODIFY `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 143, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -827,12 +858,12 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, dropForeignKey) { */ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL, *_13 = NULL; - HashTable *_1, *_11, *_17; - HashPosition _0, _10, _16; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL, *_17 = NULL; + HashTable *_1, *_15, *_19; + HashPosition _0, _14, _18; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, **_12, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, **_16, **_20, *_21; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -866,7 +897,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 354); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -886,7 +917,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 413); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -898,42 +929,50 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 143, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { zephir_concat_self_str(&columnLine, SL(" AUTO_INCREMENT") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 407); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_11, &_10, 0, 0, "phalcon/db/dialect/mysql.zep", 435); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(index, _12); + ZEPHIR_GET_HVALUE(index, _16); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -941,79 +980,79 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_13, 44, _4); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_17, 44, _4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); ZEPHIR_CONCAT_SVS(indexSql, "PRIMARY KEY (", _3, ")"); } else { ZEPHIR_INIT_NVAR(indexSql); if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_14, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", &_13, 44, _14); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_17, 44, _9); zephir_check_call_status(); - ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _7, ")"); + ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_15, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", &_13, 44, _15); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _14, ")"); + ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 433); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_17, &_16, 0, 0, "phalcon/db/dialect/mysql.zep", 457); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); for ( - ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS - ; zephir_hash_move_forward_ex(_17, &_16) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(reference, _18); + ZEPHIR_GET_HVALUE(reference, _20); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_13, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_17, 44, _6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", &_13, 44, _19); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _14, "`(", _15, ")"); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _9, "`(", _12, ")"); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 455); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); } } - ZEPHIR_INIT_VAR(_21); - zephir_fast_join_str(_21, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _21, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ", _3); - zephir_concat_self(&sql, _20 TSRMLS_CC); + ZEPHIR_INIT_VAR(_21); + ZEPHIR_CONCAT_SV(_21, " ", _3); + zephir_concat_self(&sql, _21 TSRMLS_CC); } RETURN_CCTOR(sql); @@ -1109,7 +1148,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 493); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -1514,7 +1553,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 633); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -1522,7 +1561,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 642); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(tableCollation); @@ -1530,13 +1569,13 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 652 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 652); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 653); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { diff --git a/ext/phalcon/db/dialect/oracle.zep.c b/ext/phalcon/db/dialect/oracle.zep.c index 4a420aba4f9..4a391784829 100644 --- a/ext/phalcon/db/dialect/oracle.zep.c +++ b/ext/phalcon/db/dialect/oracle.zep.c @@ -106,7 +106,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL; + zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL, *_0, *_1 = NULL, *_2; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -145,6 +145,12 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TIMESTAMP", 1); break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { ZEPHIR_INIT_NVAR(columnSql); ZEPHIR_CONCAT_SVS(columnSql, "CHAR(", size, ")"); @@ -167,7 +173,16 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TINYINT(1)", 1); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized Oracle data type", "phalcon/db/dialect/oracle.zep", 119); + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "Unrecognized Oracle data type at column ", _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _2); + zephir_check_call_status(); + zephir_throw_exception_debug(_0, "phalcon/db/dialect/oracle.zep", 125 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } while(0); @@ -210,7 +225,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 130); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 136); return; } @@ -253,7 +268,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 138); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 144); return; } @@ -294,7 +309,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_get_strval(columnName, columnName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 146); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 152); return; } @@ -334,7 +349,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 154); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 160); return; } @@ -386,7 +401,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 163); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 169); return; } @@ -406,7 +421,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addPrimaryKey) { zephir_get_strval(schemaName, schemaName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 171); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 177); return; } @@ -446,7 +461,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 179); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 185); return; } @@ -486,7 +501,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 187); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 193); return; } @@ -537,7 +552,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 195); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 201); return; } @@ -580,7 +595,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 203); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; } @@ -679,7 +694,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 230); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 236); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); diff --git a/ext/phalcon/db/dialect/postgresql.zep.c b/ext/phalcon/db/dialect/postgresql.zep.c index 02ac0e016bd..7a63d81225b 100644 --- a/ext/phalcon/db/dialect/postgresql.zep.c +++ b/ext/phalcon/db/dialect/postgresql.zep.c @@ -43,11 +43,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Postgresql) { */ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { - zephir_fcall_cache_entry *_6 = NULL; - HashTable *_3; - HashPosition _2; + zephir_fcall_cache_entry *_7 = NULL; + HashTable *_4; + HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *value = NULL, *valueSql, **_4, _5 = zval_used_for_init, _7 = zval_used_for_init, *_8, *_9 = NULL, *_10 = NULL; + zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, *_8 = NULL, _9 = zval_used_for_init, *_10 = NULL, *_11; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -110,6 +110,12 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(columnType, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(columnType, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -163,7 +169,16 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized PostgreSQL data type", "phalcon/db/dialect/postgresql.zep", 143); + ZEPHIR_INIT_VAR(_2); + object_init_ex(_2, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -172,37 +187,37 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_3, &_2, 0, 0, "phalcon/db/dialect/postgresql.zep", 154); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zephir_hash_move_forward_ex(_4, &_3) ) { - ZEPHIR_GET_HVALUE(value, _4); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_6, 143, value, &_5); + ZEPHIR_GET_HVALUE(value, _5); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 143, value, &_6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "\"", _0, "\", "); + zephir_concat_self(&valueSql, _8 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, 0); - ZEPHIR_SINIT_VAR(_7); - ZVAL_LONG(&_7, -2); - ZEPHIR_INIT_VAR(_8); - zephir_substr(_8, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(", _8, ")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_LONG(&_6, 0); + ZEPHIR_SINIT_VAR(_9); + ZVAL_LONG(&_9, -2); + ZEPHIR_INIT_NVAR(_2); + zephir_substr(_2, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "(", _2, ")"); + zephir_concat_self(&columnSql, _8 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_7); - ZVAL_STRING(&_7, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_6, 143, typeValues, &_7); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_7, 143, typeValues, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(\"", _10, "\")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + ZEPHIR_CONCAT_SVS(_11, "(\"", _10, "\")"); + zephir_concat_self(&columnSql, _11 TSRMLS_CC); } } } while(0); @@ -217,7 +232,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -261,17 +276,23 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 143, defaultValue, &_4); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -285,7 +306,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zend_bool _10; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _11, *_12 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -376,9 +397,9 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(&_4, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); if (!ZEPHIR_IS_EQUAL(_3, _4)) { - ZEPHIR_CALL_METHOD(&_6, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = ZEPHIR_IS_EMPTY(_6); + _10 = !zephir_is_true(_6); if (_10) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); @@ -391,18 +412,30 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + if (zephir_is_true(_8)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_11); - ZVAL_STRING(&_11, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_12, "addcslashes", NULL, 143, defaultValue, &_11); - zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" SET DEFAULT \"", _12, "\""); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_13); + ZVAL_STRING(&_13, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_15); + ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); + zephir_concat_self(&sql, _15 TSRMLS_CC); + } } } RETURN_CCTOR(sql); @@ -803,12 +836,12 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { */ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL; - HashTable *_1, *_13, *_21; - HashPosition _0, _12, _20; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; + HashTable *_1, *_16, *_21; + HashPosition _0, _15, _20; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, **_14, *_15 = NULL, *_16 = NULL, *_17 = NULL, *_18 = NULL, *_19 = NULL, **_22, *_23, *_24 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -842,7 +875,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 327); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -864,7 +897,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 383); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -876,52 +909,60 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 143, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { } - ZEPHIR_CALL_METHOD(&_10, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_10)) { - ZEPHIR_CALL_METHOD(&_11, column, "getname", NULL, 0); + if (zephir_is_true(_13)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 378); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 381); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _9, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 384); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_13, &_12, 0, 0, "phalcon/db/dialect/postgresql.zep", 418); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS + ; zephir_hash_move_forward_ex(_16, &_15) ) { - ZEPHIR_GET_HVALUE(index, _14); + ZEPHIR_GET_HVALUE(index, _17); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -937,37 +978,37 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_10, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 44, _10); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _7, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_11, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "preparetable", NULL, 145, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SVSV(_16, "CREATE INDEX \"", _11, "\" ON ", _15); - zephir_concat_self(&indexSqlAfterCreate, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); + zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _17, ");"); + ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 415); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 443); + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -975,56 +1016,56 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_GET_HVALUE(reference, _22); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_11, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "preparetable", NULL, 145, _11, schemaName); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _10 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_17, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", NULL, 44, _17); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " (", _15, ")"); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SV(_16, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _19 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 441); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); } } - ZEPHIR_INIT_VAR(_23); - zephir_fast_join_str(_23, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _23, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_24); - ZEPHIR_CONCAT_SV(_24, " ", _3); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_VAR(_23); + ZEPHIR_CONCAT_SV(_23, " ", _3); + zephir_concat_self(&sql, _23 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_24); - ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_23); + ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _23 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -1119,7 +1160,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 480); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); diff --git a/ext/phalcon/db/dialect/sqlite.zep.c b/ext/phalcon/db/dialect/sqlite.zep.c index 5bb5af4f41f..28663ec649a 100644 --- a/ext/phalcon/db/dialect/sqlite.zep.c +++ b/ext/phalcon/db/dialect/sqlite.zep.c @@ -43,11 +43,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Sqlite) { */ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { - zephir_fcall_cache_entry *_7 = NULL; - HashTable *_4; - HashPosition _3; + zephir_fcall_cache_entry *_8 = NULL; + HashTable *_5; + HashPosition _4; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, _8 = zval_used_for_init, *_9, *_10 = NULL; + zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *value = NULL, *valueSql, **_6, _7 = zval_used_for_init, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -106,6 +106,12 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -130,7 +136,16 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized SQLite data type", "phalcon/db/dialect/sqlite.zep", 112); + ZEPHIR_INIT_VAR(_3); + object_init_ex(_3, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized SQLite data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_3, "phalcon/db/dialect/sqlite.zep", 118 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -139,37 +154,37 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/sqlite.zep", 123); + zephir_is_iterable(typeValues, &_5, &_4, 0, 0, "phalcon/db/dialect/sqlite.zep", 129); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zephir_hash_move_forward_ex(_5, &_4) ) { - ZEPHIR_GET_HVALUE(value, _5); - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 143, value, &_6); + ZEPHIR_GET_HVALUE(value, _6); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_STRING(&_7, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_8, 143, value, &_7); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _9 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_6); - ZVAL_LONG(&_6, 0); - ZEPHIR_SINIT_VAR(_8); - ZVAL_LONG(&_8, -2); - ZEPHIR_INIT_VAR(_9); - zephir_substr(_9, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(", _9, ")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_LONG(&_7, 0); + ZEPHIR_SINIT_VAR(_10); + ZVAL_LONG(&_10, -2); + ZEPHIR_INIT_NVAR(_3); + zephir_substr(_3, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "(", _3, ")"); + zephir_concat_self(&columnSql, _9 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_7, 143, typeValues, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_8, 143, typeValues, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(\"", _2, "\")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(\"", _11, "\")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } } } while(0); @@ -184,7 +199,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4 = NULL, *_5, _6, *_7 = NULL, *_8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -225,25 +240,33 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_4, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 143, defaultValue, &_4); + if (zephir_is_true(_4)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 152)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", NULL, 143, defaultValue, &_6); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _7, "\""); + zephir_concat_self(&sql, _8 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_7)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_5, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" PRIMARY KEY AUTOINCREMENT") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -288,7 +311,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 165); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 175); return; } @@ -339,7 +362,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 173); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 183); return; } @@ -502,7 +525,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 217); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 227); return; } @@ -542,7 +565,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 235); return; } @@ -582,7 +605,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 233); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 243); return; } @@ -633,7 +656,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 241); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 251); return; } @@ -676,7 +699,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 249); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); return; } @@ -771,7 +794,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 278); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); diff --git a/ext/phalcon/db/index.zep.c b/ext/phalcon/db/index.zep.c index c5f4648876d..1e155418faa 100644 --- a/ext/phalcon/db/index.zep.c +++ b/ext/phalcon/db/index.zep.c @@ -60,6 +60,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Index) { /** * Index name + * + * @var string */ PHP_METHOD(Phalcon_Db_Index, getName) { @@ -70,6 +72,8 @@ PHP_METHOD(Phalcon_Db_Index, getName) { /** * Index columns + * + * @var array */ PHP_METHOD(Phalcon_Db_Index, getColumns) { @@ -80,6 +84,8 @@ PHP_METHOD(Phalcon_Db_Index, getColumns) { /** * Index type + * + * @var string */ PHP_METHOD(Phalcon_Db_Index, getType) { diff --git a/ext/phalcon/db/profiler/item.zep.c b/ext/phalcon/db/profiler/item.zep.c index 0145f4b87ea..af0142a85f5 100644 --- a/ext/phalcon/db/profiler/item.zep.c +++ b/ext/phalcon/db/profiler/item.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/operators.h" #include "kernel/memory.h" +#include "kernel/operators.h" /** @@ -68,25 +68,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { /** * SQL statement related to the profile + * + * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * SQL statement related to the profile + * + * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { @@ -97,25 +97,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { /** * SQL variables related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * SQL variables related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { @@ -126,25 +126,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { /** * SQL bind types related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * SQL bind types related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { @@ -155,25 +155,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { /** * Timestamp when the profile started + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } /** * Timestamp when the profile started + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { @@ -184,25 +184,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { /** * Timestamp when the profile ended + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } /** * Timestamp when the profile ended + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getFinalTime) { diff --git a/ext/phalcon/db/profiler/item.zep.h b/ext/phalcon/db/profiler/item.zep.h index 8e21ab80b61..dccba4e6d5b 100644 --- a/ext/phalcon/db/profiler/item.zep.h +++ b/ext/phalcon/db/profiler/item.zep.h @@ -20,11 +20,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) diff --git a/ext/phalcon/db/rawvalue.zep.c b/ext/phalcon/db/rawvalue.zep.c index 3225b55035c..2e769732a97 100644 --- a/ext/phalcon/db/rawvalue.zep.c +++ b/ext/phalcon/db/rawvalue.zep.c @@ -48,6 +48,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_RawValue) { /** * Raw value without quoting or formating + * + * @var string */ PHP_METHOD(Phalcon_Db_RawValue, getValue) { @@ -58,6 +60,8 @@ PHP_METHOD(Phalcon_Db_RawValue, getValue) { /** * Raw value without quoting or formating + * + * @var string */ PHP_METHOD(Phalcon_Db_RawValue, __toString) { diff --git a/ext/phalcon/db/reference.zep.c b/ext/phalcon/db/reference.zep.c index d285b1d87e6..06fe9973532 100644 --- a/ext/phalcon/db/reference.zep.c +++ b/ext/phalcon/db/reference.zep.c @@ -92,6 +92,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Reference) { /** * Constraint name + * + * @var string */ PHP_METHOD(Phalcon_Db_Reference, getName) { @@ -116,6 +118,8 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedSchema) { /** * Referenced Table + * + * @var string */ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { @@ -126,6 +130,8 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { /** * Local reference columns + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getColumns) { @@ -136,6 +142,8 @@ PHP_METHOD(Phalcon_Db_Reference, getColumns) { /** * Referenced Columns + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { @@ -146,6 +154,8 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { /** * ON DELETE + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { @@ -156,6 +166,8 @@ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { /** * ON UPDATE + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnUpdate) { diff --git a/ext/phalcon/di/factorydefault/cli.zep.c b/ext/phalcon/di/factorydefault/cli.zep.c index c400dd47ec1..a0ea39d4a1d 100644 --- a/ext/phalcon/di/factorydefault/cli.zep.c +++ b/ext/phalcon/di/factorydefault/cli.zep.c @@ -19,7 +19,7 @@ /** - * Phalcon\Di\FactoryDefault\CLI + * Phalcon\Di\FactoryDefault\Cli * * This is a variant of the standard Phalcon\Di. By default it automatically * registers all the services provided by the framework. @@ -35,7 +35,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault_Cli) { } /** - * Phalcon\Di\FactoryDefault\CLI constructor + * Phalcon\Di\FactoryDefault\Cli constructor */ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { @@ -55,7 +55,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Router", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); @@ -68,7 +68,7 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); diff --git a/ext/phalcon/di/injectable.zep.c b/ext/phalcon/di/injectable.zep.c index 90439b23cd0..4269b9759e1 100644 --- a/ext/phalcon/di/injectable.zep.c +++ b/ext/phalcon/di/injectable.zep.c @@ -31,26 +31,26 @@ * @property \Phalcon\Mvc\Dispatcher|\Phalcon\Mvc\DispatcherInterface $dispatcher; * @property \Phalcon\Mvc\Router|\Phalcon\Mvc\RouterInterface $router * @property \Phalcon\Mvc\Url|\Phalcon\Mvc\UrlInterface $url - * @property \Phalcon\Http\Request|\Phalcon\HTTP\RequestInterface $request - * @property \Phalcon\Http\Response|\Phalcon\HTTP\ResponseInterface $response + * @property \Phalcon\Http\Request|\Phalcon\Http\RequestInterface $request + * @property \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface $response * @property \Phalcon\Http\Response\Cookies|\Phalcon\Http\Response\CookiesInterface $cookies * @property \Phalcon\Filter|\Phalcon\FilterInterface $filter * @property \Phalcon\Flash\Direct $flash * @property \Phalcon\Flash\Session $flashSession * @property \Phalcon\Session\Adapter\Files|\Phalcon\Session\Adapter|\Phalcon\Session\AdapterInterface $session - * @property \Phalcon\Events\Manager $eventsManager + * @property \Phalcon\Events\Manager|\Phalcon\Events\ManagerInterface $eventsManager * @property \Phalcon\Db\AdapterInterface $db * @property \Phalcon\Security $security - * @property \Phalcon\Crypt $crypt + * @property \Phalcon\Crypt|\Phalcon\CryptInterface $crypt * @property \Phalcon\Tag $tag * @property \Phalcon\Escaper|\Phalcon\EscaperInterface $escaper * @property \Phalcon\Annotations\Adapter\Memory|\Phalcon\Annotations\Adapter $annotations * @property \Phalcon\Mvc\Model\Manager|\Phalcon\Mvc\Model\ManagerInterface $modelsManager * @property \Phalcon\Mvc\Model\MetaData\Memory|\Phalcon\Mvc\Model\MetadataInterface $modelsMetadata - * @property \Phalcon\Mvc\Model\Transaction\Manager $transactionManager + * @property \Phalcon\Mvc\Model\Transaction\Manager|\Phalcon\Mvc\Model\Transaction\ManagerInterface $transactionManager * @property \Phalcon\Assets\Manager $assets * @property \Phalcon\Di|\Phalcon\DiInterface $di - * @property \Phalcon\Session\Bag $persistent + * @property \Phalcon\Session\Bag|\Phalcon\Session\BagInterface $persistent * @property \Phalcon\Mvc\View|\Phalcon\Mvc\ViewInterface $view */ ZEPHIR_INIT_CLASS(Phalcon_Di_Injectable) { diff --git a/ext/phalcon/dispatcher.zep.c b/ext/phalcon/dispatcher.zep.c index 9b9351da27b..e6dcc2034bf 100644 --- a/ext/phalcon/dispatcher.zep.c +++ b/ext/phalcon/dispatcher.zep.c @@ -25,8 +25,8 @@ /** * Phalcon\Dispatcher * - * This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\CLI\Dispatcher. - * This class can't be instantiated directly, you can use it to create your own dispatchers + * This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\Cli\Dispatcher. + * This class can't be instantiated directly, you can use it to create your own dispatchers. */ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher) { diff --git a/ext/phalcon/events/event.zep.c b/ext/phalcon/events/event.zep.c index e52f7a888ce..878d567ade2 100644 --- a/ext/phalcon/events/event.zep.c +++ b/ext/phalcon/events/event.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/operators.h" #include "kernel/memory.h" +#include "kernel/operators.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" @@ -69,25 +69,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { /** * Event type + * + * @var string */ PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * Event type + * + * @var string */ PHP_METHOD(Phalcon_Events_Event, getType) { @@ -98,6 +98,8 @@ PHP_METHOD(Phalcon_Events_Event, getType) { /** * Event source + * + * @var object */ PHP_METHOD(Phalcon_Events_Event, getSource) { @@ -108,6 +110,8 @@ PHP_METHOD(Phalcon_Events_Event, getSource) { /** * Event data + * + * @var mixed */ PHP_METHOD(Phalcon_Events_Event, setData) { @@ -123,6 +127,8 @@ PHP_METHOD(Phalcon_Events_Event, setData) { /** * Event data + * + * @var mixed */ PHP_METHOD(Phalcon_Events_Event, getData) { @@ -133,6 +139,8 @@ PHP_METHOD(Phalcon_Events_Event, getData) { /** * Is event cancelable? + * + * @var boolean */ PHP_METHOD(Phalcon_Events_Event, getCancelable) { diff --git a/ext/phalcon/forms/element.zep.c b/ext/phalcon/forms/element.zep.c index 9f1f187934d..9fa42f3cc0f 100644 --- a/ext/phalcon/forms/element.zep.c +++ b/ext/phalcon/forms/element.zep.c @@ -753,7 +753,7 @@ PHP_METHOD(Phalcon_Forms_Element, setMessages) { PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages, *_0; + zval *message, *messages = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); @@ -768,6 +768,8 @@ PHP_METHOD(Phalcon_Forms_Element, appendMessage) { ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); + ZEPHIR_OBS_NVAR(messages); + zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); } ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); zephir_check_call_status(); diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 31a21167c72..9ef3368f74e 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -79,6 +79,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Request_File) { } /** + * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getError) { @@ -88,6 +89,7 @@ PHP_METHOD(Phalcon_Http_Request_File, getError) { } /** + * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getKey) { @@ -97,6 +99,7 @@ PHP_METHOD(Phalcon_Http_Request_File, getKey) { } /** + * @var string */ PHP_METHOD(Phalcon_Http_Request_File, getExtension) { diff --git a/ext/phalcon/image/adapter.zep.c b/ext/phalcon/image/adapter.zep.c index 3831da754cf..b585452e5ab 100644 --- a/ext/phalcon/image/adapter.zep.c +++ b/ext/phalcon/image/adapter.zep.c @@ -89,6 +89,8 @@ PHP_METHOD(Phalcon_Image_Adapter, getRealpath) { /** * Image width + * + * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { @@ -99,6 +101,8 @@ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { /** * Image height + * + * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { @@ -110,9 +114,9 @@ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { /** * Image type * - * * Driver dependent * + * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getType) { @@ -123,6 +127,8 @@ PHP_METHOD(Phalcon_Image_Adapter, getType) { /** * Image mime type + * + * @var string */ PHP_METHOD(Phalcon_Image_Adapter, getMime) { diff --git a/ext/phalcon/image/adapter/imagick.zep.c b/ext/phalcon/image/adapter/imagick.zep.c index 89bc7c332c3..601ebbf3386 100644 --- a/ext/phalcon/image/adapter/imagick.zep.c +++ b/ext/phalcon/image/adapter/imagick.zep.c @@ -129,10 +129,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -201,13 +199,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -442,10 +438,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -643,10 +637,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -695,16 +687,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -833,10 +821,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -909,10 +895,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -925,10 +909,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -1152,10 +1134,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -1231,26 +1211,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); diff --git a/ext/phalcon/logger/adapter.zep.c b/ext/phalcon/logger/adapter.zep.c index 1314dfab1dd..824186b7baf 100644 --- a/ext/phalcon/logger/adapter.zep.c +++ b/ext/phalcon/logger/adapter.zep.c @@ -189,8 +189,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, rollback) { /** * Returns the whether the logger is currently in an active transaction or not - * - * @return boolean */ PHP_METHOD(Phalcon_Logger_Adapter, isTransaction) { diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index 4358cc20845..7c69b0b640a 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/operators.h" #include "kernel/memory.h" +#include "kernel/operators.h" #include "kernel/string.h" #include "kernel/fcall.h" #include "kernel/concat.h" @@ -50,6 +50,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Formatter_Line) { /** * Default date format + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { @@ -60,25 +62,25 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { /** * Default date format + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * Format applied to each message + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { @@ -89,20 +91,18 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { /** * Format applied to each message + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/logger/item.zep.c b/ext/phalcon/logger/item.zep.c index df992b18e7f..59238352c41 100644 --- a/ext/phalcon/logger/item.zep.c +++ b/ext/phalcon/logger/item.zep.c @@ -56,6 +56,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Item) { /** * Log type + * + * @var integer */ PHP_METHOD(Phalcon_Logger_Item, getType) { @@ -66,6 +68,8 @@ PHP_METHOD(Phalcon_Logger_Item, getType) { /** * Log message + * + * @var string */ PHP_METHOD(Phalcon_Logger_Item, getMessage) { @@ -76,6 +80,8 @@ PHP_METHOD(Phalcon_Logger_Item, getMessage) { /** * Log timestamp + * + * @var integer */ PHP_METHOD(Phalcon_Logger_Item, getTime) { diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index ea067c9d9b4..2b693297d18 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -4519,9 +4519,10 @@ PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { * * * *callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 377, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -843,28 +843,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -939,11 +939,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, funcArguments, _4); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); Z_UNSET_ISREF_P(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 377, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -958,7 +958,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -1159,7 +1159,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 378, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -1177,7 +1177,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 377, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -1199,7 +1199,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 377, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -1210,13 +1210,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 381, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 377, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -1392,7 +1392,7 @@ 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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 377, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -1400,7 +1400,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 377, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -1492,7 +1492,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 377, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -1571,7 +1571,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends) { } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 382, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); zephir_check_call_status(); RETURN_MM(); } @@ -1622,7 +1622,7 @@ 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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, 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", 1369 TSRMLS_CC); @@ -1652,7 +1652,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 382, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -1700,7 +1700,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, statement, SS("if_expr"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 377, ifExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 378, ifExpr); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_SVS(_5, "if (", _12, ") { ?>"); @@ -1804,16 +1804,16 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 382, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 382, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SV(_5, "", _4); @@ -1845,7 +1845,7 @@ 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", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1880,9 +1880,9 @@ 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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 377, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -1912,7 +1912,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 382, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); @@ -1974,10 +1974,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 377, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 377, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -2038,7 +2038,7 @@ 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", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -2066,7 +2066,7 @@ 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", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -2100,7 +2100,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 382, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -2132,7 +2132,7 @@ 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", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 377, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -2209,14 +2209,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 377, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 377, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -2300,7 +2300,7 @@ 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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 377, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -2316,7 +2316,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 382, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, "getDialect(), tables = dialect->select([ "columns": fields, - "tables": readConnection->escapeIdentifier(table), - "where": uniqueKey + "tables": readConnection->escapeIdentifier(table), + "where": uniqueKey ]), row = readConnection->fetchOne(tables, \Phalcon\Db::FETCH_ASSOC, uniqueParams, this->_uniqueTypes); @@ -3517,9 +3517,10 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface * * * *_getRelatedRecords(modelName, method, arguments); - if records !== null { - return records; - } - - /** - * Try to find a replacement for the missing method in a behavior/listener - */ - let status = ( this->_modelsManager)->missingMethod(this, method, arguments); - if status !== null { - return status; - } - - /** - * The method doesn't exist throw an exception - */ - throw new Exception("The method '" . method . "' doesn't exist on model '" . modelName . "'"); - } - - /** - * Handles method calls when a static method is not implemented - * - * @param string method - * @param array arguments - * @return mixed - */ - public static function __callStatic(string method, arguments) + protected final static function _invokeFinder(method, arguments) { var extraMethod, type, modelName, value, model, attributes, field, extraMethodFirst, metaData; @@ -4002,7 +3970,7 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface let modelName = get_called_class(); if !extraMethod { - throw new Exception("The static method '" . method . "' doesn't exist on model '" . modelName . "'"); + return null; } if !fetch value, arguments[0] { @@ -4050,10 +4018,69 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface */ return {modelName}::{type}([ "conditions": field . " = ?0", - "bind" : [value] + "bind" : [value] ]); } + /** + * Handles method calls when a method is not implemented + * + * @param string method + * @param array arguments + * @return mixed + */ + public function __call(string method, arguments) + { + var modelName, status, records; + + let records = self::_invokeFinder(method, arguments); + if records !== null { + return records; + } + + let modelName = get_class(this); + + /** + * Check if there is a default action using the magic getter + */ + let records = this->_getRelatedRecords(modelName, method, arguments); + if records !== null { + return records; + } + + /** + * Try to find a replacement for the missing method in a behavior/listener + */ + let status = ( this->_modelsManager)->missingMethod(this, method, arguments); + if status !== null { + return status; + } + + /** + * The method doesn't exist throw an exception + */ + throw new Exception("The method '" . method . "' doesn't exist on model '" . modelName . "'"); + } + + /** + * Handles method calls when a static method is not implemented + * + * @param string method + * @param array arguments + * @return mixed + */ + public static function __callStatic(string method, arguments) + { + var records; + + let records = self::_invokeFinder(method, arguments); + if records === null { + throw new Exception("The static method '" . method . "' doesn't exist"); + } + + return records; + } + /** * Magic method to assign values to the the model * @@ -4062,8 +4089,8 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface */ public function __set(string property, value) { - var lowerProperty, related, modelName, manager, lowerKey, relation, referencedModel, - key, item; + var lowerProperty, related, modelName, manager, lowerKey, + relation, referencedModel, key, item; /** * Values are probably relationships if they are objects @@ -4097,10 +4124,10 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface let lowerKey = strtolower(key), this->{lowerKey} = item, relation = manager->getRelationByAlias(modelName, lowerProperty); - if typeof relation == "object" { - let referencedModel = manager->load(relation->getReferencedModel()); - referencedModel->writeAttribute(lowerKey, item); - } + if typeof relation == "object" { + let referencedModel = manager->load(relation->getReferencedModel()); + referencedModel->writeAttribute(lowerKey, item); + } } } From 89a6520dc879b973a8e85bca827f5a9f36a0d0bb Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Tue, 8 Sep 2015 11:31:30 -0500 Subject: [PATCH 41/60] Updated CHANGELOG [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8f543a2d6e..866ec8d2107 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ column definition - Fixed determining of default value for column in `Phalcon\Db\Dialect\MySQL`, `Phalcon\Db\Dialect\Sqlite` and `Phalcon\Db\Dialect\Postgresql` classes +- Now Phalcon\Mvc\Model::__call invokes finders as in __callStatic # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) - `Image\Adapter\Gd::save()` no longer fails if the method or the instance is created with a filename without an extension From db66c9a962394f6b980e5a3f01123987c4f5129a Mon Sep 17 00:00:00 2001 From: Green Cat Date: Wed, 9 Sep 2015 15:24:49 +0100 Subject: [PATCH 42/60] Adds mixed return type to session adapter get method --- phalcon/session/adapter.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/session/adapter.zep b/phalcon/session/adapter.zep index cf2b96e3537..2c087ff5241 100644 --- a/phalcon/session/adapter.zep +++ b/phalcon/session/adapter.zep @@ -126,7 +126,7 @@ abstract class Adapter * $session->get('auth', 'yes'); * */ - public function get(string index, var defaultValue = null, boolean remove = false) + public function get(string index, var defaultValue = null, boolean remove = false) -> var { var value, key, uniqueId; From 4c2e6eea250d8709c0f882a71ec72f8a65a04184 Mon Sep 17 00:00:00 2001 From: Sid Roberts Date: Wed, 9 Sep 2015 18:18:15 +0100 Subject: [PATCH 43/60] Fixed spelling (see phalcon/docs#685). --- 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 7a67a0707d5..bcaba261466 100644 --- a/phalcon/db/adapter.zep +++ b/phalcon/db/adapter.zep @@ -173,11 +173,11 @@ abstract class Adapter implements EventsAwareInterface * * * //Getting first robot - * $robot = $connection->fecthOne("SELECT * FROM robots"); + * $robot = $connection->fetchOne("SELECT * FROM robots"); * print_r($robot); * * //Getting first robot with associative indexes only - * $robot = $connection->fecthOne("SELECT * FROM robots", Phalcon\Db::FETCH_ASSOC); + * $robot = $connection->fetchOne("SELECT * FROM robots", Phalcon\Db::FETCH_ASSOC); * print_r($robot); * */ From b8e359b78a39ba3b2ff6b260bda2157b6ee0a819 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 10 Sep 2015 03:15:07 +0300 Subject: [PATCH 44/60] Fixed #10916 issue --- phalcon/db/dialect/postgresql.zep | 52 +++++++++++++++++-------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/phalcon/db/dialect/postgresql.zep b/phalcon/db/dialect/postgresql.zep index 0068bbe9783..2bea71ed137 100644 --- a/phalcon/db/dialect/postgresql.zep +++ b/phalcon/db/dialect/postgresql.zep @@ -119,10 +119,11 @@ class Postgresql extends Dialect case Column::TYPE_BIGINTEGER: if empty columnSql { - let columnSql .= "BIGINT"; - } - if size { - let columnSql .= "(" . column->getSize() . ")"; + if column->isAutoIncrement() { + let columnSql .= "BIGSERIAL"; + } else { + let columnSql .= "BIGINT"; + } } break; @@ -140,7 +141,7 @@ class Postgresql extends Dialect case Column::TYPE_BOOLEAN: if empty columnSql { - let columnSql .= "SMALLINT(1)"; + let columnSql .= "BOOLEAN"; } break; @@ -172,15 +173,18 @@ class Postgresql extends Dialect */ public function addColumn(string! tableName, string! schemaName, column) -> string { - var sql, defaultValue; + var sql, defaultValue, columnDefinition; - let sql = "ALTER TABLE " . this->prepareTable(tableName, schemaName) . " ADD COLUMN "; + let columnDefinition = this->getColumnDefinition(column); - let sql .= "\"" . column->getName() . "\" " . this->getColumnDefinition(column); + let sql = "ALTER TABLE " . this->prepareTable(tableName, schemaName) . " ADD COLUMN "; + let sql .= "\"" . column->getName() . "\" " . columnDefinition; - let defaultValue = column->getDefault(); - if !empty defaultValue { - if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + if column->hasDefault() { + let defaultValue = column->getDefault(); + if memstr(strtoupper(columnDefinition), "BOOLEAN") { + let sql .= " DEFAULT " . (defaultValue ? "true" : "false"); + } elseif memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { let sql .= " DEFAULT CURRENT_TIMESTAMP"; } else { let sql .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; @@ -199,8 +203,9 @@ class Postgresql extends Dialect */ public function modifyColumn(string! tableName, string! schemaName, column, currentColumn = null) -> string { - var sql = "", sqlAlterTable, defaultValue; + var sql = "", sqlAlterTable, defaultValue, columnDefinition; + let columnDefinition = this->getColumnDefinition(column); let sqlAlterTable = "ALTER TABLE " . this->prepareTable(tableName, schemaName); //Rename @@ -210,7 +215,7 @@ class Postgresql extends Dialect //Change type if column->getType() != currentColumn->getType() { - let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" TYPE " . this->getColumnDefinition(column) . ";"; + let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" TYPE " . columnDefinition . ";"; } //NULL @@ -230,7 +235,9 @@ class Postgresql extends Dialect if column->hasDefault() { let defaultValue = column->getDefault(); - if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + if memstr(strtoupper(columnDefinition), "BOOLEAN") { + let sql .= " ALTER COLUMN \"" . column->getName() . "\" SET DEFAULT " . (defaultValue ? "true" : "false"); + } elseif memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" SET DEFAULT CURRENT_TIMESTAMP"; } else { let sql .= sqlAlterTable . " ALTER COLUMN \"" . column->getName() . "\" SET DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; @@ -336,7 +343,8 @@ class Postgresql extends Dialect var temporary, options, table, createLines, columns, column, indexes, index, reference, references, indexName, indexSql, indexSqlAfterCreate, sql, columnLine, indexType, - referenceSql, onDelete, onUpdate, defaultValue, primaryColumns; + referenceSql, onDelete, onUpdate, defaultValue, primaryColumns, + columnDefinition; if !fetch columns, definition["columns"] { throw new Exception("The index 'columns' is required in the definition array"); @@ -362,14 +370,17 @@ class Postgresql extends Dialect let primaryColumns = []; for column in columns { - let columnLine = "\"" . column->getName() . "\" " . this->getColumnDefinition(column); + let columnDefinition = this->getColumnDefinition(column); + let columnLine = "\"" . column->getName() . "\" " . columnDefinition; /** * Add a Default clause */ if column->hasDefault() { let defaultValue = column->getDefault(); - if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + if memstr(strtoupper(columnDefinition), "BOOLEAN") { + let sql .= " DEFAULT " . (defaultValue ? "true" : "false"); + } elseif memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { let columnLine .= " DEFAULT CURRENT_TIMESTAMP"; } else { let columnLine .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; @@ -383,13 +394,6 @@ class Postgresql extends Dialect let columnLine .= " NOT NULL"; } - /** - * Add an AUTO_INCREMENT clause - */ - if column->isAutoIncrement() { - //let columnLine .= " AUTO_INCREMENT"; - } - /** * Mark the column as primary key */ From 482a7f578d0d4789354be38198085cfe2287278d Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Fri, 11 Sep 2015 01:00:47 +0300 Subject: [PATCH 45/60] Updating CHANGELOG [ci skip] --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 866ec8d2107..7f6a63ca19e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ - Fixed determining of default value for column in `Phalcon\Db\Dialect\MySQL`, `Phalcon\Db\Dialect\Sqlite` and `Phalcon\Db\Dialect\Postgresql` classes - Now Phalcon\Mvc\Model::__call invokes finders as in __callStatic +- Fixed `Phalcon\Db\Dialect\Postgresql::getColumnDefinition` for `BIGINT` and `BOOLEAN` data types +- Fixed `BOOLEAN` default value in `Phalcon\Db\Dialect\Postgresql` # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) - `Image\Adapter\Gd::save()` no longer fails if the method or the instance is created with a filename without an extension From 3c34772305ecb3629373c883f0e8e74cb6873389 Mon Sep 17 00:00:00 2001 From: Caio Almeida Date: Sat, 5 Sep 2015 20:05:38 -0300 Subject: [PATCH 46/60] basic validation credit card number using luhn algorithm adding licence and correct identation correct example code update the changelog remove conflict params remove *.zep.c and *.zep.h files --- CHANGELOG.md | 1 + phalcon/validation.zep | 3 +- phalcon/validation/validator/creditcard.zep | 92 +++++++++++++++++++++ unit-tests/ValidationTest.php | 68 ++++++++++++++- 4 files changed, 162 insertions(+), 2 deletions(-) create mode 100644 phalcon/validation/validator/creditcard.zep diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f6a63ca19e..6e4c731ef1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Now Phalcon\Mvc\Model::__call invokes finders as in __callStatic - Fixed `Phalcon\Db\Dialect\Postgresql::getColumnDefinition` for `BIGINT` and `BOOLEAN` data types - Fixed `BOOLEAN` default value in `Phalcon\Db\Dialect\Postgresql` +- Added `Phalcon\Validation\Validator\CreditCard` - validation credit card number using luhn algorithm # [2.0.7](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.7) (2015-08-17) - `Image\Adapter\Gd::save()` no longer fails if the method or the instance is created with a filename without an extension diff --git a/phalcon/validation.zep b/phalcon/validation.zep index 7122cd89d55..19d09218341 100644 --- a/phalcon/validation.zep +++ b/phalcon/validation.zep @@ -258,7 +258,8 @@ class Validation extends Injectable "TooLong": "Field :field must not exceed :max characters long", "TooShort": "Field :field must be at least :min characters long", "Uniqueness": "Field :field must be unique", - "Url": "Field :field must be a url" + "Url": "Field :field must be a url", + "CreditCard": "Field :field is not valid for a credit card number" ]; let this->_defaultMessages = array_merge(defaultMessages, messages); diff --git a/phalcon/validation/validator/creditcard.zep b/phalcon/validation/validator/creditcard.zep new file mode 100644 index 00000000000..2a35db796c1 --- /dev/null +++ b/phalcon/validation/validator/creditcard.zep @@ -0,0 +1,92 @@ + +/* + +------------------------------------------------------------------------+ + | Phalcon Framework | + +------------------------------------------------------------------------+ + | Copyright (c) 2011-2015 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 | + +------------------------------------------------------------------------+ + */ + +namespace Phalcon\Validation\Validator; + +use Phalcon\Validation; +use Phalcon\Validation\Validator; +use Phalcon\Validation\Message; + +/** + * Phalcon\Validation\Validator\CreditCard + * + * Checks if a value has a valid creditcard number + * + * + *use Phalcon\Validation\Validator\CreditCard as CreditCardValidator; + * + *$validator->add('creditcard', new CreditCardValidator(array( + * 'message' => 'The credit card number is not valid' + *))); + * + */ +class CreditCard extends Validator +{ + /** + * Executes the validation + */ + public function validate( validation, string! field) -> boolean + { + var message, label, replacePairs, value, valid; + + let value = validation->getValue(field); + + let valid = this->verifyByLuhnAlgorithm(value); + + if !valid { + let label = this->getOption("label"); + if empty label { + let label = validation->getLabel(field); + } + + let message = this->getOption("message"); + let replacePairs = [":field": label]; + if empty message { + let message = validation->getDefaultMessage("CreditCard"); + } + + validation->appendMessage(new Message(strtr(message, replacePairs), field, "CreditCard")); + return false; + } + + return true; + } + + /** + * is a simple checksum formula used to validate a variety of identification numbers + * @param string number + * @return boolean + */ + private function verifyByLuhnAlgorithm(number) -> boolean + { + array digits; + let digits = (array) str_split(number); + + var digit, position, hash = ""; + + for position, digit in digits->reversed() { + let hash .= (position % 2 ? digit * 2 : digit); + } + + var result; + let result = array_sum(str_split(hash)); + + return (result % 10 == 0); + } +} diff --git a/unit-tests/ValidationTest.php b/unit-tests/ValidationTest.php index b72739dea6c..0c5e7929ae0 100644 --- a/unit-tests/ValidationTest.php +++ b/unit-tests/ValidationTest.php @@ -27,7 +27,8 @@ Phalcon\Validation\Validator\StringLength, Phalcon\Validation\Validator\Email, Phalcon\Validation\Validator\Between, - Phalcon\Validation\Validator\Url; + Phalcon\Validation\Validator\Url, + Phalcon\Validation\Validator\CreditCard; class ValidationTest extends PHPUnit_Framework_TestCase { @@ -207,6 +208,71 @@ public function testValidationIdentical() $this->assertEquals(count($messages), 0); } + public function providerCreditCardNumberValid() + { + return array( + array('378282246310005'), //amex + array('4012888888881881'), //visa + array('38520000023237'), //dinners + array('5105105105105100'), //mastercard + array('6011000990139424') //discover + ); + } + + /** + * @dataProvider providerCreditCardNumberValid + */ + public function testValidationCreditCardValid($number) + { + $_POST = array('number' => $number); + + $validation = new Phalcon\Validation(); + + $validation->add('number', new CreditCard()); + + $messages = $validation->validate($_POST); + + $this->assertEquals(count($messages), 0); + } + + public function providerCreditCardNumberInvalid() + { + return array( + array('1203191201121221'), + array('102030102320'), + array('120120s201023'), + array('20323200003230'), + array('12010012') + ); + } + + /** + * @dataProvider providerCreditCardNumberInvalid + */ + public function testValidationCreditCardInvalid($number) + { + $_POST = array('number' => $number); + + $validation = new Phalcon\Validation(); + + $validation->add('number', new CreditCard()); + + $messages = $validation->validate($_POST); + + $expectedMessages = Phalcon\Validation\Message\Group::__set_state(array( + '_messages' => array( + 0 => Phalcon\Validation\Message::__set_state(array( + '_type' => 'CreditCard', + '_message' => 'Field number is not valid for a credit card number', + '_field' => 'number', + '_code' => '0', + )) + ) + )); + + $this->assertEquals($expectedMessages, $messages); + } + public function testValidationIdenticalCustomMessage() { $_POST = array(); From 65e76e16f6f71d6e454a53655d498c4932a25f04 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 12 Sep 2015 02:16:29 +0300 Subject: [PATCH 47/60] Implemented Phalcon\Db\Dialect\Sqlite::createTable --- phalcon/db/dialect/sqlite.zep | 118 +++++++++++++++++++++++++++++++++- 1 file changed, 115 insertions(+), 3 deletions(-) diff --git a/phalcon/db/dialect/sqlite.zep b/phalcon/db/dialect/sqlite.zep index ce9d08b0ca4..1b5cdaec036 100644 --- a/phalcon/db/dialect/sqlite.zep +++ b/phalcon/db/dialect/sqlite.zep @@ -58,7 +58,7 @@ class Sqlite extends Dialect case Column::TYPE_INTEGER: if empty columnSql { - let columnSql .= "INT"; + let columnSql .= "INTEGER"; } break; @@ -84,7 +84,7 @@ class Sqlite extends Dialect case Column::TYPE_DATETIME: if empty columnSql { - let columnSql .= "TIMESTAMP"; + let columnSql .= "DATETIME"; } break; @@ -256,7 +256,119 @@ class Sqlite extends Dialect */ public function createTable(string! tableName, string! schemaName, array! definition) -> string { - throw new Exception("Not implemented yet"); + var columns, table, temporary, options, createLines, columnLine, column, + indexes, index, indexName, indexType, references, reference, defaultValue, + referenceSql, onDelete, onUpdate, sql, hasPrimary; + + let table = this->prepareTable(tableName, schemaName); + + let temporary = false; + if fetch options, definition["options"] { + fetch temporary, options["temporary"]; + } + + if !fetch columns, definition["columns"] { + throw new Exception("The index 'columns' is required in the definition array"); + } + + /** + * Create a temporary or normal table + */ + if temporary { + let sql = "CREATE TEMPORARY TABLE " . table . " (\n\t"; + } else { + let sql = "CREATE TABLE " . table . " (\n\t"; + } + + let hasPrimary = false; + let createLines = []; + + for column in columns { + let columnLine = "`" . column->getName() . "` " . this->getColumnDefinition(column); + + /** + * Mark the column as primary key + */ + if column->isPrimary() && !hasPrimary { + let columnLine .= " PRIMARY KEY"; + let hasPrimary = true; + } + + /** + * Add an AUTOINCREMENT clause + */ + if column->isAutoIncrement() && hasPrimary { + let columnLine .= " AUTOINCREMENT"; + } + + /** + * Add a NOT NULL clause + */ + if column->isNotNull() { + let columnLine .= " NOT NULL"; + } + + /** + * Add a Default clause + */ + if column->hasDefault() { + let defaultValue = column->getDefault(); + if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") { + let columnLine .= " DEFAULT CURRENT_TIMESTAMP"; + } else { + let columnLine .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\""; + } + } + + let createLines[] = columnLine; + } + + /** + * Create related indexes + */ + if fetch indexes, definition["indexes"] { + + for index in indexes { + + let indexName = index->getName(); + let indexType = index->getType(); + + /** + * If the index name is primary we add a primary key + */ + if indexName == "PRIMARY" && !hasPrimary { + let createLines[] = "PRIMARY KEY (" . this->getColumnList(index->getColumns()) . ")"; + } elseif !empty indexType && memstr(strtoupper(indexType), "UNIQUE") { + let createLines[] = "UNIQUE (" . this->getColumnList(index->getColumns()) . ")"; + } + } + } + + /** + * Create related references + */ + if fetch references, definition["references"] { + for reference in references { + let referenceSql = "CONSTRAINT `" . reference->getName() . "` FOREIGN KEY (" . this->getColumnList(reference->getColumns()) . ")" + . " REFERENCES `" . reference->getReferencedTable() . "`(" . this->getColumnList(reference->getReferencedColumns()) . ")"; + + let onDelete = reference->getOnDelete(); + if !empty onDelete { + let referenceSql .= " ON DELETE " . onDelete; + } + + let onUpdate = reference->getOnUpdate(); + if !empty onUpdate { + let referenceSql .= " ON UPDATE " . onUpdate; + } + + let createLines[] = referenceSql; + } + } + + let sql .= join(",\n\t", createLines) . "\n)"; + + return sql; } /** From 824f5b717767f3dd9d51fe37502c321e5cc69df6 Mon Sep 17 00:00:00 2001 From: dreamsxin Date: Sat, 12 Sep 2015 07:54:24 +0800 Subject: [PATCH 48/60] Fix bug #10909 --- phalcon/acl/adapter/memory.zep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phalcon/acl/adapter/memory.zep b/phalcon/acl/adapter/memory.zep index a9677e68efa..9cc5082337b 100644 --- a/phalcon/acl/adapter/memory.zep +++ b/phalcon/acl/adapter/memory.zep @@ -381,7 +381,7 @@ class Memory extends Adapter if accessName != "*" { let accessKeyAll = roleName . "!" . resourceName . "!*"; - if isset accessList[accessKeyAll] { + if isset internalAccess[accessKeyAll] { let this->_access[accessKeyAll] = defaultAccess; } } @@ -410,7 +410,7 @@ class Memory extends Adapter * If there is no default action for all the rest actions in the resource set the * default one */ - if !isset accessList[accessKey] { + if !isset internalAccess[accessKey] { let this->_access[accessKey] = this->_defaultAccess; } } From a54c66571344e4dfb98513566cbaf1ba77d5a8d6 Mon Sep 17 00:00:00 2001 From: dreamsxin Date: Sat, 12 Sep 2015 07:57:52 +0800 Subject: [PATCH 49/60] Fix #10871 Updated method Phalcon\Http\Cookie::delete --- phalcon/http/cookie.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/http/cookie.zep b/phalcon/http/cookie.zep index b5cc087fdb5..fd61eb05a31 100644 --- a/phalcon/http/cookie.zep +++ b/phalcon/http/cookie.zep @@ -346,7 +346,7 @@ class Cookie implements CookieInterface, InjectionAwareInterface httpOnly = this->_httpOnly; let dependencyInjector = this->_dependencyInjector; - if typeof dependencyInjector != "object" { + if typeof dependencyInjector == "object" { let session = dependencyInjector->getShared("session"); if session->isStarted() { session->remove("_PHCOOKIE_" . name); From 7fb0fa8162aa099a7c40caddc590e74e9d6b5207 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 12 Sep 2015 02:52:36 +0300 Subject: [PATCH 50/60] Amended SQL dislect test * Fixed SQLite tests for DATETIME datetype * Added SQLite test for creating table * Added timestamp test for all dialects --- phalcon/db/dialect/sqlite.zep | 14 +- unit-tests/DbDialectTest.php | 504 ++++++++++++++++++++-------------- 2 files changed, 304 insertions(+), 214 deletions(-) diff --git a/phalcon/db/dialect/sqlite.zep b/phalcon/db/dialect/sqlite.zep index 1b5cdaec036..3de5c35882e 100644 --- a/phalcon/db/dialect/sqlite.zep +++ b/phalcon/db/dialect/sqlite.zep @@ -301,13 +301,6 @@ class Sqlite extends Dialect let columnLine .= " AUTOINCREMENT"; } - /** - * Add a NOT NULL clause - */ - if column->isNotNull() { - let columnLine .= " NOT NULL"; - } - /** * Add a Default clause */ @@ -320,6 +313,13 @@ class Sqlite extends Dialect } } + /** + * Add a NOT NULL clause + */ + if column->isNotNull() { + let columnLine .= " NOT NULL"; + } + let createLines[] = columnLine; } diff --git a/unit-tests/DbDialectTest.php b/unit-tests/DbDialectTest.php index 82694088d81..5988766006c 100644 --- a/unit-tests/DbDialectTest.php +++ b/unit-tests/DbDialectTest.php @@ -15,7 +15,7 @@ +------------------------------------------------------------------------+ | Authors: Andres Gutierrez | | Eduar Carvajal | - | Rack Lin | + | Rack Lin | +------------------------------------------------------------------------+ */ @@ -95,6 +95,11 @@ private function getColumns() 'notNull' => true, 'default' => 'A' )), + 'column13' => new Column("column13", array( + 'type' => Column::TYPE_TIMESTAMP, + 'notNull' => true, + 'default' => 'CURRENT_TIMESTAMP', + )), ); } @@ -272,6 +277,13 @@ public function testDbColumn() $this->assertEquals($column12->getScale(), 0); $this->assertFalse($column12->isUnsigned()); $this->assertTrue($column12->isNotNull()); + + //Timestamp column + $column13 = $columns['column13']; + $this->assertEquals($column13->getName(), 'column13'); + $this->assertEquals($column13->getType(), Column::TYPE_TIMESTAMP); + $this->assertTrue($column13->isNotNull()); + $this->assertEquals($column13->getDefault(), 'CURRENT_TIMESTAMP'); } public function testIndexes() @@ -398,6 +410,7 @@ public function testMysqlDialect() $this->assertEquals($dialect->getColumnDefinition($columns['column10']), 'INT(18) UNSIGNED'); $this->assertEquals($dialect->getColumnDefinition($columns['column11']), 'BIGINT(20) UNSIGNED'); $this->assertEquals($dialect->getColumnDefinition($columns['column12']), "ENUM(\"A\", \"B\", \"C\")"); + $this->assertEquals($dialect->getColumnDefinition($columns['column13']), 'TIMESTAMP'); //Add Columns $this->assertEquals($dialect->addColumn('table', null, $columns['column1']), 'ALTER TABLE `table` ADD `column1` VARCHAR(10)'); @@ -424,6 +437,7 @@ public function testMysqlDialect() $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column11']), 'ALTER TABLE `schema`.`table` ADD `column11` BIGINT(20) UNSIGNED'); $this->assertEquals($dialect->addColumn('table', null, $columns['column12']), "ALTER TABLE `table` ADD `column12` ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL"); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column12']), "ALTER TABLE `schema`.`table` ADD `column12` ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL"); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column13']), "ALTER TABLE `schema`.`table` ADD `column13` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL"); //Modify Columns $this->assertEquals($dialect->modifyColumn('table', null, $columns['column1']), 'ALTER TABLE `table` MODIFY `column1` VARCHAR(10)'); @@ -450,6 +464,7 @@ public function testMysqlDialect() $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column11']), 'ALTER TABLE `schema`.`table` MODIFY `column11` BIGINT(20) UNSIGNED'); $this->assertEquals($dialect->modifyColumn('table', null, $columns['column12']), "ALTER TABLE `table` MODIFY `column12` ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL"); $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column12']), "ALTER TABLE `schema`.`table` MODIFY `column12` ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL"); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column13']), "ALTER TABLE `schema`.`table` MODIFY `column13` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL"); //Drop Columns $this->assertEquals($dialect->dropColumn('table', null, 'column1'), 'ALTER TABLE `table` DROP COLUMN `column1`'); @@ -560,263 +575,269 @@ public function testMysqlDialect() 'columns' => array( $columns['column11'], $columns['column12'], + $columns['column13'], ) ); $expected = "CREATE TABLE `table` (\n"; $expected .= " `column11` BIGINT(20) UNSIGNED,\n"; - $expected .= " `column12` ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL\n"; + $expected .= " `column12` ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL,\n"; + $expected .= " `column13` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL\n"; $expected .= ")"; $this->assertEquals($dialect->createTable('table', null, $definition), $expected); } - public function testPostgresqlDialect() - { + public function testPostgresqlDialect() + { + $dialect = new \Phalcon\Db\Dialect\Postgresql(); - $dialect = new \Phalcon\Db\Dialect\Postgresql(); + $columns = $dialect->getColumnList(array('column1', 'column2', 'column3')); + $this->assertEquals($columns, '"column1", "column2", "column3"'); - $columns = $dialect->getColumnList(array('column1', 'column2', 'column3')); - $this->assertEquals($columns, "\"column1\", \"column2\", \"column3\""); - - $columns = $this->getColumns(); - - //Column definitions - $this->assertEquals($dialect->getColumnDefinition($columns['column1']), 'CHARACTER VARYING(10)'); - $this->assertEquals($dialect->getColumnDefinition($columns['column2']), 'INT'); - $this->assertEquals($dialect->getColumnDefinition($columns['column3']), 'NUMERIC(10,2)'); - $this->assertEquals($dialect->getColumnDefinition($columns['column4']), 'CHARACTER(100)'); - $this->assertEquals($dialect->getColumnDefinition($columns['column5']), 'DATE'); - $this->assertEquals($dialect->getColumnDefinition($columns['column6']), 'TIMESTAMP'); - $this->assertEquals($dialect->getColumnDefinition($columns['column7']), 'TEXT'); - $this->assertEquals($dialect->getColumnDefinition($columns['column8']), 'FLOAT'); - $this->assertEquals($dialect->getColumnDefinition($columns['column9']), 'CHARACTER VARYING(10)'); - $this->assertEquals($dialect->getColumnDefinition($columns['column10']), 'INT'); - $this->assertEquals($dialect->getColumnDefinition($columns['column11']), 'BIGINT'); - $this->assertEquals($dialect->getColumnDefinition($columns['column12']), "ENUM(\"A\", \"B\", \"C\")"); - - //Add Columns - $this->assertEquals($dialect->addColumn('table', null, $columns['column1']), 'ALTER TABLE "table" ADD COLUMN "column1" CHARACTER VARYING(10)'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column1']), 'ALTER TABLE "schema"."table" ADD COLUMN "column1" CHARACTER VARYING(10)'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column2']), 'ALTER TABLE "table" ADD COLUMN "column2" INT'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column2']), 'ALTER TABLE "schema"."table" ADD COLUMN "column2" INT'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column3']), 'ALTER TABLE "table" ADD COLUMN "column3" NUMERIC(10,2) NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column3']), 'ALTER TABLE "schema"."table" ADD COLUMN "column3" NUMERIC(10,2) NOT NULL'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column4']), 'ALTER TABLE "table" ADD COLUMN "column4" CHARACTER(100) NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column4']), 'ALTER TABLE "schema"."table" ADD COLUMN "column4" CHARACTER(100) NOT NULL'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column5']), 'ALTER TABLE "table" ADD COLUMN "column5" DATE NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column5']), 'ALTER TABLE "schema"."table" ADD COLUMN "column5" DATE NOT NULL'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column6']), 'ALTER TABLE "table" ADD COLUMN "column6" TIMESTAMP NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column6']), 'ALTER TABLE "schema"."table" ADD COLUMN "column6" TIMESTAMP NOT NULL'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column7']), 'ALTER TABLE "table" ADD COLUMN "column7" TEXT NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column7']), 'ALTER TABLE "schema"."table" ADD COLUMN "column7" TEXT NOT NULL'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column8']), 'ALTER TABLE "table" ADD COLUMN "column8" FLOAT NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column8']), 'ALTER TABLE "schema"."table" ADD COLUMN "column8" FLOAT NOT NULL'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column9']), 'ALTER TABLE "table" ADD COLUMN "column9" CHARACTER VARYING(10) DEFAULT "column9"'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column9']), 'ALTER TABLE "schema"."table" ADD COLUMN "column9" CHARACTER VARYING(10) DEFAULT "column9"'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column10']), 'ALTER TABLE "table" ADD COLUMN "column10" INT DEFAULT "10"'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column10']), 'ALTER TABLE "schema"."table" ADD COLUMN "column10" INT DEFAULT "10"'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column11']), 'ALTER TABLE "table" ADD COLUMN "column11" BIGINT'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column11']), 'ALTER TABLE "schema"."table" ADD COLUMN "column11" BIGINT'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column12']), 'ALTER TABLE "table" ADD COLUMN "column12" ENUM("A", "B", "C") DEFAULT "A" NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column12']), 'ALTER TABLE "schema"."table" ADD COLUMN "column12" ENUM("A", "B", "C") DEFAULT "A" NOT NULL'); - - //Modify Columns - - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column1'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column1";ALTER TABLE "table" ALTER COLUMN "column1" TYPE CHARACTER VARYING(10);'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column1'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column1";ALTER TABLE "schema"."table" ALTER COLUMN "column1" TYPE CHARACTER VARYING(10);'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column2'],$columns['column1']), 'ALTER TABLE "table" RENAME COLUMN "column1" TO "column2";ALTER TABLE "table" ALTER COLUMN "column2" TYPE INT;'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column2'],$columns['column1']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column1" TO "column2";ALTER TABLE "schema"."table" ALTER COLUMN "column2" TYPE INT;'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column3'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column3";ALTER TABLE "table" ALTER COLUMN "column3" TYPE NUMERIC(10,2);ALTER TABLE "table" ALTER COLUMN "column3" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column3'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column3";ALTER TABLE "schema"."table" ALTER COLUMN "column3" TYPE NUMERIC(10,2);ALTER TABLE "schema"."table" ALTER COLUMN "column3" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column4'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column4";ALTER TABLE "table" ALTER COLUMN "column4" TYPE CHARACTER(100);ALTER TABLE "table" ALTER COLUMN "column4" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column4'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column4";ALTER TABLE "schema"."table" ALTER COLUMN "column4" TYPE CHARACTER(100);ALTER TABLE "schema"."table" ALTER COLUMN "column4" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column5'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column5";ALTER TABLE "table" ALTER COLUMN "column5" TYPE DATE;ALTER TABLE "table" ALTER COLUMN "column5" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column5'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column5";ALTER TABLE "schema"."table" ALTER COLUMN "column5" TYPE DATE;ALTER TABLE "schema"."table" ALTER COLUMN "column5" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column6'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column6";ALTER TABLE "table" ALTER COLUMN "column6" TYPE TIMESTAMP;ALTER TABLE "table" ALTER COLUMN "column6" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column6'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column6";ALTER TABLE "schema"."table" ALTER COLUMN "column6" TYPE TIMESTAMP;ALTER TABLE "schema"."table" ALTER COLUMN "column6" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column7'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column7";ALTER TABLE "table" ALTER COLUMN "column7" TYPE TEXT;ALTER TABLE "table" ALTER COLUMN "column7" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column7'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column7";ALTER TABLE "schema"."table" ALTER COLUMN "column7" TYPE TEXT;ALTER TABLE "schema"."table" ALTER COLUMN "column7" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column8'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column8";ALTER TABLE "table" ALTER COLUMN "column8" TYPE FLOAT;ALTER TABLE "table" ALTER COLUMN "column8" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column8'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column8";ALTER TABLE "schema"."table" ALTER COLUMN "column8" TYPE FLOAT;ALTER TABLE "schema"."table" ALTER COLUMN "column8" SET NOT NULL;'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column9'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column9";ALTER TABLE "table" ALTER COLUMN "column9" TYPE CHARACTER VARYING(10);ALTER TABLE "table" ALTER COLUMN "column9" SET DEFAULT "column9"'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column9'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column9";ALTER TABLE "schema"."table" ALTER COLUMN "column9" TYPE CHARACTER VARYING(10);ALTER TABLE "schema"."table" ALTER COLUMN "column9" SET DEFAULT "column9"'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column10'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column10";ALTER TABLE "table" ALTER COLUMN "column10" SET DEFAULT "10"'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column10'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column10";ALTER TABLE "schema"."table" ALTER COLUMN "column10" SET DEFAULT "10"'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column11'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column11";'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column11'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column11";'); - $this->assertEquals($dialect->modifyColumn('table', null, $columns['column12'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column12";ALTER TABLE "table" ALTER COLUMN "column12" SET NOT NULL;ALTER TABLE "table" ALTER COLUMN "column12" SET DEFAULT "A"'); - $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column12'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column12";ALTER TABLE "schema"."table" ALTER COLUMN "column12" SET NOT NULL;ALTER TABLE "schema"."table" ALTER COLUMN "column12" SET DEFAULT "A"'); - - //Drop Columns - $this->assertEquals($dialect->dropColumn('table', null, 'column1'), 'ALTER TABLE "table" DROP COLUMN "column1"'); - $this->assertEquals($dialect->dropColumn('table', 'schema', 'column1'), 'ALTER TABLE "schema"."table" DROP COLUMN "column1"'); - - //Drop Tables - $this->assertEquals($dialect->dropTable('table', null, true), 'DROP TABLE IF EXISTS "table"'); - $this->assertEquals($dialect->dropTable('table', 'schema', true), 'DROP TABLE IF EXISTS "schema"."table"'); - $this->assertEquals($dialect->dropTable('table', null, false), 'DROP TABLE "table"'); - $this->assertEquals($dialect->dropTable('table', 'schema', false), 'DROP TABLE "schema"."table"'); - - $indexes = $this->getIndexes(); - - //Add Index - $this->assertEquals($dialect->addIndex('table', null, $indexes['index1']), 'CREATE INDEX "index1" ON "table" ("column1")'); - $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['index1']), 'CREATE INDEX "index1" ON "schema"."table" ("column1")'); - $this->assertEquals($dialect->addIndex('table', null, $indexes['index2']), 'CREATE INDEX "index2" ON "table" ("column1", "column2")'); - $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['index2']), 'CREATE INDEX "index2" ON "schema"."table" ("column1", "column2")'); - $this->assertEquals($dialect->addIndex('table', null, $indexes['PRIMARY']), 'ALTER TABLE "table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); - $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['PRIMARY']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); - $this->assertEquals($dialect->addIndex('table', null, $indexes['index4']), 'CREATE UNIQUE INDEX "index4" ON "table" ("column4")'); - $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['index4']), 'CREATE UNIQUE INDEX "index4" ON "schema"."table" ("column4")'); - - //Drop Index - $this->assertEquals($dialect->dropIndex('table', null, 'index1'), 'DROP INDEX "index1"'); - $this->assertEquals($dialect->dropIndex('table', 'schema', 'index1'), 'DROP INDEX "index1"'); - - //Add Primary - $this->assertEquals($dialect->addPrimaryKey('table', null, $indexes['PRIMARY']), 'ALTER TABLE "table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); - $this->assertEquals($dialect->addPrimaryKey('table', 'schema', $indexes['PRIMARY']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); - - //Drop Primary Key - $this->assertEquals($dialect->dropPrimaryKey('table', null), 'ALTER TABLE "table" DROP CONSTRAINT "PRIMARY"'); - $this->assertEquals($dialect->dropPrimaryKey('table', 'schema'), 'ALTER TABLE "schema"."table" DROP CONSTRAINT "PRIMARY"'); - - $references = $this->getReferences(); - - //Add Foreign Key - $this->assertEquals($dialect->addForeignKey('table', null, $references['fk1']), 'ALTER TABLE "table" ADD CONSTRAINT "fk1" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2")'); - $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk1']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk1" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2")'); - $this->assertEquals($dialect->addForeignKey('table', null, $references['fk2']), 'ALTER TABLE "table" ADD CONSTRAINT "fk2" FOREIGN KEY ("column3", "column4") REFERENCES "ref_table" ("column5", "column6")'); - $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk2']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk2" FOREIGN KEY ("column3", "column4") REFERENCES "ref_table" ("column5", "column6")'); - - $this->assertEquals($dialect->addForeignKey('table', null, $references['fk3']), 'ALTER TABLE "table" ADD CONSTRAINT "fk3" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE'); - $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk3']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk3" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE'); - $this->assertEquals($dialect->addForeignKey('table', null, $references['fk4']), 'ALTER TABLE "table" ADD CONSTRAINT "fk4" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON UPDATE SET NULL'); - $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk4']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk4" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON UPDATE SET NULL'); - $this->assertEquals($dialect->addForeignKey('table', null, $references['fk5']), 'ALTER TABLE "table" ADD CONSTRAINT "fk5" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE ON UPDATE NO ACTION'); - $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk5']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk5" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE ON UPDATE NO ACTION'); - - $this->assertEquals($dialect->dropForeignKey('table', null, 'fk1'), 'ALTER TABLE "table" DROP CONSTRAINT "fk1"'); - $this->assertEquals($dialect->dropForeignKey('table', 'schema', 'fk1'), 'ALTER TABLE "schema"."table" DROP CONSTRAINT "fk1"'); - - //Create tables - $definition = array( - 'columns' => array( - $columns['column1'], - $columns['column2'], - ) - ); + $columns = $this->getColumns(); - $expected = "CREATE TABLE \"table\" (\n"; - $expected .= " \"column1\" CHARACTER VARYING(10),\n"; - $expected .= " \"column2\" INT\n"; - $expected .= ");"; - $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + //Column definitions + $this->assertEquals($dialect->getColumnDefinition($columns['column1']), 'CHARACTER VARYING(10)'); + $this->assertEquals($dialect->getColumnDefinition($columns['column2']), 'INT'); + $this->assertEquals($dialect->getColumnDefinition($columns['column3']), 'NUMERIC(10,2)'); + $this->assertEquals($dialect->getColumnDefinition($columns['column4']), 'CHARACTER(100)'); + $this->assertEquals($dialect->getColumnDefinition($columns['column5']), 'DATE'); + $this->assertEquals($dialect->getColumnDefinition($columns['column6']), 'TIMESTAMP'); + $this->assertEquals($dialect->getColumnDefinition($columns['column7']), 'TEXT'); + $this->assertEquals($dialect->getColumnDefinition($columns['column8']), 'FLOAT'); + $this->assertEquals($dialect->getColumnDefinition($columns['column9']), 'CHARACTER VARYING(10)'); + $this->assertEquals($dialect->getColumnDefinition($columns['column10']), 'INT'); + $this->assertEquals($dialect->getColumnDefinition($columns['column11']), 'BIGINT'); + $this->assertEquals($dialect->getColumnDefinition($columns['column12']), "ENUM(\"A\", \"B\", \"C\")"); + $this->assertEquals($dialect->getColumnDefinition($columns['column13']), "TIMESTAMP"); - $definition = array( - 'columns' => array( - $columns['column2'], - $columns['column3'], - $columns['column1'], - ), - 'indexes' => array( - $indexes['PRIMARY'] - ) - ); + //Add Columns + $this->assertEquals($dialect->addColumn('table', null, $columns['column1']), 'ALTER TABLE "table" ADD COLUMN "column1" CHARACTER VARYING(10)'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column1']), 'ALTER TABLE "schema"."table" ADD COLUMN "column1" CHARACTER VARYING(10)'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column2']), 'ALTER TABLE "table" ADD COLUMN "column2" INT'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column2']), 'ALTER TABLE "schema"."table" ADD COLUMN "column2" INT'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column3']), 'ALTER TABLE "table" ADD COLUMN "column3" NUMERIC(10,2) NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column3']), 'ALTER TABLE "schema"."table" ADD COLUMN "column3" NUMERIC(10,2) NOT NULL'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column4']), 'ALTER TABLE "table" ADD COLUMN "column4" CHARACTER(100) NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column4']), 'ALTER TABLE "schema"."table" ADD COLUMN "column4" CHARACTER(100) NOT NULL'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column5']), 'ALTER TABLE "table" ADD COLUMN "column5" DATE NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column5']), 'ALTER TABLE "schema"."table" ADD COLUMN "column5" DATE NOT NULL'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column6']), 'ALTER TABLE "table" ADD COLUMN "column6" TIMESTAMP NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column6']), 'ALTER TABLE "schema"."table" ADD COLUMN "column6" TIMESTAMP NOT NULL'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column7']), 'ALTER TABLE "table" ADD COLUMN "column7" TEXT NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column7']), 'ALTER TABLE "schema"."table" ADD COLUMN "column7" TEXT NOT NULL'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column8']), 'ALTER TABLE "table" ADD COLUMN "column8" FLOAT NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column8']), 'ALTER TABLE "schema"."table" ADD COLUMN "column8" FLOAT NOT NULL'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column9']), 'ALTER TABLE "table" ADD COLUMN "column9" CHARACTER VARYING(10) DEFAULT "column9"'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column9']), 'ALTER TABLE "schema"."table" ADD COLUMN "column9" CHARACTER VARYING(10) DEFAULT "column9"'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column10']), 'ALTER TABLE "table" ADD COLUMN "column10" INT DEFAULT "10"'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column10']), 'ALTER TABLE "schema"."table" ADD COLUMN "column10" INT DEFAULT "10"'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column11']), 'ALTER TABLE "table" ADD COLUMN "column11" BIGINT'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column11']), 'ALTER TABLE "schema"."table" ADD COLUMN "column11" BIGINT'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column12']), 'ALTER TABLE "table" ADD COLUMN "column12" ENUM("A", "B", "C") DEFAULT "A" NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column12']), 'ALTER TABLE "schema"."table" ADD COLUMN "column12" ENUM("A", "B", "C") DEFAULT "A" NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column13']), 'ALTER TABLE "schema"."table" ADD COLUMN "column13" TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL'); - $expected = "CREATE TABLE \"table\" (\n"; - $expected .= " \"column2\" INT,\n"; - $expected .= " \"column3\" NUMERIC(10,2) NOT NULL,\n"; - $expected .= " \"column1\" CHARACTER VARYING(10),\n"; - $expected .= " CONSTRAINT \"PRIMARY\" PRIMARY KEY (\"column3\")\n"; - $expected .= ");"; - $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + //Modify Columns + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column1'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column1";ALTER TABLE "table" ALTER COLUMN "column1" TYPE CHARACTER VARYING(10);'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column1'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column1";ALTER TABLE "schema"."table" ALTER COLUMN "column1" TYPE CHARACTER VARYING(10);'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column2'],$columns['column1']), 'ALTER TABLE "table" RENAME COLUMN "column1" TO "column2";ALTER TABLE "table" ALTER COLUMN "column2" TYPE INT;'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column2'],$columns['column1']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column1" TO "column2";ALTER TABLE "schema"."table" ALTER COLUMN "column2" TYPE INT;'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column3'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column3";ALTER TABLE "table" ALTER COLUMN "column3" TYPE NUMERIC(10,2);ALTER TABLE "table" ALTER COLUMN "column3" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column3'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column3";ALTER TABLE "schema"."table" ALTER COLUMN "column3" TYPE NUMERIC(10,2);ALTER TABLE "schema"."table" ALTER COLUMN "column3" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column4'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column4";ALTER TABLE "table" ALTER COLUMN "column4" TYPE CHARACTER(100);ALTER TABLE "table" ALTER COLUMN "column4" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column4'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column4";ALTER TABLE "schema"."table" ALTER COLUMN "column4" TYPE CHARACTER(100);ALTER TABLE "schema"."table" ALTER COLUMN "column4" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column5'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column5";ALTER TABLE "table" ALTER COLUMN "column5" TYPE DATE;ALTER TABLE "table" ALTER COLUMN "column5" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column5'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column5";ALTER TABLE "schema"."table" ALTER COLUMN "column5" TYPE DATE;ALTER TABLE "schema"."table" ALTER COLUMN "column5" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column6'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column6";ALTER TABLE "table" ALTER COLUMN "column6" TYPE TIMESTAMP;ALTER TABLE "table" ALTER COLUMN "column6" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column6'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column6";ALTER TABLE "schema"."table" ALTER COLUMN "column6" TYPE TIMESTAMP;ALTER TABLE "schema"."table" ALTER COLUMN "column6" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column7'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column7";ALTER TABLE "table" ALTER COLUMN "column7" TYPE TEXT;ALTER TABLE "table" ALTER COLUMN "column7" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column7'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column7";ALTER TABLE "schema"."table" ALTER COLUMN "column7" TYPE TEXT;ALTER TABLE "schema"."table" ALTER COLUMN "column7" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column8'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column8";ALTER TABLE "table" ALTER COLUMN "column8" TYPE FLOAT;ALTER TABLE "table" ALTER COLUMN "column8" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column8'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column8";ALTER TABLE "schema"."table" ALTER COLUMN "column8" TYPE FLOAT;ALTER TABLE "schema"."table" ALTER COLUMN "column8" SET NOT NULL;'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column9'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column9";ALTER TABLE "table" ALTER COLUMN "column9" TYPE CHARACTER VARYING(10);ALTER TABLE "table" ALTER COLUMN "column9" SET DEFAULT "column9"'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column9'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column9";ALTER TABLE "schema"."table" ALTER COLUMN "column9" TYPE CHARACTER VARYING(10);ALTER TABLE "schema"."table" ALTER COLUMN "column9" SET DEFAULT "column9"'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column10'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column10";ALTER TABLE "table" ALTER COLUMN "column10" SET DEFAULT "10"'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column10'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column10";ALTER TABLE "schema"."table" ALTER COLUMN "column10" SET DEFAULT "10"'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column11'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column11";'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column11'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column11";'); + $this->assertEquals($dialect->modifyColumn('table', null, $columns['column12'],$columns['column2']), 'ALTER TABLE "table" RENAME COLUMN "column2" TO "column12";ALTER TABLE "table" ALTER COLUMN "column12" SET NOT NULL;ALTER TABLE "table" ALTER COLUMN "column12" SET DEFAULT "A"'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column12'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column12";ALTER TABLE "schema"."table" ALTER COLUMN "column12" SET NOT NULL;ALTER TABLE "schema"."table" ALTER COLUMN "column12" SET DEFAULT "A"'); + $this->assertEquals($dialect->modifyColumn('table', 'schema', $columns['column13'],$columns['column2']), 'ALTER TABLE "schema"."table" RENAME COLUMN "column2" TO "column13";ALTER TABLE "schema"."table" ALTER COLUMN "column13" TYPE TIMESTAMP;ALTER TABLE "schema"."table" ALTER COLUMN "column13" SET NOT NULL;ALTER TABLE "schema"."table" ALTER COLUMN "column13" SET DEFAULT CURRENT_TIMESTAMP'); - $definition['references'] = array( - $references['fk3'] - ); + //Drop Columns + $this->assertEquals($dialect->dropColumn('table', null, 'column1'), 'ALTER TABLE "table" DROP COLUMN "column1"'); + $this->assertEquals($dialect->dropColumn('table', 'schema', 'column1'), 'ALTER TABLE "schema"."table" DROP COLUMN "column1"'); - $expected = "CREATE TABLE \"table\" (\n"; - $expected .= " \"column2\" INT,\n"; - $expected .= " \"column3\" NUMERIC(10,2) NOT NULL,\n"; - $expected .= " \"column1\" CHARACTER VARYING(10),\n"; - $expected .= " CONSTRAINT \"PRIMARY\" PRIMARY KEY (\"column3\"),\n"; - $expected .= " CONSTRAINT \"fk3\" FOREIGN KEY (\"column1\") REFERENCES \"ref_table\" (\"column2\") ON DELETE CASCADE\n"; - $expected .= ");"; - $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + //Drop Tables + $this->assertEquals($dialect->dropTable('table', null, true), 'DROP TABLE IF EXISTS "table"'); + $this->assertEquals($dialect->dropTable('table', 'schema', true), 'DROP TABLE IF EXISTS "schema"."table"'); + $this->assertEquals($dialect->dropTable('table', null, false), 'DROP TABLE "table"'); + $this->assertEquals($dialect->dropTable('table', 'schema', false), 'DROP TABLE "schema"."table"'); - $definition = array( - 'columns' => array( - $columns['column9'], - $columns['column10'], - ) - ); + $indexes = $this->getIndexes(); - $expected = "CREATE TABLE \"table\" (\n"; - $expected .= " \"column9\" CHARACTER VARYING(10) DEFAULT \"column9\",\n"; - $expected .= " \"column10\" INT DEFAULT \"10\"\n"; - $expected .= ");"; - $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + //Add Index + $this->assertEquals($dialect->addIndex('table', null, $indexes['index1']), 'CREATE INDEX "index1" ON "table" ("column1")'); + $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['index1']), 'CREATE INDEX "index1" ON "schema"."table" ("column1")'); + $this->assertEquals($dialect->addIndex('table', null, $indexes['index2']), 'CREATE INDEX "index2" ON "table" ("column1", "column2")'); + $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['index2']), 'CREATE INDEX "index2" ON "schema"."table" ("column1", "column2")'); + $this->assertEquals($dialect->addIndex('table', null, $indexes['PRIMARY']), 'ALTER TABLE "table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); + $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['PRIMARY']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); + $this->assertEquals($dialect->addIndex('table', null, $indexes['index4']), 'CREATE UNIQUE INDEX "index4" ON "table" ("column4")'); + $this->assertEquals($dialect->addIndex('table', 'schema', $indexes['index4']), 'CREATE UNIQUE INDEX "index4" ON "schema"."table" ("column4")'); - $definition = array( - 'columns' => array( - $columns['column11'], - $columns['column12'], - ) - ); + //Drop Index + $this->assertEquals($dialect->dropIndex('table', null, 'index1'), 'DROP INDEX "index1"'); + $this->assertEquals($dialect->dropIndex('table', 'schema', 'index1'), 'DROP INDEX "index1"'); + + //Add Primary + $this->assertEquals($dialect->addPrimaryKey('table', null, $indexes['PRIMARY']), 'ALTER TABLE "table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); + $this->assertEquals($dialect->addPrimaryKey('table', 'schema', $indexes['PRIMARY']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("column3")'); + + //Drop Primary Key + $this->assertEquals($dialect->dropPrimaryKey('table', null), 'ALTER TABLE "table" DROP CONSTRAINT "PRIMARY"'); + $this->assertEquals($dialect->dropPrimaryKey('table', 'schema'), 'ALTER TABLE "schema"."table" DROP CONSTRAINT "PRIMARY"'); + + $references = $this->getReferences(); + + //Add Foreign Key + $this->assertEquals($dialect->addForeignKey('table', null, $references['fk1']), 'ALTER TABLE "table" ADD CONSTRAINT "fk1" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2")'); + $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk1']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk1" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2")'); + $this->assertEquals($dialect->addForeignKey('table', null, $references['fk2']), 'ALTER TABLE "table" ADD CONSTRAINT "fk2" FOREIGN KEY ("column3", "column4") REFERENCES "ref_table" ("column5", "column6")'); + $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk2']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk2" FOREIGN KEY ("column3", "column4") REFERENCES "ref_table" ("column5", "column6")'); + + $this->assertEquals($dialect->addForeignKey('table', null, $references['fk3']), 'ALTER TABLE "table" ADD CONSTRAINT "fk3" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE'); + $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk3']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk3" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE'); + $this->assertEquals($dialect->addForeignKey('table', null, $references['fk4']), 'ALTER TABLE "table" ADD CONSTRAINT "fk4" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON UPDATE SET NULL'); + $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk4']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk4" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON UPDATE SET NULL'); + $this->assertEquals($dialect->addForeignKey('table', null, $references['fk5']), 'ALTER TABLE "table" ADD CONSTRAINT "fk5" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE ON UPDATE NO ACTION'); + $this->assertEquals($dialect->addForeignKey('table', 'schema', $references['fk5']), 'ALTER TABLE "schema"."table" ADD CONSTRAINT "fk5" FOREIGN KEY ("column1") REFERENCES "ref_table" ("column2") ON DELETE CASCADE ON UPDATE NO ACTION'); + + $this->assertEquals($dialect->dropForeignKey('table', null, 'fk1'), 'ALTER TABLE "table" DROP CONSTRAINT "fk1"'); + $this->assertEquals($dialect->dropForeignKey('table', 'schema', 'fk1'), 'ALTER TABLE "schema"."table" DROP CONSTRAINT "fk1"'); + + //Create tables + $definition = array( + 'columns' => array( + $columns['column1'], + $columns['column2'], + ) + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " \"column1\" CHARACTER VARYING(10),\n"; + $expected .= " \"column2\" INT\n"; + $expected .= ");"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + + $definition = array( + 'columns' => array( + $columns['column2'], + $columns['column3'], + $columns['column1'], + ), + 'indexes' => array( + $indexes['PRIMARY'] + ) + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " \"column2\" INT,\n"; + $expected .= " \"column3\" NUMERIC(10,2) NOT NULL,\n"; + $expected .= " \"column1\" CHARACTER VARYING(10),\n"; + $expected .= " CONSTRAINT \"PRIMARY\" PRIMARY KEY (\"column3\")\n"; + $expected .= ");"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + + $definition['references'] = array( + $references['fk3'] + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " \"column2\" INT,\n"; + $expected .= " \"column3\" NUMERIC(10,2) NOT NULL,\n"; + $expected .= " \"column1\" CHARACTER VARYING(10),\n"; + $expected .= " CONSTRAINT \"PRIMARY\" PRIMARY KEY (\"column3\"),\n"; + $expected .= " CONSTRAINT \"fk3\" FOREIGN KEY (\"column1\") REFERENCES \"ref_table\" (\"column2\") ON DELETE CASCADE\n"; + $expected .= ");"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + + $definition = array( + 'columns' => array( + $columns['column9'], + $columns['column10'], + ) + ); - $expected = "CREATE TABLE \"table\" (\n"; - $expected .= " \"column11\" BIGINT,\n"; - $expected .= " \"column12\" ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL\n"; - $expected .= ");"; - $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " \"column9\" CHARACTER VARYING(10) DEFAULT \"column9\",\n"; + $expected .= " \"column10\" INT DEFAULT \"10\"\n"; + $expected .= ");"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); - } + $definition = array( + 'columns' => array( + $columns['column11'], + $columns['column12'], + $columns['column13'], + ) + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " \"column11\" BIGINT,\n"; + $expected .= " \"column12\" ENUM(\"A\", \"B\", \"C\") DEFAULT \"A\" NOT NULL,\n"; + $expected .= " \"column13\" TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL\n"; + $expected .= ");"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + } public function testSQLiteDialect() { - $dialect = new \Phalcon\Db\Dialect\Sqlite(); - $columns = $dialect->getColumnList(array('column1', 'column2', 'column3')); - $this->assertEquals($columns, '"column1", "column2", "column3"'); + $columns = $dialect->getColumnList(array('column1', 'column2', 'column3', 'column13')); + $this->assertEquals($columns, '"column1", "column2", "column3", "column13"'); $columns = $this->getColumns(); //Column definitions $this->assertEquals($dialect->getColumnDefinition($columns['column1']), 'VARCHAR(10)'); - $this->assertEquals($dialect->getColumnDefinition($columns['column2']), 'INT'); + $this->assertEquals($dialect->getColumnDefinition($columns['column2']), 'INTEGER'); $this->assertEquals($dialect->getColumnDefinition($columns['column3']), 'NUMERIC(10,2)'); $this->assertEquals($dialect->getColumnDefinition($columns['column4']), 'CHARACTER(100)'); $this->assertEquals($dialect->getColumnDefinition($columns['column5']), 'DATE'); - $this->assertEquals($dialect->getColumnDefinition($columns['column6']), 'TIMESTAMP'); + $this->assertEquals($dialect->getColumnDefinition($columns['column6']), 'DATETIME'); $this->assertEquals($dialect->getColumnDefinition($columns['column7']), 'TEXT'); $this->assertEquals($dialect->getColumnDefinition($columns['column8']), 'FLOAT'); $this->assertEquals($dialect->getColumnDefinition($columns['column9']), 'VARCHAR(10)'); - $this->assertEquals($dialect->getColumnDefinition($columns['column10']), 'INT'); + $this->assertEquals($dialect->getColumnDefinition($columns['column10']), 'INTEGER'); + $this->assertEquals($dialect->getColumnDefinition($columns['column13']), 'TIMESTAMP'); //Add Columns $this->assertEquals($dialect->addColumn('table', null, $columns['column1']), 'ALTER TABLE "table" ADD COLUMN "column1" VARCHAR(10)'); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column1']), 'ALTER TABLE "schema"."table" ADD COLUMN "column1" VARCHAR(10)'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column2']), 'ALTER TABLE "table" ADD COLUMN "column2" INT'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column2']), 'ALTER TABLE "schema"."table" ADD COLUMN "column2" INT'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column2']), 'ALTER TABLE "table" ADD COLUMN "column2" INTEGER'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column2']), 'ALTER TABLE "schema"."table" ADD COLUMN "column2" INTEGER'); $this->assertEquals($dialect->addColumn('table', null, $columns['column3']), 'ALTER TABLE "table" ADD COLUMN "column3" NUMERIC(10,2) NOT NULL'); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column3']), 'ALTER TABLE "schema"."table" ADD COLUMN "column3" NUMERIC(10,2) NOT NULL'); $this->assertEquals($dialect->addColumn('table', null, $columns['column4']), 'ALTER TABLE "table" ADD COLUMN "column4" CHARACTER(100) NOT NULL'); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column4']), 'ALTER TABLE "schema"."table" ADD COLUMN "column4" CHARACTER(100) NOT NULL'); $this->assertEquals($dialect->addColumn('table', null, $columns['column5']), 'ALTER TABLE "table" ADD COLUMN "column5" DATE NOT NULL'); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column5']), 'ALTER TABLE "schema"."table" ADD COLUMN "column5" DATE NOT NULL'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column6']), 'ALTER TABLE "table" ADD COLUMN "column6" TIMESTAMP NOT NULL'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column6']), 'ALTER TABLE "schema"."table" ADD COLUMN "column6" TIMESTAMP NOT NULL'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column6']), 'ALTER TABLE "table" ADD COLUMN "column6" DATETIME NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column6']), 'ALTER TABLE "schema"."table" ADD COLUMN "column6" DATETIME NOT NULL'); $this->assertEquals($dialect->addColumn('table', null, $columns['column7']), 'ALTER TABLE "table" ADD COLUMN "column7" TEXT NOT NULL'); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column7']), 'ALTER TABLE "schema"."table" ADD COLUMN "column7" TEXT NOT NULL'); $this->assertEquals($dialect->addColumn('table', null, $columns['column8']), 'ALTER TABLE "table" ADD COLUMN "column8" FLOAT NOT NULL'); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column8']), 'ALTER TABLE "schema"."table" ADD COLUMN "column8" FLOAT NOT NULL'); $this->assertEquals($dialect->addColumn('table', null, $columns['column9']), 'ALTER TABLE "table" ADD COLUMN "column9" VARCHAR(10) DEFAULT "column9"'); $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column9']), 'ALTER TABLE "schema"."table" ADD COLUMN "column9" VARCHAR(10) DEFAULT "column9"'); - $this->assertEquals($dialect->addColumn('table', null, $columns['column10']), 'ALTER TABLE "table" ADD COLUMN "column10" INT DEFAULT "10"'); - $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column10']), 'ALTER TABLE "schema"."table" ADD COLUMN "column10" INT DEFAULT "10"'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column10']), 'ALTER TABLE "table" ADD COLUMN "column10" INTEGER DEFAULT "10"'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column10']), 'ALTER TABLE "schema"."table" ADD COLUMN "column10" INTEGER DEFAULT "10"'); + $this->assertEquals($dialect->addColumn('table', null, $columns['column13']), 'ALTER TABLE "table" ADD COLUMN "column13" TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL'); + $this->assertEquals($dialect->addColumn('table', 'schema', $columns['column13']), 'ALTER TABLE "schema"."table" ADD COLUMN "column13" TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL'); //Modify Columns try { @@ -904,7 +925,76 @@ public function testSQLiteDialect() } //Create tables - // Not implemented yet + $definition = array( + 'columns' => array( + $columns['column1'], + $columns['column2'], + ) + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " `column1` VARCHAR(10),\n"; + $expected .= " `column2` INTEGER\n"; + $expected .= ")"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + + $definition = array( + 'columns' => array( + $columns['column2'], + $columns['column3'], + $columns['column1'], + ), + 'indexes' => array( + $indexes['PRIMARY'] + ) + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " `column2` INTEGER,\n"; + $expected .= " `column3` NUMERIC(10,2) NOT NULL,\n"; + $expected .= " `column1` VARCHAR(10),\n"; + $expected .= " PRIMARY KEY (\"column3\")\n"; + $expected .= ")"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + + $definition['references'] = array( + $references['fk3'] + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " `column2` INTEGER,\n"; + $expected .= " `column3` NUMERIC(10,2) NOT NULL,\n"; + $expected .= " `column1` VARCHAR(10),\n"; + $expected .= " PRIMARY KEY (\"column3\"),\n"; + $expected .= " CONSTRAINT `fk3` FOREIGN KEY (\"column1\") REFERENCES `ref_table`(\"column2\") ON DELETE CASCADE\n"; + $expected .= ")"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + + $definition = array( + 'columns' => array( + $columns['column9'], + $columns['column10'], + ) + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " `column9` VARCHAR(10) DEFAULT \"column9\",\n"; + $expected .= " `column10` INTEGER DEFAULT \"10\"\n"; + $expected .= ")"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); + + $definition = array( + 'columns' => array( + $columns['column11'], + $columns['column13'], + ) + ); + + $expected = "CREATE TABLE \"table\" (\n"; + $expected .= " `column11` BIGINT,\n"; + $expected .= " `column13` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL\n"; + $expected .= ")"; + $this->assertEquals($dialect->createTable('table', null, $definition), $expected); } public function testViews() @@ -944,9 +1034,9 @@ public function testViews() $this->assertEquals($dialect->dropView('test_view', null, true), 'DROP VIEW IF EXISTS "test_view"'); $this->assertEquals($dialect->dropView('test_view', 'schema', false), 'DROP VIEW "schema"."test_view"'); $this->assertEquals($dialect->dropView('test_view', 'schema', true), 'DROP VIEW IF EXISTS "schema"."test_view"'); - + $this->assertEquals($dialect->listViews(), 'SELECT viewname AS view_name FROM pg_views WHERE schemaname = \'public\' ORDER BY view_name'); - + // SQLite $dialect = new \Phalcon\Db\Dialect\Sqlite(); From 0d44215507d387717f6eb4f147a72e5f2be9d129 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 14 Sep 2015 00:41:10 +0300 Subject: [PATCH 51/60] Update Composer config See https://getcomposer.org/doc/04-schema.md --- composer.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2e6adefb236..aa79b8bd518 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,19 @@ { "name": "phalcon/cphalcon", "description": "Web framework delivered as a C-extension for PHP", - "keywords": ["extension"], + "keywords": [ + "extension", + "phalcon", + "framework", + "high load" + ], "require": { "php": "~5.3" }, "require-dev": { "phpunit/phpunit": "3.7.*" }, - "license": "MIT", + "license": "BSD-3-Clause", "authors": [ { "name": "Phalcon Team", @@ -18,5 +23,12 @@ "name": "Contributors", "homepage": "https://github.com/phalcon/cphalcon/graphs/contributors" } - ] + ], + "support": { + "issues": "https://github.com/phalcon/cphalcon/issues", + "source": "https://github.com/phalcon/cphalcon", + "forum": "https://forum.phalconphp.com/", + "docs": "http://docs.phalconphp.com/", + "irc": "irc://irc.freenode.org/phalconphp" + } } From dec930a35c6f43c5d43f966c44a9026f25ce8652 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Mon, 14 Sep 2015 07:49:35 -0500 Subject: [PATCH 52/60] Regenerating build [ci skip] --- build/32bits/phalcon.zep.c | 3989 +++++++++++++++++++----------------- build/32bits/phalcon.zep.h | 39 +- build/32bits/php_phalcon.h | 2 +- build/64bits/phalcon.zep.c | 3989 +++++++++++++++++++----------------- build/64bits/phalcon.zep.h | 39 +- build/64bits/php_phalcon.h | 2 +- build/safe/phalcon.zep.c | 3989 +++++++++++++++++++----------------- build/safe/phalcon.zep.h | 39 +- build/safe/php_phalcon.h | 2 +- 9 files changed, 6480 insertions(+), 5610 deletions(-) diff --git a/build/32bits/phalcon.zep.c b/build/32bits/phalcon.zep.c index e17ef2cdf8d..10333e680e4 100644 --- a/build/32bits/phalcon.zep.c +++ b/build/32bits/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 441, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -18298,15 +18298,15 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 1) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _4, _6); @@ -18315,11 +18315,11 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 2) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -18340,16 +18340,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { _7 = 1; } i = _8; - ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 109); + ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 110); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, _2); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, _2); zephir_check_call_status(); zephir_concat_self(&padding, _4 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); zephir_concat_self(&padding, _6 TSRMLS_CC); break; @@ -18357,15 +18357,15 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 4) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0x80); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 131, _4, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 132, _4, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _2, _6); @@ -18374,11 +18374,11 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 5) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -18387,7 +18387,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZVAL_STRING(&_1, " ", 0); ZEPHIR_SINIT_VAR(_11); ZVAL_LONG(&_11, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, &_1, &_11); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, &_1, &_11); zephir_check_call_status(); break; } @@ -18475,18 +18475,18 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_VAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_INIT_VAR(padding); ZEPHIR_CONCAT_VV(padding, _10, last); @@ -18507,18 +18507,18 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (length - paddingSize)); @@ -18537,7 +18537,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); paddingSize = zephir_get_intval(_5); break; @@ -18693,7 +18693,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); if (ZEPHIR_LT_LONG(ivSize, zephir_fast_strlen_ev(encryptKey))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Size of key is too large for this algorithm", "phalcon/crypt.zep", 320); @@ -18701,14 +18701,14 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 134, ivSize, &_0); + ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 135, ivSize, &_0); zephir_check_call_status(); if (Z_TYPE_P(iv) != IS_STRING) { ZEPHIR_CALL_FUNCTION(&_1, "strval", NULL, 21, iv); zephir_check_call_status(); ZEPHIR_CPY_WRT(iv, _1); } - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); if (Z_TYPE_P(blockSize) != IS_LONG) { _2 = zephir_get_intval(blockSize); @@ -18731,7 +18731,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { } else { ZEPHIR_CPY_WRT(padded, text); } - ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 136, cipher, encryptKey, padded, mode, iv); + ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 137, cipher, encryptKey, padded, mode, iv); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, iv, _1); RETURN_MM(); @@ -18782,7 +18782,7 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); ZEPHIR_INIT_VAR(keySize); ZVAL_LONG(keySize, zephir_fast_strlen_ev(decryptKey)); @@ -18802,9 +18802,9 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZVAL_LONG(&_1, 0); ZEPHIR_INIT_VAR(_2); zephir_substr(_2, text, 0 , zephir_get_intval(ivSize), 0); - ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 137, cipher, decryptKey, _0, mode, _2); + ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 138, cipher, decryptKey, _0, mode, _2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); ZEPHIR_OBS_VAR(paddingType); zephir_read_property_this(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -18861,7 +18861,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (safe == 1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 114, _0); + ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 115, _0); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "+/", 0); @@ -18873,7 +18873,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { } ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -18923,13 +18923,13 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZVAL_STRING(&_1, "+/", 0); ZEPHIR_CALL_FUNCTION(&_2, "strtr", NULL, 54, text, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 115, _2); + ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 116, _2); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _3, key); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 115, text); + ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 116, text); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _2, key); zephir_check_call_status(); @@ -18943,7 +18943,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableCiphers) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 138); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 139); zephir_check_call_status(); RETURN_MM(); @@ -18955,7 +18955,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableModes) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 139); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 140); zephir_check_call_status(); RETURN_MM(); @@ -19241,7 +19241,7 @@ static PHP_METHOD(Phalcon_Debug, listenExceptions) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _0); zephir_check_call_status(); RETURN_THIS(); @@ -19261,7 +19261,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtLowSeverity", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 150, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 151, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 2, 0 TSRMLS_CC); @@ -19269,7 +19269,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_2, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _2); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _2); zephir_check_call_status(); RETURN_THIS(); @@ -19304,7 +19304,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, 151); + ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 152); zephir_check_call_status(); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_VAR(_2); @@ -19344,7 +19344,7 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { ZVAL_LONG(&_3, 2); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "utf-8", 0); - ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 152, _0, &_3, &_4); + ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 153, _0, &_3, &_4); zephir_check_call_status(); RETURN_MM(); } @@ -19395,7 +19395,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 153, v); + ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); zephir_check_call_status(); if (zephir_is_true(_4)) { ZEPHIR_INIT_NVAR(varDump); @@ -19412,7 +19412,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { if (Z_TYPE_P(v) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_8); ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 154, v, _8); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); @@ -19453,7 +19453,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 153, variable); + ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); zephir_check_call_status(); if (zephir_is_true(_0)) { if (Z_TYPE_P(variable) == IS_BOOL) { @@ -19487,7 +19487,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 154, variable); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); RETURN_MM(); @@ -19508,7 +19508,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -19527,7 +19527,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -19619,9 +19619,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { } else { ZEPHIR_INIT_VAR(classReflection); object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -19654,9 +19654,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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -19717,7 +19717,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -19800,7 +19800,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_LONG(&_23, 2); ZEPHIR_SINIT_NVAR(_25); ZVAL_STRING(&_25, "UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 152, _21, &_23, &_25); + ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 153, _21, &_23, &_25); zephir_check_call_status(); zephir_concat_self(&html, _8 TSRMLS_CC); } @@ -19824,7 +19824,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -19833,7 +19833,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19858,10 +19858,10 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } _0 = zephir_fetch_static_property_ce(phalcon_debug_ce, SL("_isActive") TSRMLS_CC); @@ -19925,7 +19925,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -19944,7 +19944,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, "
"); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, ""); @@ -19970,7 +19970,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", _13, "
", keyRequest, "", value, "
", keyRequest, "", _13, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 165); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -19985,7 +19985,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); @@ -20120,7 +20120,7 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20153,7 +20153,7 @@ static PHP_METHOD(Phalcon_Di, setShared) { object_init_ex(service, phalcon_di_service_ce); ZEPHIR_SINIT_VAR(_0); ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, &_0); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20221,7 +20221,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20398,9 +20398,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 65, parameters); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 66, parameters); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20411,9 +20411,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20425,9 +20425,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20679,7 +20679,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_VAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 68, _1); zephir_check_call_status(); if (zephir_array_isset(services, possibleService)) { if (zephir_fast_count_int(arguments TSRMLS_CC)) { @@ -20699,7 +20699,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_NVAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 68, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", NULL, 0, _4, definition); zephir_check_call_status(); @@ -21748,13 +21748,13 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); zephir_check_call_status(); RETURN_MM(); @@ -21776,11 +21776,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21800,7 +21800,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -21821,7 +21821,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21839,7 +21839,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -21858,7 +21858,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -21877,7 +21877,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); zephir_check_call_status(); RETURN_MM(); @@ -22156,16 +22156,16 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22175,14 +22175,14 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22192,7 +22192,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -22215,13 +22215,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } @@ -22230,7 +22230,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); zephir_check_call_status(); RETURN_MM(); } @@ -23011,7 +23011,7 @@ static PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -23035,7 +23035,7 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -23143,7 +23143,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23214,7 +23214,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23272,7 +23272,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 392, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 393, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 394, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 393, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 395, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 396, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 397, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 398, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 399, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,9 +23858,9 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 400, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 114, _2); + ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); zephir_filter_alphanum(safeBytes, _4); if (!(zephir_is_true(safeBytes))) { @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 401, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23973,11 +23973,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZVAL_STRING(&_5, "%02s", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, workFactor); - ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 188, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 189, &_5, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 401, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 401, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,9 +24081,9 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 400, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 114, _2); + ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); zephir_filter_alphanum(safeBytes, _3); ZEPHIR_INIT_NVAR(_1); @@ -24123,9 +24123,9 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 400, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 114, token); + ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); ZEPHIR_CPY_WRT(token, _1); ZEPHIR_INIT_NVAR(_0); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 402, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25512,7 +25512,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25532,7 +25532,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -26036,20 +26036,20 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 129, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 414, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "ASCII//TRANSLIT", 0); - ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 371, &_0, &_3, text); + ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 373, &_0, &_3, text); zephir_check_call_status(); zephir_get_strval(text, _5); } @@ -26107,12 +26107,12 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_CPY_WRT(friendly, _11); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 128, &_3); + ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 129, &_3); zephir_check_call_status(); if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 414, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 418, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26649,7 +26649,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26697,7 +26697,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26742,24 +26742,24 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 372, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 374, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 421, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 421, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 422, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 423, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 423, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 424, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27549,7 +27549,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 0); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 7); + ZVAL_LONG(_0, 8); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -27618,7 +27618,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 440, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27652,11 +27652,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -27685,7 +27685,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 440, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); zephir_check_call_status(); break; } @@ -28177,7 +28177,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, 78, role); + ZEPHIR_CALL_METHOD(NULL, roleObject, "__construct", NULL, 79, role); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rolesNames"), PH_NOISY_CC); @@ -28243,7 +28243,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { ; zephir_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(deepInheritName, _7); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 79, roleName, deepInheritName); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 80, roleName, deepInheritName); zephir_check_call_status(); } } @@ -28320,7 +28320,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, 80, resourceName); + ZEPHIR_CALL_METHOD(NULL, resourceObject, "__construct", NULL, 81, resourceName); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_resourcesNames"), PH_NOISY_CC); @@ -29186,7 +29186,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { ) { ZEPHIR_GET_HVALUE(item, _3); zephir_array_fetch_string(&_4, item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 85, _4); + ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 86, _4); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, item, SS("name"), 0 TSRMLS_CC)) { @@ -29199,7 +29199,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, 86, expr); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 87, expr); zephir_check_call_status(); RETURN_MM(); } @@ -29391,7 +29391,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { ZEPHIR_GET_HVALUE(annotationData, _3); ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 86, annotationData); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 87, annotationData); zephir_check_call_status(); zephir_array_append(&annotations, _4, PH_SEPARATE, "phalcon/annotations/collection.zep", 66); } @@ -31107,15 +31107,15 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotations); ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 87); + ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 88); zephir_check_call_status(); if (Z_TYPE_P(comment) == IS_STRING) { ZEPHIR_INIT_VAR(classAnnotations); - ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 89); + ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 90); zephir_check_call_status(); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(classAnnotations, comment, _0, _1 TSRMLS_CC); zephir_check_call_status(); @@ -31123,7 +31123,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, 90); + ZEPHIR_CALL_METHOD(&properties, reflection, "getproperties", NULL, 91); zephir_check_call_status(); if (zephir_fast_count_int(properties TSRMLS_CC)) { line = 1; @@ -31139,7 +31139,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(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_5); ZVAL_LONG(_5, line); @@ -31156,7 +31156,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, 91); + ZEPHIR_CALL_METHOD(&methods, reflection, "getmethods", NULL, 92); zephir_check_call_status(); if (zephir_fast_count_int(methods TSRMLS_CC)) { ZEPHIR_INIT_VAR(annotationsMethods); @@ -32520,7 +32520,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, 81, _0); + ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 82, _0); zephir_check_call_status(); RETURN_MM(); @@ -32554,7 +32554,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_CONCAT_SVV(_2, "_PHAN", _1, key); zephir_fast_strtolower(_0, _2); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 82, _0, data, _3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 83, _0, data, _3); zephir_check_call_status(); RETURN_MM(); @@ -32809,10 +32809,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, 83, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 84, _0); zephir_check_call_status(); if (Z_TYPE_P(serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 74, serialized); + ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 75, serialized); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_OBJECT) { RETURN_CCTOR(data); @@ -32848,9 +32848,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, 73, data); + ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 74, data); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _0, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _0, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -33064,7 +33064,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 92, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33100,7 +33100,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33155,7 +33155,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33191,7 +33191,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33474,7 +33474,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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } @@ -33830,7 +33830,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, 92, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -33861,7 +33861,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, 93, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -33905,7 +33905,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, 94, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -33936,7 +33936,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, 95, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -33980,7 +33980,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, 97, resource); + ZEPHIR_CALL_METHOD(NULL, collection, "add", NULL, 98, resource); zephir_check_call_status(); RETURN_THIS(); @@ -34019,7 +34019,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, 98, code); + ZEPHIR_CALL_METHOD(NULL, collection, "addinline", NULL, 99, code); zephir_check_call_status(); RETURN_THIS(); @@ -34256,7 +34256,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 99, completeTargetPath); + ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 100, completeTargetPath); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_0); @@ -35071,7 +35071,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealSourcePath) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_VV(_1, basePath, sourcePath); - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 62, _1); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, _1); zephir_check_call_status(); RETURN_MM(); } @@ -35107,7 +35107,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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } @@ -35316,7 +35316,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35376,7 +35376,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Js, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35444,7 +35444,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 100, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 101, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35495,7 +35495,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Js, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 100, _1, path, local, filter, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 101, _1, path, local, filter, attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -36089,7 +36089,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCA", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(cachedContent)) { RETURN_MM_NULL(); @@ -36162,7 +36162,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, lastKey, preparedContent, ttl); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, lastKey, preparedContent, ttl); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); zephir_check_call_status(); @@ -36203,11 +36203,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, increment) { if ((zephir_function_exists_ex(SS("apc_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 101, prefixedKey, _1); + ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 102, prefixedKey, _1); zephir_check_call_status(); RETURN_CCTOR(result); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_NVAR(result); @@ -36248,11 +36248,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement) { if ((zephir_function_exists_ex(SS("apc_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 102, lastKey, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 103, lastKey, _1); zephir_check_call_status(); RETURN_MM(); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, lastKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, lastKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_VAR(result); @@ -36293,7 +36293,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "_PHCA", _0, keyName); - ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 103, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 104, _1); zephir_check_call_status(); RETURN_MM(); @@ -36386,7 +36386,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCA", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 104, lastKey); + ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 105, lastKey); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(_1)) { RETURN_MM_BOOL(1); @@ -36427,7 +36427,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, flush) { ZEPHIR_CPY_WRT(item, (*ZEPHIR_TMP_ITERATOR_PTR)); } zephir_array_fetch_string(&_4, item, SL("key"), PH_NOISY | PH_READONLY, "phalcon/cache/backend/apc.zep", 264 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 103, _4); + ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 104, _4); zephir_check_call_status(); } _0->funcs->dtor(_0 TSRMLS_CC); @@ -36504,7 +36504,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, __construct) { return; } } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -36696,7 +36696,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, 106, cacheFile); + ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 107, cacheFile); zephir_check_call_status(); RETURN_MM(); } @@ -36729,7 +36729,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_INIT_VAR(_2); object_init_ex(_2, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -36985,7 +36985,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, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -37007,7 +37007,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { _4 = zephir_start_with(key, prefix, NULL); } if (_4) { - ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 106, cacheFile); + ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 107, cacheFile); zephir_check_call_status(); if (!(zephir_is_true(_5))) { RETURN_MM_BOOL(0); @@ -37115,7 +37115,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, __construct) { ZVAL_STRING(_1, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_1, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37679,7 +37679,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, __construct) { ZVAL_STRING(_0, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38500,7 +38500,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, serialize) { ZEPHIR_OBS_VAR(_1); zephir_read_property_this(&_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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -38516,7 +38516,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, unserialize) { - ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 75, 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); @@ -38581,7 +38581,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", 79); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38681,7 +38681,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, 108); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&document, _3, "findone", NULL, 0, conditions); zephir_check_call_status(); @@ -38770,7 +38770,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_0); zephir_time(_0); @@ -38829,7 +38829,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -38839,7 +38839,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, 109); + ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 110); 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); @@ -38885,7 +38885,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { zephir_time(_0); zephir_array_update_string(&_2, SL("$gt"), &_0, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 1, 0 TSRMLS_CC); @@ -38943,7 +38943,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, exists) { ZEPHIR_CONCAT_VV(lastKey, _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 2, 0 TSRMLS_CC); @@ -38970,7 +38970,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, gc) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -39005,7 +39005,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -39056,7 +39056,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -39095,11 +39095,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, flush) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "remove", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 109); + ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 110); zephir_check_call_status(); if (zephir_safe_mod_long_long(zephir_get_intval(_1), 100 TSRMLS_CC) == 0) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "gc", NULL, 0); @@ -39183,7 +39183,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, __construct) { ZVAL_STRING(_0, "_PHCR", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39201,10 +39201,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { @@ -39743,7 +39741,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, __construct) { ZVAL_STRING(_0, "_PHCX", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39768,7 +39766,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCX", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 83, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 84, prefixedKey); zephir_check_call_status(); if (!(zephir_is_true(cachedContent))) { RETURN_MM_NULL(); @@ -39846,10 +39844,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_CPY_WRT(tt1, lifetime); } if (zephir_is_numeric(cachedContent)) { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, cachedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, cachedContent, tt1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, preparedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, preparedContent, tt1); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); @@ -39871,14 +39869,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 169); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 85, specialKey, keys); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -39904,14 +39902,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, delete) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 199); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39948,7 +39946,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { } ZEPHIR_INIT_VAR(retval); array_init(retval); - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -39997,7 +39995,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCX", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 110, lastKey); + ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 111, lastKey); zephir_check_call_status(); RETURN_MM(); } @@ -40036,14 +40034,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, increment) { if ((zephir_function_exists_ex(SS("xcache_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 111, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 112, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -40081,14 +40079,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, decrement) { if ((zephir_function_exists_ex(SS("xcache_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 112, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 113, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -40113,7 +40111,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 350); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -40125,10 +40123,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_GET_HMKEY(key, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); zephir_array_unset(&keys, key, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 113, key); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 114, key); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); } RETURN_MM_BOOL(1); @@ -40226,7 +40224,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, data); zephir_check_call_status(); RETURN_MM(); @@ -40242,7 +40240,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 115, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 116, data); zephir_check_call_status(); RETURN_MM(); @@ -40339,7 +40337,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, data); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, data); zephir_check_call_status(); RETURN_MM(); @@ -40355,7 +40353,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 74, data); + ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 75, data); zephir_check_call_status(); RETURN_MM(); @@ -40450,7 +40448,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 116, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 117, data); zephir_check_call_status(); RETURN_MM(); @@ -40466,7 +40464,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 117, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 118, data); zephir_check_call_status(); RETURN_MM(); @@ -40731,7 +40729,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, start) { ZEPHIR_MM_GROW(); zephir_update_property_this(this_ptr, SL("_buffering"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -40746,7 +40744,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, getContent) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 119); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 120); zephir_check_call_status(); RETURN_MM(); } @@ -40763,7 +40761,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, stop) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_buffering"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -41153,7 +41151,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (_0) { Z_SET_ISREF_P(arguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 121, arguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 122, arguments); Z_UNSET_ISREF_P(arguments); zephir_check_call_status(); } @@ -41168,7 +41166,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_5, "--", 0); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 2); - ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 122, arg, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 123, arg, &_5, &_6); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_5); @@ -41205,7 +41203,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_12, "-", 0); ZEPHIR_SINIT_NVAR(_13); ZVAL_LONG(&_13, 1); - ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 122, arg, &_12, &_13); + ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 123, arg, &_12, &_13); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_15, 0)) { ZEPHIR_SINIT_NVAR(_12); @@ -41223,21 +41221,21 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (str) { ZEPHIR_INIT_NVAR(_9); - ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 123); + ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 124); zephir_check_call_status(); zephir_fast_join(_9, _7, args TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_arguments"), _9 TSRMLS_CC); } else { if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("task"), &_15, PH_COPY | PH_SEPARATE); } if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("action"), &_7, PH_COPY | PH_SEPARATE); @@ -41295,7 +41293,7 @@ static PHP_METHOD(Phalcon_Cli_Dispatcher, __construct) { ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_options"), _0 TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 124); + ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 125); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -41530,7 +41528,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_1, SS("task"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 125, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 126, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/cli/router.zep", 90); @@ -41543,7 +41541,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 125, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 126, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/cli/router.zep", 96); @@ -41830,7 +41828,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEPHIR_INIT_VAR(strParams); zephir_substr(strParams, _15, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); if (zephir_is_true(strParams)) { - ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 123); + ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 124); zephir_check_call_status(); ZEPHIR_INIT_NVAR(params); zephir_fast_explode(params, _17, strParams, LONG_MAX TSRMLS_CC); @@ -41886,7 +41884,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, 125, pattern, paths); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 126, pattern, paths); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), route TSRMLS_CC); RETURN_CCTOR(route); @@ -42043,7 +42041,15 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Task) { static PHP_METHOD(Phalcon_Cli_Task, __construct) { + int ZEPHIR_LAST_CALL_STATUS; + + ZEPHIR_MM_GROW(); + if ((zephir_method_exists_ex(this_ptr, SS("onconstruct") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_CALL_METHOD(NULL, this_ptr, "onconstruct", NULL, 0); + zephir_check_call_status(); + } + ZEPHIR_MM_RESTORE(); } @@ -42916,7 +42922,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { } - ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 126, filePath, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 127, filePath, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(iniConfig)) { ZEPHIR_INIT_VAR(_0); @@ -43013,7 +43019,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { zephir_substr(_3, path, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); zephir_get_strval(path, _3); zephir_create_array(return_value, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 127, path, value); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 128, path, value); zephir_check_call_status(); zephir_array_update_zval(&return_value, key, &_4, PH_COPY); RETURN_MM(); @@ -43185,10 +43191,10 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "yaml", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 129, &_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", 62); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_config_exception_ce, "Yaml extension not loaded", "phalcon/config/adapter/yaml.zep", 71); return; } if (!ZEPHIR_IS_STRING_IDENTICAL(callbacks, "")) { @@ -43197,11 +43203,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, ndocs); Z_SET_ISREF_P(_3); - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath, _2, _3, callbacks); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath, _2, _3, callbacks); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath); zephir_check_call_status(); } if (ZEPHIR_IS_FALSE_IDENTICAL(yamlConfig)) { @@ -43213,7 +43219,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_CONCAT_SVS(_5, "Configuration file ", _3, " can't be loaded"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 72 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 81 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -45519,6 +45525,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Column) { zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_JSONB"), 16 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_TIMESTAMP"), 17 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_db_column_ce, SL("BIND_PARAM_NULL"), 0 TSRMLS_CC); zend_declare_class_constant_long(phalcon_db_column_ce, SL("BIND_PARAM_INT"), 1 TSRMLS_CC); @@ -45623,7 +45631,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { if (zephir_array_isset_string_fetch(&type, definition, SS("type"), 0 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 292); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 297); return; } ZEPHIR_OBS_VAR(typeReference); @@ -45657,7 +45665,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_scale"), scale TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 338); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 343); return; } while(0); @@ -45684,7 +45692,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_autoIncrement"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 378); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 383); return; } while(0); @@ -45776,7 +45784,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_columnName"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(columnName); if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_name"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 484); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 489); return; } } @@ -45805,7 +45813,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { zephir_array_update_string(&definition, SL("size"), &size, PH_COPY | PH_SEPARATE); } if (zephir_array_isset_string_fetch(&scale, data, SS("_scale"), 1 TSRMLS_CC)) { - zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 518 TSRMLS_CC); + zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 523 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_1, 0) || ZEPHIR_IS_LONG(_1, 7) || ZEPHIR_IS_LONG(_1, 3) || ZEPHIR_IS_LONG(_1, 9) || ZEPHIR_IS_LONG(_1, 14)) { zephir_array_update_string(&definition, SL("scale"), &scale, PH_COPY | PH_SEPARATE); @@ -45836,12 +45844,22 @@ 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, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 141, columnName, definition); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Db_Column, hasDefault) { + + zval *_0; + + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_default"), PH_NOISY_CC); + RETURN_BOOL(Z_TYPE_P(_0) != IS_NULL); + +} + @@ -45896,6 +45914,8 @@ ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getBindType); ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getDefault); +ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, hasDefault); + ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, __set_state); @@ -48018,19 +48038,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, 145, sqlStatement); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlstatement", NULL, 146, sqlStatement); zephir_check_call_status(); if (Z_TYPE_P(sqlVariables) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 146, sqlVariables); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 147, sqlVariables); zephir_check_call_status(); } if (Z_TYPE_P(sqlBindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 147, sqlBindTypes); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 148, sqlBindTypes); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_0); zephir_microtime(_0, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 148, _0); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 149, _0); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforestartprofile") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "beforestartprofile", NULL, 0, activeProfile); @@ -49461,7 +49481,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 329); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 337); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -49523,13 +49543,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49539,7 +49565,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 196)) { + if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 204)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 9); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49549,7 +49575,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 206)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 214)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49559,7 +49585,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 216)) { + if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 224)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49568,7 +49594,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 225)) { + if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 233)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 10); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49577,19 +49603,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 12); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 13); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 11); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49600,7 +49626,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 265)) { + if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 273)) { ZEPHIR_INIT_NVAR(matches); ZVAL_NULL(matches); ZEPHIR_INIT_NVAR(_8); @@ -49620,7 +49646,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } } } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 280)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 288)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -49628,30 +49654,30 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 311 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 310 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 317 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 325 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 326 TSRMLS_CC); zephir_array_update_string(&definition, SL("default"), &_14, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 324 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 332 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 325); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 333); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); @@ -49707,7 +49733,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, connect) { ZEPHIR_OBS_NVAR(descriptor); zephir_read_property_this(&descriptor, this_ptr, SL("_descriptor"), PH_NOISY_CC); } - ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_OBS_VAR(startup); if (zephir_array_isset_string_fetch(&startup, descriptor, SS("startup"), 0 TSRMLS_CC)) { @@ -49831,7 +49857,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { } if (zephir_memnstr_str(columnType, SL("TIMESTAMP"), "phalcon/db/adapter/pdo/oracle.zep", 144)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 0); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } @@ -49881,7 +49907,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/oracle.zep", 194 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _8, PH_SEPARATE, "phalcon/db/adapter/pdo/oracle.zep", 199); ZEPHIR_CPY_WRT(oldColumn, columnName); @@ -50016,7 +50042,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, connect) { zephir_array_update_string(&descriptor, SL("password"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 142, descriptor); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(schema))) { ZEPHIR_INIT_VAR(sql); @@ -50060,7 +50086,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 318); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 326); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -50124,7 +50150,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 182)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50136,14 +50168,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 195)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 203)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 4); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50152,14 +50184,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 204)) { + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 212)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 213)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 221)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50170,7 +50202,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 224)) { + if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 232)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50182,19 +50214,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_9, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 16); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 15); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50208,7 +50240,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 266)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 274)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -50216,22 +50248,22 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 282 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 290 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 289 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 297 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 311 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 312 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); ZVAL_STRING(_8, "/^'|'?::[[:alnum:][:space:]]+$/", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_9); @@ -50241,7 +50273,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_check_temp_parameter(_9); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_15, PH_COPY | PH_SEPARATE); - zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 305 TSRMLS_CC); + zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_18); ZVAL_STRING(&_18, "null", 0); ZEPHIR_CALL_FUNCTION(&_19, "strcasecmp", &_20, 19, _17, &_18); @@ -50250,12 +50282,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("default"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 321 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 314); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 322); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); @@ -50303,11 +50335,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 329); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 337); return; } if (!(zephir_fast_count_int(columns TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 333); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 341); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dialect"), PH_NOISY_CC); @@ -50321,7 +50353,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 349); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 357); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -50347,13 +50379,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 361 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } else { - zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 356 TSRMLS_CC); + zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 364 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _6, ";"); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _4); @@ -50414,7 +50446,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 381); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 389); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -50440,7 +50472,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 386 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 394 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -50448,7 +50480,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } else { ZEPHIR_INIT_VAR(_6); if (!(ZEPHIR_IS_EMPTY(sql))) { - zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 390 TSRMLS_CC); + zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 398 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _7, ";"); ZEPHIR_CALL_METHOD(&_6, this_ptr, "execute", NULL, 0, _4); @@ -50546,7 +50578,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, connect) { return; } zephir_array_update_string(&descriptor, SL("dsn"), &dbname, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -50652,7 +50684,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { } if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/sqlite.zep", 166)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 1); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } @@ -50766,7 +50798,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_array_fetch_long(&columnName, field, 1, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 286 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/sqlite.zep", 287); ZEPHIR_CPY_WRT(oldColumn, columnName); @@ -51005,11 +51037,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_MySQL) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { - zephir_fcall_cache_entry *_9 = NULL; - HashTable *_6; - HashPosition _5; + zephir_fcall_cache_entry *_10 = NULL; + HashTable *_7; + HashPosition _6; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *value = NULL, *valueSql, **_7, _8 = zval_used_for_init, _10 = zval_used_for_init, *_11; + zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *value = NULL, *valueSql, **_8, _9 = zval_used_for_init, _11 = zval_used_for_init, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -51083,6 +51115,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHAR") TSRMLS_CC); @@ -51204,7 +51242,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized MySQL data type", "phalcon/db/dialect/mysql.zep", 191); + ZEPHIR_INIT_VAR(_5); + object_init_ex(_5, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized MySQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_5, "phalcon/db/dialect/mysql.zep", 197 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -51213,36 +51260,36 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_6, &_5, 0, 0, "phalcon/db/dialect/mysql.zep", 202); + zephir_is_iterable(typeValues, &_7, &_6, 0, 0, "phalcon/db/dialect/mysql.zep", 208); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zephir_hash_move_forward_ex(_7, &_6) ) { - ZEPHIR_GET_HVALUE(value, _7); - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_9, 142, value, &_8); + ZEPHIR_GET_HVALUE(value, _8); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_10, 143, value, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_4); + ZEPHIR_CONCAT_SVS(_4, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _4 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_8); - ZVAL_LONG(&_8, 0); - ZEPHIR_SINIT_VAR(_10); - ZVAL_LONG(&_10, -2); - ZEPHIR_INIT_VAR(_11); - zephir_substr(_11, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(", _11, ")"); - zephir_concat_self(&columnSql, _4 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_LONG(&_9, 0); + ZEPHIR_SINIT_VAR(_11); + ZVAL_LONG(&_11, -2); + ZEPHIR_INIT_NVAR(_5); + zephir_substr(_5, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(", _5, ")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_9, 142, typeValues, &_10); + ZEPHIR_SINIT_NVAR(_11); + ZVAL_STRING(&_11, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_3, "addcslashes", &_10, 143, typeValues, &_11); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(\"", _2, "\")"); + ZEPHIR_CONCAT_SVS(_4, "(\"", _3, "\")"); zephir_concat_self(&columnSql, _4 TSRMLS_CC); } } @@ -51255,7 +51302,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51293,33 +51340,41 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " ADD `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 229)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_4, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_8)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); zephir_check_call_status(); if (zephir_is_true(afterPosition)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SV(_5, " AFTER ", afterPosition); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_7); + ZEPHIR_CONCAT_SV(_7, " AFTER ", afterPosition); + zephir_concat_self(&sql, _7 TSRMLS_CC); } } RETURN_CCTOR(sql); @@ -51329,7 +51384,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51370,20 +51425,28 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " MODIFY `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -51759,12 +51822,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL, *_13 = NULL; - HashTable *_1, *_11, *_17; - HashPosition _0, _10, _16; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL, *_17 = NULL; + HashTable *_1, *_15, *_19; + HashPosition _0, _14, _18; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, **_12, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, **_16, **_20, *_21; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51798,7 +51861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 354); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -51818,7 +51881,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 413); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -51830,42 +51893,50 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { zephir_concat_self_str(&columnLine, SL(" AUTO_INCREMENT") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 407); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_11, &_10, 0, 0, "phalcon/db/dialect/mysql.zep", 435); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(index, _12); + ZEPHIR_GET_HVALUE(index, _16); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -51873,79 +51944,79 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_13, 44, _4); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_17, 44, _4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); ZEPHIR_CONCAT_SVS(indexSql, "PRIMARY KEY (", _3, ")"); } else { ZEPHIR_INIT_NVAR(indexSql); if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_14, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", &_13, 44, _14); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_17, 44, _9); zephir_check_call_status(); - ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _7, ")"); + ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_15, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", &_13, 44, _15); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _14, ")"); + ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 433); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_17, &_16, 0, 0, "phalcon/db/dialect/mysql.zep", 457); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); for ( - ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS - ; zephir_hash_move_forward_ex(_17, &_16) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(reference, _18); + ZEPHIR_GET_HVALUE(reference, _20); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_13, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_17, 44, _6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", &_13, 44, _19); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _14, "`(", _15, ")"); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _9, "`(", _12, ")"); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 455); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); } } - ZEPHIR_INIT_VAR(_21); - zephir_fast_join_str(_21, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _21, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ", _3); - zephir_concat_self(&sql, _20 TSRMLS_CC); + ZEPHIR_INIT_VAR(_21); + ZEPHIR_CONCAT_SV(_21, " ", _3); + zephir_concat_self(&sql, _21 TSRMLS_CC); } RETURN_CCTOR(sql); @@ -52035,7 +52106,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 493); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -52397,7 +52468,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 633); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -52405,7 +52476,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 642); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(tableCollation); @@ -52413,13 +52484,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 652 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 652); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 653); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { @@ -52518,7 +52589,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL; + zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL, *_0, *_1 = NULL, *_2; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -52557,6 +52628,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TIMESTAMP", 1); break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { ZEPHIR_INIT_NVAR(columnSql); ZEPHIR_CONCAT_SVS(columnSql, "CHAR(", size, ")"); @@ -52579,7 +52656,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TINYINT(1)", 1); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized Oracle data type", "phalcon/db/dialect/oracle.zep", 119); + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "Unrecognized Oracle data type at column ", _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _2); + zephir_check_call_status(); + zephir_throw_exception_debug(_0, "phalcon/db/dialect/oracle.zep", 125 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } while(0); @@ -52619,7 +52705,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 130); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 136); return; } @@ -52659,7 +52745,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 138); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 144); return; } @@ -52697,7 +52783,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_get_strval(columnName, columnName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 146); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 152); return; } @@ -52734,7 +52820,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 154); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 160); return; } @@ -52782,7 +52868,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 163); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 169); return; } @@ -52799,7 +52885,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addPrimaryKey) { zephir_get_strval(schemaName, schemaName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 171); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 177); return; } @@ -52836,7 +52922,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 179); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 185); return; } @@ -52873,7 +52959,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 187); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 193); return; } @@ -52921,7 +53007,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 195); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 201); return; } @@ -52961,7 +53047,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 203); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; } @@ -53054,7 +53140,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 230); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 236); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -53144,14 +53230,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "' AND OWNER='", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "'"); RETURN_MM(); @@ -53177,7 +53263,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, listViews) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT VIEW_NAME FROM ALL_VIEWS WHERE OWNER='", _0, "' ORDER BY VIEW_NAME"); RETURN_MM(); @@ -53216,14 +53302,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "' AND OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "'"); RETURN_MM(); @@ -53260,14 +53346,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' AND TC.OWNER = '", _2, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); @@ -53293,7 +53379,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, listTables) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TABLE_NAME, OWNER FROM ALL_TABLES WHERE OWNER='", _0, "' ORDER BY OWNER, TABLE_NAME"); RETURN_MM(); @@ -53332,14 +53418,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "' AND IC.INDEX_OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "'"); RETURN_MM(); @@ -53378,15 +53464,15 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { ZEPHIR_INIT_VAR(sql); ZVAL_STRING(sql, "SELECT AC.TABLE_NAME, CC.COLUMN_NAME, AC.CONSTRAINT_NAME, AC.R_OWNER, RCC.TABLE_NAME R_TABLE_NAME, RCC.COLUMN_NAME R_COLUMN_NAME FROM ALL_CONSTRAINTS AC JOIN ALL_CONS_COLUMNS CC ON AC.CONSTRAINT_NAME = CC.CONSTRAINT_NAME JOIN ALL_CONS_COLUMNS RCC ON AC.R_OWNER = RCC.OWNER AND AC.R_CONSTRAINT_NAME = RCC.CONSTRAINT_NAME WHERE AC.CONSTRAINT_TYPE='R' ", 1); if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSVS(_3, "AND AC.OWNER='", _0, "' AND AC.TABLE_NAME = '", _2, "'"); zephir_concat_self(&sql, _3 TSRMLS_CC); } else { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVS(_3, "AND AC.TABLE_NAME = '", _0, "'"); @@ -53482,11 +53568,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { } - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 143, table); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 144, schema); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 144, _1, _3, alias, escapeChar); + ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 145, _1, _3, alias, escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -53518,11 +53604,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Postgresql) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { - zephir_fcall_cache_entry *_6 = NULL; - HashTable *_3; - HashPosition _2; + zephir_fcall_cache_entry *_7 = NULL; + HashTable *_4; + HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *value = NULL, *valueSql, **_4, _5 = zval_used_for_init, _7 = zval_used_for_init, *_8, *_9 = NULL, *_10 = NULL; + zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, *_8 = NULL, _9 = zval_used_for_init, *_10 = NULL, *_11; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -53585,6 +53671,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(columnType, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(columnType, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -53638,7 +53730,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized PostgreSQL data type", "phalcon/db/dialect/postgresql.zep", 143); + ZEPHIR_INIT_VAR(_2); + object_init_ex(_2, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -53647,37 +53748,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_3, &_2, 0, 0, "phalcon/db/dialect/postgresql.zep", 154); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zephir_hash_move_forward_ex(_4, &_3) ) { - ZEPHIR_GET_HVALUE(value, _4); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_6, 142, value, &_5); + ZEPHIR_GET_HVALUE(value, _5); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 143, value, &_6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "\"", _0, "\", "); + zephir_concat_self(&valueSql, _8 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, 0); - ZEPHIR_SINIT_VAR(_7); - ZVAL_LONG(&_7, -2); - ZEPHIR_INIT_VAR(_8); - zephir_substr(_8, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(", _8, ")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_LONG(&_6, 0); + ZEPHIR_SINIT_VAR(_9); + ZVAL_LONG(&_9, -2); + ZEPHIR_INIT_NVAR(_2); + zephir_substr(_2, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "(", _2, ")"); + zephir_concat_self(&columnSql, _8 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_7); - ZVAL_STRING(&_7, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_6, 142, typeValues, &_7); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_7, 143, typeValues, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(\"", _10, "\")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + ZEPHIR_CONCAT_SVS(_11, "(\"", _10, "\")"); + zephir_concat_self(&columnSql, _11 TSRMLS_CC); } } } while(0); @@ -53689,7 +53790,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53733,17 +53834,23 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -53754,7 +53861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zend_bool _10; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _11, *_12 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53845,9 +53952,9 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(&_4, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); if (!ZEPHIR_IS_EQUAL(_3, _4)) { - ZEPHIR_CALL_METHOD(&_6, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = ZEPHIR_IS_EMPTY(_6); + _10 = !zephir_is_true(_6); if (_10) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); @@ -53860,18 +53967,30 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); - zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_11); - ZVAL_STRING(&_11, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_12, "addcslashes", NULL, 142, defaultValue, &_11); + if (zephir_is_true(_8)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" SET DEFAULT \"", _12, "\""); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_13); + ZVAL_STRING(&_13, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_15); + ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); + zephir_concat_self(&sql, _15 TSRMLS_CC); + } } } RETURN_CCTOR(sql); @@ -54248,12 +54367,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL; - HashTable *_1, *_13, *_21; - HashPosition _0, _12, _20; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; + HashTable *_1, *_16, *_21; + HashPosition _0, _15, _20; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, **_14, *_15 = NULL, *_16 = NULL, *_17 = NULL, *_18 = NULL, *_19 = NULL, **_22, *_23, *_24 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -54287,7 +54406,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 327); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -54309,7 +54428,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 383); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -54321,52 +54440,60 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { } - ZEPHIR_CALL_METHOD(&_10, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_10)) { - ZEPHIR_CALL_METHOD(&_11, column, "getname", NULL, 0); + if (zephir_is_true(_13)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 378); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 381); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _9, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 384); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_13, &_12, 0, 0, "phalcon/db/dialect/postgresql.zep", 418); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS + ; zephir_hash_move_forward_ex(_16, &_15) ) { - ZEPHIR_GET_HVALUE(index, _14); + ZEPHIR_GET_HVALUE(index, _17); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -54382,37 +54509,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_10, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 44, _10); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _7, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_11, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "preparetable", NULL, 144, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SVSV(_16, "CREATE INDEX \"", _11, "\" ON ", _15); - zephir_concat_self(&indexSqlAfterCreate, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); + zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _17, ");"); + ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 415); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 443); + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -54420,56 +54547,56 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_GET_HVALUE(reference, _22); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_11, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "preparetable", NULL, 144, _11, schemaName); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _10 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_17, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", NULL, 44, _17); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " (", _15, ")"); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SV(_16, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _19 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 441); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); } } - ZEPHIR_INIT_VAR(_23); - zephir_fast_join_str(_23, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _23, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_24); - ZEPHIR_CONCAT_SV(_24, " ", _3); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_VAR(_23); + ZEPHIR_CONCAT_SV(_23, " ", _3); + zephir_concat_self(&sql, _23 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_24); - ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_23); + ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _23 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -54558,7 +54685,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 480); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -54916,11 +55043,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Sqlite) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { - zephir_fcall_cache_entry *_7 = NULL; - HashTable *_4; - HashPosition _3; + zephir_fcall_cache_entry *_8 = NULL; + HashTable *_5; + HashPosition _4; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, _8 = zval_used_for_init, *_9, *_10 = NULL; + zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *value = NULL, *valueSql, **_6, _7 = zval_used_for_init, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -54979,6 +55106,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -55003,7 +55136,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized SQLite data type", "phalcon/db/dialect/sqlite.zep", 112); + ZEPHIR_INIT_VAR(_3); + object_init_ex(_3, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized SQLite data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_3, "phalcon/db/dialect/sqlite.zep", 118 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -55012,37 +55154,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/sqlite.zep", 123); + zephir_is_iterable(typeValues, &_5, &_4, 0, 0, "phalcon/db/dialect/sqlite.zep", 129); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zephir_hash_move_forward_ex(_5, &_4) ) { - ZEPHIR_GET_HVALUE(value, _5); - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 142, value, &_6); + ZEPHIR_GET_HVALUE(value, _6); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_STRING(&_7, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_8, 143, value, &_7); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _9 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_6); - ZVAL_LONG(&_6, 0); - ZEPHIR_SINIT_VAR(_8); - ZVAL_LONG(&_8, -2); - ZEPHIR_INIT_VAR(_9); - zephir_substr(_9, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(", _9, ")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_LONG(&_7, 0); + ZEPHIR_SINIT_VAR(_10); + ZVAL_LONG(&_10, -2); + ZEPHIR_INIT_NVAR(_3); + zephir_substr(_3, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "(", _3, ")"); + zephir_concat_self(&columnSql, _9 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_7, 142, typeValues, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_8, 143, typeValues, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(\"", _2, "\")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(\"", _11, "\")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } } } while(0); @@ -55054,7 +55196,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4 = NULL, *_5, _6, *_7 = NULL, *_8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -55095,25 +55237,33 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_4, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); + if (zephir_is_true(_4)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 152)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", NULL, 143, defaultValue, &_6); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _7, "\""); + zephir_concat_self(&sql, _8 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_7)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_5, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" PRIMARY KEY AUTOINCREMENT") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -55155,7 +55305,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 165); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 175); return; } @@ -55203,7 +55353,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 173); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 183); return; } @@ -55357,7 +55507,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 217); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 227); return; } @@ -55394,7 +55544,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 235); return; } @@ -55431,7 +55581,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 233); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 243); return; } @@ -55479,7 +55629,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 241); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 251); return; } @@ -55519,7 +55669,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 249); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); return; } @@ -55608,7 +55758,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 278); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -55969,17 +56119,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -55992,17 +56138,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56015,17 +56157,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56038,17 +56176,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } @@ -56061,17 +56195,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } @@ -56224,7 +56354,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchArray) { static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { int ZEPHIR_LAST_CALL_STATUS; - zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *_0, *_1; + zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *pdoStatement; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 3, &fetchStyle, &fetchArgument, &ctorArgs); @@ -56240,32 +56370,29 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { } + ZEPHIR_OBS_VAR(pdoStatement); + zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); if (Z_TYPE_P(fetchStyle) == IS_LONG) { - if ((((int) (zephir_get_numberval(fetchStyle)) & 8)) == 8) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); + if (ZEPHIR_IS_LONG(fetchStyle, 8)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 7)) == 7) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 7)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 10)) == 10) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 10)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle); zephir_check_call_status(); RETURN_MM(); } - _1 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_1, "fetchall", NULL, 0); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0); zephir_check_call_status(); RETURN_MM(); @@ -56307,7 +56434,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZVAL_STRING(&_2, "/^SELECT\\s+(.*)/i", 0); zephir_preg_match(_1, &_2, sqlStatement, matches, 0, 0 , 0 TSRMLS_CC); if (zephir_is_true(_1)) { - zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 213 TSRMLS_CC); + zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 217 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "SELECT COUNT(*) \"numrows\" FROM (SELECT ", _3, ")"); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); @@ -56317,7 +56444,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZEPHIR_CALL_METHOD(&row, result, "fetch", NULL, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(rowCount); - zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 215 TSRMLS_CC); + zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 219 TSRMLS_CC); } } else { ZEPHIR_INIT_NVAR(rowCount); @@ -56411,10 +56538,10 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { ZEPHIR_OBS_VAR(pdoStatement); zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - if (((fetchMode & 7)) == 7) { + if (fetchMode == 8) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -56424,10 +56551,10 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 8)) == 8) { + if (fetchMode == 9) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -56437,7 +56564,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 9)) == 9) { + if (fetchMode == 7) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); @@ -56573,7 +56700,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -56736,7 +56863,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -56773,7 +56900,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56783,7 +56910,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -56805,7 +56932,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -56816,7 +56943,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -56839,7 +56966,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _25); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56862,7 +56989,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56872,7 +56999,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { do { Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 170, variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); Z_UNSET_ISREF_P(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { @@ -56888,9 +57015,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 132, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 130, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -56907,7 +57034,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56918,7 +57045,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 171, key); + ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); Z_UNSET_ISREF_P(key); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); @@ -56934,7 +57061,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56942,11 +57069,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _20 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56973,7 +57100,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); @@ -56991,7 +57118,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -57012,7 +57139,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); @@ -57034,7 +57161,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, ")\n"); @@ -57042,7 +57169,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -57064,7 +57191,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -57115,9 +57242,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, 4); ZEPHIR_SINIT_VAR(_40); ZVAL_STRING(&_40, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 152, variable, &_5, &_40); + ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 174, _2); + ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); zephir_check_call_status(); zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -57235,7 +57362,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( @@ -57344,7 +57471,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 75); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 76); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 21, 0 TSRMLS_CC); @@ -57356,7 +57483,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57369,7 +57496,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57382,7 +57509,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57395,7 +57522,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57408,7 +57535,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57421,7 +57548,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57434,7 +57561,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57447,7 +57574,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57460,7 +57587,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57473,7 +57600,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57486,7 +57613,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57499,7 +57626,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57512,7 +57639,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57525,7 +57652,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57538,7 +57665,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57551,7 +57678,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57564,7 +57691,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57575,7 +57702,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "sessionBag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Bag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57588,7 +57715,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57601,7 +57728,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57614,7 +57741,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57994,7 +58121,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, 176, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 177, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -58117,7 +58244,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, 63, name, definition, shared); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 64, name, definition, shared); zephir_check_call_status(); RETURN_MM(); @@ -58192,7 +58319,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, 175); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -58201,10 +58328,10 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Router", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58214,10 +58341,10 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58230,7 +58357,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58243,7 +58370,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58256,7 +58383,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58269,7 +58396,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58282,7 +58409,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58295,7 +58422,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58308,7 +58435,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58321,7 +58448,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58494,7 +58621,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -58539,7 +58666,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -58609,7 +58736,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -58673,7 +58800,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } @@ -58738,17 +58865,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -58981,7 +59104,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -58991,7 +59114,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -59040,7 +59163,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -59062,13 +59185,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _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, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -59224,7 +59347,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -59437,9 +59560,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } @@ -59453,10 +59576,10 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } @@ -59669,7 +59792,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -59942,7 +60065,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -59960,7 +60083,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, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60567,7 +60690,7 @@ static PHP_METHOD(Phalcon_Forms_Element, setMessages) { static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages, *_0; + zval *message, *messages = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); @@ -60582,6 +60705,8 @@ static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); + ZEPHIR_OBS_NVAR(messages); + zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); } ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); zephir_check_call_status(); @@ -61086,7 +61211,7 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -61094,10 +61219,10 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -61160,7 +61285,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); zephir_check_call_status(); } } @@ -61630,7 +61755,7 @@ static PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -61722,7 +61847,7 @@ static PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); @@ -61831,7 +61956,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); @@ -61876,7 +62001,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); @@ -61921,7 +62046,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); @@ -61966,7 +62091,7 @@ static PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); @@ -62011,7 +62136,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); @@ -62056,7 +62181,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); @@ -62101,7 +62226,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); @@ -62148,7 +62273,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); zephir_check_call_status(); RETURN_MM(); @@ -62199,7 +62324,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -62270,7 +62395,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -62315,7 +62440,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); @@ -62360,7 +62485,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); @@ -62405,7 +62530,7 @@ static PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); zephir_check_call_status(); RETURN_MM(); @@ -62717,7 +62842,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -62813,7 +62938,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -63224,7 +63349,7 @@ static PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63275,7 +63400,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63333,12 +63458,12 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); Z_UNSET_ISREF_P(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63389,7 +63514,7 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63826,7 +63951,7 @@ static PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); zephir_check_call_status(); RETURN_MM(); @@ -64017,7 +64142,7 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -64089,7 +64214,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -64102,7 +64227,7 @@ static PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -64115,7 +64240,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -64128,7 +64253,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -64141,7 +64266,7 @@ static PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -64154,7 +64279,7 @@ static PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -64167,7 +64292,7 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -64215,7 +64340,7 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64259,7 +64384,7 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64308,7 +64433,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -64342,7 +64467,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -64356,7 +64481,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -64429,7 +64554,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -64483,7 +64608,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -64502,7 +64627,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -64577,7 +64702,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -64595,7 +64720,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -64726,7 +64851,7 @@ static PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64745,7 +64870,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -64763,7 +64888,7 @@ static PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64782,7 +64907,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -64800,7 +64925,7 @@ static PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64819,7 +64944,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65139,7 +65264,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -65566,7 +65691,7 @@ static PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -65786,7 +65911,7 @@ static PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); zephir_check_call_status(); } } @@ -66026,12 +66151,12 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, name, &_0); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, name, &_0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_extension"), _2 TSRMLS_CC); } @@ -66092,15 +66217,15 @@ static PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -66118,7 +66243,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -66149,7 +66274,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); zephir_check_call_status(); RETURN_MM(); @@ -66739,10 +66864,10 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -66803,7 +66928,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); zephir_check_call_status(); } } @@ -67092,7 +67217,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_8, &_9, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_10); ZVAL_LONG(_10, 1); - ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 68, _8, _10); + ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 69, _8, _10); zephir_check_call_status(); width = zephir_get_intval(_11); ZEPHIR_INIT_NVAR(_10); @@ -67101,7 +67226,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_10, &_13, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_14); ZVAL_LONG(_14, 1); - ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 68, _10, _14); + ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 69, _10, _14); zephir_check_call_status(); height = zephir_get_intval(_15); ZEPHIR_INIT_NVAR(_14); @@ -67502,11 +67627,11 @@ static PHP_METHOD(Phalcon_Image_Adapter, text) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); @@ -67585,11 +67710,11 @@ static PHP_METHOD(Phalcon_Image_Adapter, background) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); @@ -67715,7 +67840,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, render) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, _0, &_1); zephir_check_call_status(); zephir_get_strval(_3, _2); ZEPHIR_CPY_WRT(ext, _3); @@ -67851,13 +67976,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -67875,7 +68000,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -67937,11 +68062,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_1 TSRMLS_CC) == SUCCESS)) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 62, _2); + ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 63, _2); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -67957,35 +68082,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -68010,7 +68135,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -68033,14 +68158,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -68079,7 +68204,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -68127,11 +68252,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -68155,17 +68280,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -68175,16 +68300,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -68211,7 +68336,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -68237,17 +68362,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -68267,16 +68392,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -68304,20 +68429,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68330,11 +68455,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -68360,7 +68485,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -68388,7 +68513,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -68412,18 +68537,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -68431,13 +68556,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); zephir_check_call_status(); } } @@ -68460,7 +68585,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -68509,15 +68634,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -68543,7 +68668,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68569,7 +68694,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -68610,7 +68735,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -68622,7 +68747,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -68635,18 +68760,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -68668,21 +68793,21 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -68694,11 +68819,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -68708,11 +68833,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -68727,10 +68852,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -68762,7 +68887,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68771,7 +68896,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -68805,12 +68930,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -68830,7 +68955,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -68842,17 +68967,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -68872,7 +68997,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68881,7 +69006,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -68902,22 +69027,22 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -68927,13 +69052,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -68944,7 +69069,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -68960,9 +69085,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -68982,9 +69107,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -68997,10 +69122,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -69010,22 +69135,22 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -69059,9 +69184,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -69074,11 +69199,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -69106,7 +69231,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); zephir_check_call_status(); i++; } @@ -69145,7 +69270,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -69158,7 +69283,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -69185,11 +69310,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -69197,30 +69322,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -69229,64 +69354,64 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -69320,29 +69445,29 @@ 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, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -69350,45 +69475,45 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } @@ -69420,11 +69545,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -69440,7 +69565,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69493,12 +69618,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } @@ -69549,15 +69674,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 62, _3); + ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 63, _3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _4 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -69583,7 +69706,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -69621,13 +69744,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -69845,10 +69966,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70037,10 +70156,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70055,7 +70172,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70069,11 +70186,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -70089,16 +70206,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70116,7 +70229,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -70133,7 +70246,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70163,7 +70276,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -70224,10 +70337,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70245,7 +70356,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -70297,10 +70408,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70309,14 +70418,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70350,24 +70457,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70383,13 +70490,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70400,13 +70507,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70425,13 +70532,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70442,13 +70549,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70464,13 +70571,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70481,13 +70588,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70535,10 +70642,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -70557,7 +70662,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -70607,30 +70712,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -70646,7 +70745,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -70655,11 +70754,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -70673,7 +70772,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -70799,7 +70898,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _1, "setformat", NULL, 0, ext); @@ -70827,7 +70926,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -70851,7 +70950,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -70923,7 +71022,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); @@ -71148,6 +71247,13 @@ static PHP_METHOD(Phalcon_Logger_Adapter, rollback) { } +static PHP_METHOD(Phalcon_Logger_Adapter, isTransaction) { + + + RETURN_MEMBER(this_ptr, "_transaction"); + +} + static PHP_METHOD(Phalcon_Logger_Adapter, critical) { int ZEPHIR_LAST_CALL_STATUS; @@ -72322,7 +72428,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -72354,7 +72460,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72434,7 +72540,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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -72519,15 +72625,15 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); } @@ -72541,7 +72647,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 4500); - ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 69, format, &_2); + ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 70, format, &_2); zephir_check_call_status(); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 102); for ( @@ -72557,7 +72663,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", &_3, 237, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); @@ -72635,7 +72741,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -72665,7 +72771,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72767,7 +72873,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -72827,7 +72933,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", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -72842,7 +72948,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -72999,15 +73105,15 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 151, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); Z_UNSET_ISREF_P(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { @@ -73178,17 +73284,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73201,17 +73303,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73262,7 +73360,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); @@ -74316,7 +74414,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -74779,7 +74877,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -74808,7 +74906,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); zephir_check_call_status(); RETURN_MM(); @@ -75258,7 +75356,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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -75289,7 +75387,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); @@ -76137,7 +76235,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -76286,11 +76384,11 @@ 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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -76323,11 +76421,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76360,11 +76458,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76385,11 +76483,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -77310,10 +77408,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getDirtyState) { static PHP_METHOD(Phalcon_Mvc_Model, getReadConnection) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0; + zval *transaction = NULL, *_0; ZEPHIR_MM_GROW(); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_transaction"), PH_NOISY_CC); + ZEPHIR_CPY_WRT(transaction, _0); + if (Z_TYPE_P(transaction) == IS_OBJECT) { + ZEPHIR_RETURN_CALL_METHOD(transaction, "getconnection", NULL, 0); + zephir_check_call_status(); + RETURN_MM(); + } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); ZEPHIR_RETURN_CALL_METHOD(_0, "getreadconnection", NULL, 0, this_ptr); zephir_check_call_status(); @@ -77367,7 +77472,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { if (Z_TYPE_P(dataColumnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(dataMapped); array_init(dataMapped); - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 436); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 443); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77396,7 +77501,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { } 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", 488); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 495); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -77412,7 +77517,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(_8, "Column '", attribute, "' doesn\\'t make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_9, 9, _8); zephir_check_call_status(); - zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 458 TSRMLS_CC); + zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 465 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77480,7 +77585,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 588); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 595); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -77501,7 +77606,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 531 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 538 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77517,7 +77622,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _6 = Z_TYPE_P(value) != IS_NULL; } if (_6) { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 543 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 550 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_8); @@ -77541,7 +77646,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 564 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 571 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0) || ZEPHIR_IS_LONG(_7, 9) || ZEPHIR_IS_LONG(_7, 3) || ZEPHIR_IS_LONG(_7, 7) || ZEPHIR_IS_LONG(_7, 8)) { ZEPHIR_INIT_NVAR(castValue); @@ -77554,7 +77659,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(attributeName); - zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 580 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 587 TSRMLS_CC); zephir_update_property_zval_zval(instance, attributeName, castValue TSRMLS_CC); } } @@ -77599,7 +77704,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_VAR(hydrateObject); object_init(hydrateObject); } - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 662); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 669); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77617,7 +77722,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 641 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 648 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77673,7 +77778,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 709); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 716); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -77681,7 +77786,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); if (Z_TYPE_P(key) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 701); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 708); return; } zephir_update_property_zval_zval(instance, key, value TSRMLS_CC); @@ -77720,7 +77825,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, find) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 755); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 762); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -77795,7 +77900,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, findFirst) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 842); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 849); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -77879,12 +77984,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, 302, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 303, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -77938,7 +78043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueParams); ZEPHIR_INIT_NVAR(uniqueTypes); array_init(uniqueTypes); - zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1013); + zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1020); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77953,7 +78058,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 977 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 984 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -77971,9 +78076,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_6) { numberEmpty++; } - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 995); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1002); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 998); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 1005); numberEmpty++; } ZEPHIR_OBS_NVAR(type); @@ -77984,16 +78089,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1003 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1010 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1006); + zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1013); ZEPHIR_CALL_METHOD(&_7, connection, "escapeidentifier", &_8, 0, field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_VS(_9, _7, " = ?"); - zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1007); + zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1014); } if (numberPrimary == numberEmpty) { RETURN_MM_BOOL(0); @@ -78041,7 +78146,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZVAL_NULL(_3); ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, _9, _3, uniqueParams, uniqueTypes); zephir_check_call_status(); - zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1063 TSRMLS_CC); + zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1070 TSRMLS_CC); if (zephir_is_true(_11)) { ZEPHIR_INIT_ZVAL_NREF(_12); ZVAL_LONG(_12, 0); @@ -78102,7 +78207,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1093); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1100); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -78418,7 +78523,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, validate) { if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { ZEPHIR_CALL_METHOD(&_1, validator, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1393); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1400); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -78470,7 +78575,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_INIT_VAR(filtered); array_init(filtered); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1459); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1466); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -78479,7 +78584,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_5, message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(_5, filter)) { - zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1456); + zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1463); } } RETURN_CCTOR(filtered); @@ -78506,7 +78611,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(belongsTo TSRMLS_CC)) { error = 0; - zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1602); + zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1609); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78519,7 +78624,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1503 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1510 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78538,7 +78643,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1539); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1546); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -78547,11 +78652,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1532 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1539 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1532); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1533); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1539); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1540); if (Z_TYPE_P(value) == IS_NULL) { numberNull++; } @@ -78562,15 +78667,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1544); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1545); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1551); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1552); if (Z_TYPE_P(value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1556); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1563); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(allowNulls); @@ -78652,7 +78757,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_CALL_METHOD(&relations, manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1716); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1723); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78665,7 +78770,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1655 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1662 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78683,7 +78788,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1683); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1690); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -78692,23 +78797,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1680 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1687 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1680); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1681); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1687); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1688); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1685); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1686); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1692); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1700); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -78749,7 +78854,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { error = 0; - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1835); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1842); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78762,7 +78867,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1763 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1770 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78780,7 +78885,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1795); + zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1802); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -78789,23 +78894,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_GET_HVALUE(field, _8); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1791 TSRMLS_CC); + zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1798 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSV(_10, "[", _9, "] = ?", position); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1791); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1792); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1799); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVS(_10, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1797); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1804); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1812); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -78929,7 +79034,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2001); + zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2008); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -78946,7 +79051,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(_7, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1937 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79166,7 +79271,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2185); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -79182,7 +79287,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2139 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2146 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79208,23 +79313,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2163 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2170 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); } else { if (zephir_array_isset(defaultValues, field)) { ZEPHIR_CALL_METHOD(&_8, connection, "getdefaultvalue", &_9, 0); zephir_check_call_status(); - zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2171); + zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2178); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2180); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); } } } @@ -79236,7 +79341,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); useExplicitIdentity = zephir_get_boolval(_8); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2194); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2201); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); @@ -79247,7 +79352,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2202 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2209 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79262,12 +79367,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } if (_6) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2223); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2230); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { @@ -79277,17 +79382,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn\\'t part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2230 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2237 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); } } } @@ -79377,7 +79482,7 @@ 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", 2437); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2444); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -79392,7 +79497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2336 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2343 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79405,7 +79510,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2351 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79415,9 +79520,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", 2360); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2360); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2361); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2368); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -79439,9 +79544,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -79459,15 +79564,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2424); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2431); } } } else { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); } } } @@ -79484,12 +79589,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", 2456); + 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", 2463); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2479); + zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2486); for ( ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS ; zephir_hash_move_forward_ex(_13, &_12) @@ -79504,7 +79609,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2467 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2474 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79513,9 +79618,9 @@ 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_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2474); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2481); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2476); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2483); } } } @@ -79552,7 +79657,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { 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", 2585); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2592); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -79569,7 +79674,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(record) != IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2534); + 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", 2541); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -79581,7 +79686,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2543); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); @@ -79589,7 +79694,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_0))) { ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2572); + zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); for ( ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS ; zephir_hash_move_forward_ex(_9, &_8) @@ -79636,7 +79741,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, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2773); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2780); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -79659,7 +79764,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (_5) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2624); + 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", 2631); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -79671,7 +79776,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -79691,7 +79796,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2647 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79706,7 +79811,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2762); + zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); for ( ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS ; zephir_hash_move_forward_ex(_14, &_13) @@ -79721,7 +79826,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_12))) { ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2704); + zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); for ( ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS ; zephir_hash_move_forward_ex(_18, &_17) @@ -79754,7 +79859,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_16))) { ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); for ( ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS ; zephir_hash_move_forward_ex(_25, &_24) @@ -79783,7 +79888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2765 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79878,9 +79983,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2878 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80072,10 +80177,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", 3062); + 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", 3069); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3103); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3110); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -80089,7 +80194,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3074 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3081 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80102,7 +80207,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3082 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3089 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80117,17 +80222,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3092 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3099 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3098); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3105); ZEPHIR_CALL_METHOD(&_2, writeConnection, "escapeidentifier", &_9, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_VS(_7, _2, " = ?"); - zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3099); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3100); + zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3106); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -80203,7 +80308,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", 3178); + 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", 3185); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80228,7 +80333,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_1))) { - 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", 3200); + 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", 3207); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -80237,14 +80342,14 @@ 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", 3208); + 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", 3215); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_1, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3222); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3229); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -80253,7 +80358,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(_5); zephir_create_array(_5, 1, 0 TSRMLS_CC); zephir_array_fast_append(_5, attribute); - zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3216); + zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3223); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -80368,7 +80473,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3303); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80403,7 +80508,7 @@ 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", 3334); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80436,7 +80541,7 @@ 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", 3363); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80469,7 +80574,7 @@ 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", 3392); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80682,7 +80787,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, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3606); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3615); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80701,7 +80806,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3587 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3596 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -80718,7 +80823,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3596 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3605 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -80771,12 +80876,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { 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", 3645); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3654); 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", 3652); + 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", 3661); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80798,7 +80903,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3684 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3693 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80810,7 +80915,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3688 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3697 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80823,7 +80928,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not defined on the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3696 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3705 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80835,14 +80940,14 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_3, "The field '", fieldName, "' was not found in the snapshot"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3703 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3712 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(!ZEPHIR_IS_EQUAL(value, originalValue)); } ZEPHIR_INIT_NVAR(_1); - zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3739); + zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3748); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -80877,12 +80982,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", 3752); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3761); 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", 3759); + 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", 3768); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80898,7 +81003,7 @@ 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", 3813); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3822); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -80906,17 +81011,17 @@ static 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", 3792); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3801); 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", 3800); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3809); continue; } - zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3807 TSRMLS_CC); + zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3816 TSRMLS_CC); if (!ZEPHIR_IS_EQUAL(value, _5)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3808); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3817); continue; } } @@ -80973,7 +81078,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3855 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3865 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -81080,55 +81185,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { } -static PHP_METHOD(Phalcon_Mvc_Model, __call) { - - int ZEPHIR_LAST_CALL_STATUS; - zval *method_param = NULL, *arguments, *modelName, *status = NULL, *records = NULL, *_0, *_1, *_2; - zval *method = NULL; - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &method_param, &arguments); - - zephir_get_strval(method, method_param); - - - ZEPHIR_INIT_VAR(modelName); - zephir_get_class(modelName, this_ptr, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 0, modelName, method, arguments); - zephir_check_call_status(); - if (Z_TYPE_P(records) != IS_NULL) { - RETURN_CCTOR(records); - } - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&status, _0, "missingmethod", NULL, 0, this_ptr, method, arguments); - zephir_check_call_status(); - if (Z_TYPE_P(status) != IS_NULL) { - RETURN_CCTOR(status); - } - ZEPHIR_INIT_VAR(_1); - object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_2); - ZEPHIR_CONCAT_SVSVS(_2, "The method '", method, "' doesn't exist on model '", modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); - zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3947 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - -} - -static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { +static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { - zval *_6, *_7; - zend_class_entry *_5, *_8; + zval *_5, *_6; + zend_class_entry *_4, *_7; int ZEPHIR_LAST_CALL_STATUS; - zval *method_param = NULL, *arguments, *extraMethod = NULL, *type = NULL, *modelName, *value, *model, *attributes = NULL, *field = NULL, *extraMethodFirst = NULL, *metaData = NULL, _0 = zval_used_for_init, *_1 = NULL, *_2 = NULL, *_4 = NULL; - zval *method = NULL, *_3; + zval *method, *arguments, *extraMethod = NULL, *type = NULL, *modelName, *value, *model, *attributes = NULL, *field = NULL, *extraMethodFirst = NULL, *metaData = NULL, _0 = zval_used_for_init, *_1 = NULL, *_2 = NULL, *_3 = NULL; ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &method_param, &arguments); + zephir_fetch_params(1, 2, 0, &method, &arguments); - zephir_get_strval(method, method_param); ZEPHIR_INIT_VAR(extraMethod); @@ -81164,32 +81230,24 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_INIT_VAR(modelName); zephir_get_called_class(modelName TSRMLS_CC); if (!(zephir_is_true(extraMethod))) { - ZEPHIR_INIT_VAR(_1); - object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_2); - ZEPHIR_CONCAT_SVSVS(_2, "The static method '", method, "' doesn't exist on model '", modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); - zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3998 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; + RETURN_MM_NULL(); } ZEPHIR_OBS_VAR(value); if (!(zephir_array_isset_long_fetch(&value, arguments, 0, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(_1); + ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_3); - ZEPHIR_CONCAT_SVS(_3, "The static method '", method, "' requires one argument"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVS(_2, "The static method '", method, "' requires one argument"); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4002 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3977 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_VAR(model); - zephir_fetch_safe_class(_4, modelName); - _5 = zend_fetch_class(Z_STRVAL_P(_4), Z_STRLEN_P(_4), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); - object_init_ex(model, _5); + zephir_fetch_safe_class(_3, modelName); + _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + object_init_ex(model, _4); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); zephir_check_call_status(); @@ -81205,7 +81263,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { if (zephir_array_isset(attributes, extraMethod)) { ZEPHIR_CPY_WRT(field, extraMethod); } else { - ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 67, extraMethod); + ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 68, extraMethod); zephir_check_call_status(); if (zephir_array_isset(attributes, extraMethodFirst)) { ZEPHIR_CPY_WRT(field, extraMethodFirst); @@ -81219,28 +81277,101 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4036 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4011 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - ZEPHIR_INIT_VAR(_6); - zephir_create_array(_6, 2, 0 TSRMLS_CC); + ZEPHIR_INIT_VAR(_5); + zephir_create_array(_5, 2, 0 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, field, " = ?0"); - zephir_array_update_string(&_6, SL("conditions"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(_7); - zephir_create_array(_7, 1, 0 TSRMLS_CC); - zephir_array_fast_append(_7, value); - zephir_array_update_string(&_6, SL("bind"), &_7, PH_COPY | PH_SEPARATE); - _8 = zephir_fetch_class(modelName TSRMLS_CC); - ZEPHIR_RETURN_CALL_CE_STATIC_ZVAL(_8, type, NULL, 0, _6); + zephir_array_update_string(&_5, SL("conditions"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_INIT_VAR(_6); + zephir_create_array(_6, 1, 0 TSRMLS_CC); + zephir_array_fast_append(_6, value); + zephir_array_update_string(&_5, SL("bind"), &_6, PH_COPY | PH_SEPARATE); + _7 = zephir_fetch_class(modelName TSRMLS_CC); + ZEPHIR_RETURN_CALL_CE_STATIC_ZVAL(_7, type, NULL, 0, _5); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Mvc_Model, __call) { + + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_0 = NULL; + zval *method_param = NULL, *arguments, *modelName, *status = NULL, *records = NULL, *_1, *_2, *_3; + zval *method = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &method_param, &arguments); + + zephir_get_strval(method, method_param); + + + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) != IS_NULL) { + RETURN_CCTOR(records); + } + ZEPHIR_INIT_VAR(modelName); + zephir_get_class(modelName, this_ptr, 0 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 0, modelName, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) != IS_NULL) { + RETURN_CCTOR(records); + } + _1 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(&status, _1, "missingmethod", NULL, 0, this_ptr, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(status) != IS_NULL) { + RETURN_CCTOR(status); + } + ZEPHIR_INIT_VAR(_2); + 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_check_call_status(); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4062 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + +} + +static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { + + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_0 = NULL; + zval *method_param = NULL, *arguments, *records = NULL, *_1; + zval *method = NULL, *_2; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &method_param, &arguments); + + zephir_get_strval(method, method_param); + + + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) == IS_NULL) { + ZEPHIR_INIT_VAR(_1); + object_init_ex(_1, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVS(_2, "The static method '", method, "' doesn't exist"); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); + zephir_check_call_status(); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4078 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + RETURN_CCTOR(records); + +} + static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_fcall_cache_entry *_5 = NULL, *_6 = NULL; @@ -81278,7 +81409,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4100); + zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4134); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -81287,7 +81418,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_GET_HVALUE(item, _3); 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", 4087); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4121); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -81437,7 +81568,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, serialize) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -81468,13 +81599,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { 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", 4224); + 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", 4258); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -81485,13 +81616,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); 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", 4237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4271); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, manager, "initialize", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4256); + zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4290); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -81541,7 +81672,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, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4320); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4354); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -81557,7 +81688,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_6, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4298 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4332 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -81869,7 +82000,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_1, SS("controller"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^/([\\w0-9\\_\\-]+)[/]{0,1}$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 76, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 77, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/mvc/router.zep", 120); @@ -81882,7 +82013,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^/([\\w0-9\\_\\-]+)/([\\w0-9\\.\\_]+)(/.*)*$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 76, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 77, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/mvc/router.zep", 126); @@ -82407,7 +82538,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { ZEPHIR_OBS_VAR(notFoundPaths); zephir_read_property_this(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(notFoundPaths) != IS_NULL) { - ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 77, notFoundPaths); + ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 78, notFoundPaths); zephir_check_call_status(); ZEPHIR_INIT_NVAR(routeFound); ZVAL_BOOL(routeFound, 1); @@ -82520,7 +82651,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, 76, pattern, paths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, pattern, paths, httpMethods); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(position, 1)) { @@ -83454,7 +83585,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 362, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 364, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { @@ -84076,7 +84207,7 @@ static PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); RETURN_THIS(); @@ -84105,7 +84236,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 363, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 365, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -84413,7 +84544,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_disabled"), PH_NOISY_CC); if (!ZEPHIR_IS_FALSE(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); RETURN_MM_BOOL(0); @@ -84473,7 +84604,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); mustClean = 1; @@ -84652,11 +84783,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); 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, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 285); zephir_check_call_status(); RETURN_MM(); @@ -84781,7 +84912,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, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(view, "getcontent", NULL, 0); zephir_check_call_status(); @@ -84795,7 +84926,7 @@ static PHP_METHOD(Phalcon_Mvc_View, finish) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); RETURN_THIS(); @@ -86237,7 +86368,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -88293,12 +88424,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 306, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 308, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 307, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 309, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -89318,7 +89449,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89395,7 +89526,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89473,7 +89604,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89570,9 +89701,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 309, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 311, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -90033,7 +90164,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", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 310, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 312, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -90098,10 +90229,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 310, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 312, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 310, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 312, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); @@ -92540,7 +92671,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SS("type"), SL("all"), 1); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 316, argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 318, argument); zephir_check_call_status(); RETURN_MM(); @@ -92576,11 +92707,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("when"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 354 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_8, whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 355 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _8); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _8); zephir_check_call_status(); zephir_array_update_string(&_4, SL("then"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 356); @@ -92589,7 +92720,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("else"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 360 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 361); @@ -92598,7 +92729,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("case"), 1); zephir_array_fetch_string(&_6, expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 367 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&return_value, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -92638,13 +92769,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, argument); zephir_check_call_status(); zephir_array_append(&functionArgs, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 391); } } else { zephir_create_array(functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, arguments); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, arguments); zephir_check_call_status(); zephir_array_fast_append(functionArgs, _3); } @@ -92707,12 +92838,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { if (!ZEPHIR_IS_LONG(exprType, 409)) { ZEPHIR_OBS_VAR(exprLeft); if (zephir_array_isset_string_fetch(&exprLeft, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 316, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 318, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } ZEPHIR_OBS_VAR(exprRight); if (zephir_array_isset_string_fetch(&exprRight, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 316, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 318, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } } @@ -92790,7 +92921,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 320, expr); zephir_check_call_status(); break; } @@ -93235,12 +93366,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 319, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 321, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 320, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 322, expr); zephir_check_call_status(); break; } @@ -93250,7 +93381,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { add_assoc_stringl_ex(exprReturn, SS("type"), SL("select"), 1); ZEPHIR_INIT_NVAR(_3); ZVAL_BOOL(_3, 1); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 321, expr, _3); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 323, expr, _3); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_12, PH_COPY | PH_SEPARATE); break; @@ -93269,7 +93400,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SS("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 320, expr); zephir_check_call_status(); RETURN_MM(); } @@ -93282,7 +93413,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ; zephir_hash_move_forward_ex(_14, &_13) ) { ZEPHIR_GET_HVALUE(exprListItem, _15); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 316, exprListItem); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 318, exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, _12, PH_SEPARATE, "phalcon/mvc/model/query.zep", 745); } @@ -93335,7 +93466,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("object"), 1); 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, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); zephir_array_update_string(&sqlColumn, SL("balias"), &_4, PH_COPY | PH_SEPARATE); if (Z_TYPE_P(eager) != IS_NULL) { @@ -93378,7 +93509,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_array_fetch(&modelName, sqlAliasesModels, columnDomain, PH_NOISY, "phalcon/mvc/model/query.zep", 828 TSRMLS_CC); if (Z_TYPE_P(preparedAlias) != IS_STRING) { if (ZEPHIR_IS_EQUAL(columnDomain, modelName)) { - ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(preparedAlias, columnDomain); @@ -93404,7 +93535,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("scalar"), 1); ZEPHIR_OBS_VAR(columnData); zephir_array_fetch_string(&columnData, column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 871 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 316, columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 318, columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(balias); if (zephir_array_isset_string_fetch(&balias, sqlExprColumn, SS("balias"), 0 TSRMLS_CC)) { @@ -93602,7 +93733,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_4); @@ -93610,7 +93741,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_fast_append(sqlJoinConditions, _0); @@ -93646,7 +93777,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_4); @@ -93654,7 +93785,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, _0, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1076); @@ -93737,7 +93868,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_8, SS("type"), 355); zephir_array_update_string(&_8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _8); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_10); @@ -93745,7 +93876,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_10, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_10, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _10); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _10); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7, PH_COPY | PH_SEPARATE); } @@ -93767,7 +93898,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_12, SS("type"), 355); zephir_array_update_string(&_12, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _12); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _12); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_13); @@ -93775,7 +93906,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_13, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_13, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_13, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _13); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _13); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -93796,7 +93927,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_14, SS("type"), 355); zephir_array_update_string(&_14, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _14); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _14); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_15); @@ -93804,7 +93935,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_15, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_15, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _15); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _15); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -93880,7 +94011,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 322, manager, joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 324, 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", 1315 TSRMLS_CC); @@ -93894,7 +94025,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", &_4, 323, joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 325, joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, joinItem, SS("alias"), 0 TSRMLS_CC)) { @@ -93962,7 +94093,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_GET_HVALUE(joinItem, _11); ZEPHIR_OBS_NVAR(joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, joinItem, SS("conditions"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 316, joinExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 318, joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, joinAliasName, &_12, PH_COPY | PH_SEPARATE); } @@ -94059,10 +94190,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 324, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 326, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 325, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 327, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } if (zephir_array_isset_long(sqlJoin, 0)) { @@ -94133,7 +94264,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1625 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 316, _3); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 318, _3); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, orderItem, SS("sort"), 1 TSRMLS_CC)) { ZEPHIR_INIT_NVAR(orderPartSort); @@ -94186,13 +94317,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(groupItem, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, groupItem); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1659); } } else { zephir_create_array(groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, group); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, group); zephir_check_call_status(); zephir_array_fast_append(groupParts, _3); } @@ -94218,13 +94349,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { ZEPHIR_OBS_VAR(number); if (zephir_array_isset_string_fetch(&number, limitClause, SS("number"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, number); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(offset); if (zephir_array_isset_string_fetch(&offset, limitClause, SS("offset"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, offset); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_0, PH_COPY | PH_SEPARATE); } @@ -94547,12 +94678,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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 328, 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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 328, select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(sqlJoins); @@ -94568,7 +94699,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { ; zephir_hash_move_forward_ex(_34, &_33) ) { ZEPHIR_GET_HVALUE(column, _35); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 327, column); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 329, column); zephir_check_call_status(); zephir_is_iterable(_3, &_38, &_37, 0, 0, "phalcon/mvc/model/query.zep", 1997); for ( @@ -94617,31 +94748,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 316, where); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 318, where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SS("groupBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 328, groupBy); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 330, groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(having); if (zephir_array_isset_string_fetch(&having, ast, SS("having"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 316, having); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 318, having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(order); if (zephir_array_isset_string_fetch(&order, ast, SS("orderBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 329, order); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 331, order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_41, PH_COPY | PH_SEPARATE); } @@ -94733,7 +94864,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_OBS_NVAR(_8); zephir_array_fetch_string(&_8, exprValue, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2110 TSRMLS_CC); zephir_array_update_string(&_7, SL("type"), &_8, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 316, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 318, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_7, SL("value"), &_0, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, _7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2112); @@ -94908,7 +95039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_4, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2260 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 316, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 318, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_append(&sqlFields, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2260); ZEPHIR_OBS_NVAR(exprColumn); @@ -94918,7 +95049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_NVAR(_14); zephir_array_fetch_string(&_14, exprColumn, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2263 TSRMLS_CC); zephir_array_update_string(&_13, SL("type"), &_14, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_13, SL("value"), &_15, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, _13, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2265); @@ -94933,13 +95064,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_16); ZVAL_BOOL(&_16, 1); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, where, &_16); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, where, &_16); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_15, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_15, PH_COPY | PH_SEPARATE); } @@ -95058,13 +95189,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_9); ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 316, where, &_9); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 318, where, &_9); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_10, PH_COPY | PH_SEPARATE); } @@ -95112,22 +95243,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 321); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 323); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 331); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 333); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 332); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 334); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 333); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 335); zephir_check_call_status(); break; } @@ -95514,12 +95645,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { isKeepingSnapshots = zephir_get_boolval(_40); } object_init_ex(return_value, phalcon_mvc_model_resultset_simple_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 334, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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, 335, columns1, resultData, cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 337, columns1, resultData, cache); zephir_check_call_status(); RETURN_MM(); @@ -95679,7 +95810,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_15, insertModel, "create", NULL, 0, insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, _15, insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 338, _15, insertModel); zephir_check_call_status(); RETURN_MM(); @@ -95810,13 +95941,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_array_update_zval(&updateValues, fieldName, &updateValue, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, selectBindParams, selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, 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); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); zephir_check_call_status(); RETURN_MM(); } @@ -95849,7 +95980,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11, record); zephir_check_call_status(); RETURN_MM(); } @@ -95860,7 +95991,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); zephir_check_call_status(); RETURN_MM(); @@ -95893,13 +96024,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, _1, "load", NULL, 0, modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, 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); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); zephir_check_call_status(); RETURN_MM(); } @@ -95932,7 +96063,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2, record); zephir_check_call_status(); RETURN_MM(); } @@ -95943,7 +96074,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); zephir_check_call_status(); RETURN_MM(); @@ -95991,18 +96122,18 @@ 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, 338); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 340); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 339, _5); + ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 341, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 309); - ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 340, _2); + ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 342, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 341, selectIr); + ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 343, selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 344, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -96123,22 +96254,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property_this(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 343, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 345, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 344, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 346, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 345, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 347, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 346, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 348, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } @@ -96193,7 +96324,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 344, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -96365,7 +96496,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_3); ZVAL_BOOL(&_3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 343, intermediate, _1, _2, &_3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 345, intermediate, _1, _2, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -96878,7 +97009,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pointer"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (zephir_get_numberval(_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -96918,7 +97049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97045,7 +97176,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { if (ZEPHIR_GT_LONG(_0, index)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97115,7 +97246,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97137,7 +97268,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (zephir_get_numberval(count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97755,7 +97886,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 353, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 355, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -97774,7 +97905,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 354); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 356); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); @@ -98344,7 +98475,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -98460,7 +98591,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 81, _1); + ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 82, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -98495,7 +98626,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -98700,9 +98831,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -98801,7 +98932,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -98886,9 +99017,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -98987,7 +99118,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -99164,9 +99295,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 317, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -99265,7 +99396,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -99481,7 +99612,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 83, _1); + ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 84, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -99516,7 +99647,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -101605,21 +101736,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_INIT_VAR(query); object_init_ex(query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 347); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 349); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 338, _0, _1); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 340, _0, _1); zephir_check_call_status(); ZEPHIR_OBS_VAR(bindParams); zephir_read_property_this(&bindParams, this_ptr, SL("_bindParams"), PH_NOISY_CC); if (Z_TYPE_P(bindParams) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 348, bindParams); + ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 350, bindParams); zephir_check_call_status(); } ZEPHIR_OBS_VAR(bindTypes); zephir_read_property_this(&bindTypes, this_ptr, SL("_bindTypes"), PH_NOISY_CC); if (Z_TYPE_P(bindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 349, bindTypes); + ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 351, bindTypes); zephir_check_call_status(); } RETURN_CCTOR(query); @@ -111569,7 +111700,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_this(this_ptr, SL("_columnTypes"), columnTypes TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 352, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111783,7 +111914,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, 73, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_CCTOR(serialized); @@ -111812,7 +111943,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { zephir_update_property_this(this_ptr, SL("_disableHydration"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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", 304); @@ -111887,7 +112018,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_this(this_ptr, SL("_model"), model TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_columnMap"), columnMap TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_keepSnapshots"), keepSnapshots TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 352, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111942,12 +112073,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 351, _2, row, columnMap, _3, _6); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 353, _2, row, columnMap, _3, _6); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 352, row, columnMap, hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 354, row, columnMap, hydrateMode); zephir_check_call_status(); break; } while(0); @@ -112079,7 +112210,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, serialize) { ZEPHIR_OBS_NVAR(_1); zephir_read_property_this(&_1, this_ptr, SL("_hydrateMode"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("hydrateMode"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -112107,7 +112238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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); @@ -112414,7 +112545,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "rollbackPendent", 1); zephir_array_fast_append(_2, _3); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 355, _2); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 357, _2); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_initialized"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -112473,9 +112604,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) ZEPHIR_INIT_VAR(transaction); object_init_ex(transaction, phalcon_mvc_model_transaction_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_service"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 356, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); + ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 358, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 357, this_ptr); + ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 359, 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)); @@ -112763,7 +112894,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); @@ -113036,7 +113167,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { zephir_check_temp_parameter(_0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 360, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_5))) { ZEPHIR_INIT_NVAR(_0); @@ -113182,7 +113313,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_array_update_string(&options, SL("flags"), &_6, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 275); - ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 192, value, &_5, options); + ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 193, value, &_5, options); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_0); @@ -113652,7 +113783,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -114085,7 +114216,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); @@ -114420,7 +114551,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } zephir_update_property_this(this_ptr, SL("_processed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 360, realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 362, realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -115252,7 +115383,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property_this(&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, 77, paths); + ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 78, paths); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(processedPaths, paths); @@ -115271,10 +115402,10 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_VV(_2, _1, pattern); - ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 76, _2, mergedPaths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, _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, 361, this_ptr); + ZEPHIR_CALL_METHOD(NULL, route, "setgroup", NULL, 363, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); @@ -116783,7 +116914,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 363, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 365, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_0, PH_COPY | PH_SEPARATE); } else { @@ -117022,7 +117153,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, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_OBS_VAR(viewParams); zephir_read_property_this(&viewParams, this_ptr, SL("_viewParams"), PH_NOISY_CC); @@ -117036,7 +117167,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { } else { ZEPHIR_CPY_WRT(mergedParams, viewParams); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 382, path, mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 384, path, mergedParams); zephir_check_call_status(); if (Z_TYPE_P(cache) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_0, cache, "isstarted", NULL, 0); @@ -117056,7 +117187,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { zephir_check_call_status(); } } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_content"); @@ -117087,7 +117218,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { ZEPHIR_OBS_VAR(viewParams); @@ -117104,12 +117235,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } else { ZEPHIR_CPY_WRT(mergedParams, params); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 382, partialPath, mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 384, partialPath, mergedParams); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_update_property_this(this_ptr, SL("_viewParams"), viewParams TSRMLS_CC); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_content"), PH_NOISY_CC); zend_print_zval(_1, 0); @@ -117488,7 +117619,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -117510,7 +117641,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean == 1) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); @@ -117583,18 +117714,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); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 365, _0); + ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 367, _0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _1); if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 366, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 368, dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(options); zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 367, options); + ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 369, options); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_compiler"), compiler TSRMLS_CC); @@ -117634,7 +117765,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -117662,7 +117793,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); @@ -117693,7 +117824,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { ZVAL_LONG(length, zephir_fast_count_int(item TSRMLS_CC)); } else { if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, item); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, item); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -117719,7 +117850,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SS("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 368, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 370, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(_0)); } @@ -117772,7 +117903,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, 369, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 371, text); zephir_check_call_status(); RETURN_MM(); } @@ -117781,17 +117912,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, 370, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 372, text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, text, from, to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, text, from, to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 371, from, to, text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 373, from, to, text); zephir_check_call_status(); RETURN_MM(); } @@ -117862,7 +117993,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 372, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 374, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } @@ -117870,13 +118001,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(length) != IS_NULL) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5); zephir_check_call_status(); RETURN_MM(); } @@ -117906,7 +118037,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { Z_SET_ISREF_P(value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 374, value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 376, value); Z_UNSET_ISREF_P(value); zephir_check_call_status(); RETURN_CTOR(value); @@ -117950,7 +118081,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 375, macro, arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 377, macro, arguments); zephir_check_call_status(); RETURN_MM(); @@ -118413,7 +118544,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 378, 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", 339 TSRMLS_CC); @@ -118435,7 +118566,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_7, right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 352 TSRMLS_CC); zephir_concat_self(&exprCode, _7 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 376, right); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 378, right); zephir_check_call_status(); zephir_concat_self(&exprCode, _1 TSRMLS_CC); } @@ -118464,7 +118595,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, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 378, funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(arguments); @@ -118487,7 +118618,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(_1, funcArguments); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "compileFunction", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _2, _1); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -118549,7 +118680,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(exprLevel); zephir_read_property_this(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 378, block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 380, block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(exprLevel, 1)) { ZEPHIR_CPY_WRT(escapedCode, code); @@ -118576,7 +118707,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { } ZEPHIR_INIT_NVAR(_2); zephir_camelize(_2, name); - ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 67, _2); + ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 68, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); ZVAL_STRING(className, "Phalcon\\Tag", 1); @@ -118645,7 +118776,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 376, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -118705,28 +118836,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -118798,11 +118929,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, funcArguments, _4); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); Z_UNSET_ISREF_P(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -118817,7 +118948,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -119015,7 +119146,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 377, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -119033,7 +119164,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -119055,7 +119186,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -119066,13 +119197,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 380, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 376, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -119248,7 +119379,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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 376, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -119256,7 +119387,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 376, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -119348,7 +119479,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -119421,7 +119552,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 381, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); zephir_check_call_status(); RETURN_MM(); } @@ -119469,7 +119600,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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, 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", 1369 TSRMLS_CC); @@ -119499,7 +119630,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -119547,7 +119678,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, statement, SS("if_expr"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 376, ifExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 378, ifExpr); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_SVS(_5, "if (", _12, ") { ?>"); @@ -119645,16 +119776,16 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 381, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SV(_5, "", _4); @@ -119683,7 +119814,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", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119715,9 +119846,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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -119747,7 +119878,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 381, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); @@ -119806,10 +119937,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 376, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 376, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -119867,7 +119998,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", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119892,7 +120023,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", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119923,7 +120054,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 381, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -119948,7 +120079,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", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -120022,14 +120153,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 376, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 376, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -120110,7 +120241,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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 376, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -120126,7 +120257,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, ""); - zephir_concat_self(&code, _2 TSRMLS_CC); + if (!(zephir_is_php_version(50300))) { + ZEPHIR_INIT_LNVAR(_2); + ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); + zephir_concat_self(&code, _2 TSRMLS_CC); + } RETURN_CCTOR(code); } @@ -120198,26 +120331,26 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2188); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1988); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120227,7 +120360,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { zephir_array_fast_append(_9, statement); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "compileStatement", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_10, 377, _4, _9); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_10, 379, _4, _9); zephir_check_temp_parameter(_4); zephir_check_call_status(); if (Z_TYPE_P(tempCompilation) == IS_STRING) { @@ -120236,10 +120369,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2016 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2024 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -120275,7 +120408,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2052 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -120286,7 +120419,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2067); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -120294,7 +120427,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { zephir_update_property_this(this_ptr, SL("_blocks"), blocks TSRMLS_CC); } else { if (Z_TYPE_P(blockStatements) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_11, this_ptr, "_statementlist", &_17, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "_statementlist", &_17, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _11 TSRMLS_CC); } @@ -120303,18 +120436,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2089 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -120396,13 +120529,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -120461,7 +120594,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -120471,10 +120604,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); return; } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 381, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 383, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(extended); zephir_read_property_this(&extended, this_ptr, SL("_extended"), PH_NOISY_CC); @@ -120489,7 +120622,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2303); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -120499,13 +120632,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2271 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 381, localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 381, block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(blockCompilation, block); @@ -120518,7 +120651,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2296); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -120610,7 +120743,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2345); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -120620,7 +120753,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2352 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120633,7 +120766,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2360 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120641,7 +120774,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_compilesource", NULL, 0, viewCode, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (Z_TYPE_P(compilation) == IS_ARRAY) { - ZEPHIR_CALL_FUNCTION(&finalCompilation, "serialize", NULL, 73, compilation); + ZEPHIR_CALL_FUNCTION(&finalCompilation, "serialize", NULL, 74, compilation); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(finalCompilation, compilation); @@ -120649,7 +120782,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2379); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); return; } RETURN_CCTOR(compilation); @@ -120720,54 +120853,54 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2426 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2428); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2436 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2438); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2446 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2449); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2458 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2460); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2468 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2470); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2478 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { if (!(ZEPHIR_IS_EMPTY(compiledPath))) { - ZEPHIR_CALL_FUNCTION(&_1, "realpath", NULL, 62, templatePath); + ZEPHIR_CALL_FUNCTION(&_1, "realpath", NULL, 63, templatePath); zephir_check_call_status(); ZEPHIR_INIT_VAR(templateSepPath); zephir_prepare_virtual_path(templateSepPath, _1, compiledSeparator TSRMLS_CC); @@ -120794,11 +120927,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2523); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2526); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); return; } } @@ -120825,12 +120958,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2560 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } if (zephir_is_true(blocksCode)) { - ZEPHIR_CALL_FUNCTION(&compilation, "unserialize", NULL, 74, blocksCode); + ZEPHIR_CALL_FUNCTION(&compilation, "unserialize", NULL, 75, blocksCode); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(compilation); @@ -120850,7 +120983,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2586 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -130756,7 +130889,7 @@ static PHP_METHOD(Phalcon_Paginator_Adapter_NativeArray, getPaginate) { number = zephir_fast_count_int(items TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, show); - ZEPHIR_CALL_FUNCTION(&_3, "floatval", NULL, 304, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "floatval", NULL, 305, &_2); zephir_check_call_status(); roundedTotal = zephir_safe_div_long_zval(number, _3 TSRMLS_CC); totalPages = (int) (roundedTotal); @@ -130767,7 +130900,7 @@ static PHP_METHOD(Phalcon_Paginator_Adapter_NativeArray, getPaginate) { ZVAL_LONG(&_2, (show * ((pageNumber - 1)))); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, show); - ZEPHIR_CALL_FUNCTION(&_5, "array_slice", NULL, 372, items, &_2, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "array_slice", NULL, 374, items, &_2, &_4); zephir_check_call_status(); ZEPHIR_CPY_WRT(items, _5); if (pageNumber < totalPages) { @@ -131077,7 +131210,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, connect) { ZEPHIR_INIT_VAR(_3); ZVAL_NULL(_3); Z_SET_ISREF_P(_2); - ZEPHIR_CALL_FUNCTION(&connection, "fsockopen", NULL, 383, _0, _1, _2, _3); + ZEPHIR_CALL_FUNCTION(&connection, "fsockopen", NULL, 385, _0, _1, _2, _3); Z_UNSET_ISREF_P(_2); zephir_check_call_status(); if (Z_TYPE_P(connection) != IS_RESOURCE) { @@ -131086,7 +131219,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, connect) { } ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, -1); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_timeout", NULL, 384, connection, &_4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_timeout", NULL, 386, connection, &_4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_connection"), connection TSRMLS_CC); RETURN_CCTOR(connection); @@ -131123,7 +131256,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, put) { ZEPHIR_INIT_NVAR(ttr); ZVAL_LONG(ttr, 86400); } - ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 73, data); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 74, data); zephir_check_call_status(); ZEPHIR_INIT_VAR(length); ZVAL_LONG(length, zephir_fast_strlen_ev(serialized)); @@ -131133,7 +131266,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, put) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", &_1, 0, serialized); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&status, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 128 TSRMLS_CC); _2 = !ZEPHIR_IS_STRING(status, "INSERTED"); @@ -131169,7 +131302,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, reserve) { } ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, command); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_0, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 153 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_0, "RESERVED")) { @@ -131180,9 +131313,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, reserve) { zephir_array_fetch_long(&_3, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 163 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_2, this_ptr, "read", NULL, 0, _3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "unserialize", NULL, 74, _2); + ZEPHIR_CALL_FUNCTION(&_4, "unserialize", NULL, 75, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _1, _4); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _1, _4); zephir_check_call_status(); RETURN_MM(); @@ -131214,7 +131347,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, choose) { ZEPHIR_CONCAT_SV(_0, "use ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 176 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "USING")) { @@ -131251,7 +131384,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, watch) { ZEPHIR_CONCAT_SV(_0, "watch ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 193 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "WATCHING")) { @@ -131274,7 +131407,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, stats) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 210 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131311,7 +131444,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, statsTube) { ZEPHIR_CONCAT_SV(_0, "stats-tube ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 227 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131334,7 +131467,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, listTubes) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 244 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131357,7 +131490,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 261 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "FOUND")) { @@ -131368,9 +131501,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady) { zephir_array_fetch_long(&_4, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 265 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_3, this_ptr, "read", NULL, 0, _4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 74, _3); + ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 75, _3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _2, _5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _2, _5); zephir_check_call_status(); RETURN_MM(); @@ -131388,7 +131521,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekBuried) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 278 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "FOUND")) { @@ -131399,9 +131532,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekBuried) { zephir_array_fetch_long(&_4, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 282 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_3, this_ptr, "read", NULL, 0, _4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 74, _3); + ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 75, _3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _2, _5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _2, _5); zephir_check_call_status(); RETURN_MM(); @@ -131432,7 +131565,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); ZEPHIR_OBS_VAR(status); zephir_array_fetch_long(&status, response, 0, PH_NOISY, "phalcon/queue/beanstalk.zep", 307 TSRMLS_CC); @@ -131487,9 +131620,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 388, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 389, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131505,7 +131638,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 390, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131537,7 +131670,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 391, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -131876,7 +132009,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 400, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -131887,26 +132020,26 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { ZVAL_STRING(&_2, "/dev/urandom", 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "rb", 0); - ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 285, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 286, &_2, &_3); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 403, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 388, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 117); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 123); return; } RETURN_CCTOR(ret); } } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 124); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 130); return; } @@ -131932,16 +132065,67 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); - ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 121, _3); + ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Security_Random, base58) { + + unsigned char _8; + zephir_fcall_cache_entry *_7 = NULL; + double _5; + HashTable *_3; + HashPosition _2; + int ZEPHIR_LAST_CALL_STATUS; + zval *byteString, *alphabet; + zval *n = NULL, *bytes = NULL, *idx = NULL, *_0 = NULL, _1, **_4, *_6 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 1, &n); + + if (!n) { + n = ZEPHIR_GLOBAL(global_null); + } + ZEPHIR_INIT_VAR(byteString); + ZVAL_STRING(byteString, "", 1); + ZEPHIR_INIT_VAR(alphabet); + ZVAL_STRING(alphabet, "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", 1); + + + ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, n); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_1); + ZVAL_STRING(&_1, "C*", 0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + zephir_check_call_status(); + zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); + for ( + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) + ) { + ZEPHIR_GET_HVALUE(idx, _4); + _5 = zephir_safe_mod_zval_long(idx, 64 TSRMLS_CC); + ZEPHIR_INIT_NVAR(idx); + ZVAL_DOUBLE(idx, _5); + if (ZEPHIR_GE_LONG(idx, 58)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, 57); + ZEPHIR_CALL_METHOD(&idx, this_ptr, "number", &_7, 0, _6); + zephir_check_call_status(); + } + _8 = ZEPHIR_STRING_OFFSET(alphabet, zephir_get_intval(idx)); + zephir_concat_self_char(&byteString, _8 TSRMLS_CC); + } + RETURN_CTOR(byteString); + +} + static PHP_METHOD(Phalcon_Security_Random, base64) { zval *len_param = NULL, *_0 = NULL, *_1; @@ -131961,7 +132145,7 @@ static PHP_METHOD(Phalcon_Security_Random, base64) { ZVAL_LONG(_1, len); ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -132023,22 +132207,22 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 215, _3); + ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); - zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 222 TSRMLS_CC); + zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 268 TSRMLS_CC); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, ((((int) (zephir_get_numberval(_4)) & 0x0fff)) | 0x4000)); - zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 222); - zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 223 TSRMLS_CC); + zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 268); + zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 269 TSRMLS_CC); ZEPHIR_INIT_VAR(_6); ZVAL_LONG(_6, ((((int) (zephir_get_numberval(_5)) & 0x3fff)) | 0x8000)); - zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 223); + zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 269); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "%08x-%04x-%04x-%04x-%04x%08x", ZEPHIR_TEMP_PARAM_COPY); Z_SET_ISREF_P(ary); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, ary, _7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, ary, _7); zephir_check_temp_parameter(_7); Z_UNSET_ISREF_P(ary); zephir_check_call_status(); @@ -132052,86 +132236,95 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { static PHP_METHOD(Phalcon_Security_Random, number) { - zephir_fcall_cache_entry *_4 = NULL, *_9 = NULL, *_14 = NULL, *_18 = NULL; - zval *len_param = NULL, *hex = NULL, *bin = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *first = NULL, _0 = zval_used_for_init, *_1, _2, *_3, *_8 = NULL, _10 = zval_used_for_init, _11 = zval_used_for_init, _12 = zval_used_for_init, *_13 = NULL, _15 = zval_used_for_init, _16 = zval_used_for_init, *_17 = NULL; - int len, ZEPHIR_LAST_CALL_STATUS, _5, _6, _7; + zephir_fcall_cache_entry *_5 = NULL, *_9 = NULL, *_13 = NULL, *_17 = NULL; + unsigned char _4; + zval *bin; + zval *len_param = NULL, *hex = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *_0 = NULL, _1 = zval_used_for_init, *_2, *_3 = NULL, _10 = zval_used_for_init, *_11 = NULL, _12 = zval_used_for_init, _14 = zval_used_for_init, _15 = zval_used_for_init, *_16 = NULL; + int len, ZEPHIR_LAST_CALL_STATUS, _6, _7, _8; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &len_param); len = zephir_get_intval(len_param); + ZEPHIR_INIT_VAR(bin); + ZVAL_STRING(bin, "", 1); - if (len > 0) { - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 405, &_0); + if (len <= 0) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 294); + return; + } + if ((zephir_function_exists_ex(SS("\\sodium\\randombytes_uniform") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, len); + ZEPHIR_RETURN_CALL_FUNCTION("\\sodium\\randombytes_uniform", NULL, 0, _0); zephir_check_call_status(); - if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { - ZEPHIR_INIT_VAR(_1); - ZEPHIR_CONCAT_SV(_1, "0", hex); - ZEPHIR_CPY_WRT(hex, _1); - } - ZEPHIR_SINIT_NVAR(_0); - ZVAL_STRING(&_0, "H*", 0); - ZEPHIR_CALL_FUNCTION(&bin, "pack", NULL, 406, &_0, hex); + RETURN_MM(); + } + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, len); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + zephir_check_call_status(); + if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "0", hex); + ZEPHIR_CPY_WRT(hex, _2); + } + ZEPHIR_SINIT_NVAR(_1); + ZVAL_STRING(&_1, "H*", 0); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + zephir_check_call_status(); + zephir_concat_self(&bin, _3 TSRMLS_CC); + _4 = ZEPHIR_STRING_OFFSET(bin, 0); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, _4); + ZEPHIR_CALL_FUNCTION(&mask, "ord", &_5, 133, &_1); + zephir_check_call_status(); + _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _6); + _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _7); + _8 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _8); + do { + ZEPHIR_INIT_NVAR(_0); + ZVAL_LONG(_0, zephir_fast_strlen_ev(bin)); + ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _0); zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_SINIT_VAR(_2); - ZVAL_LONG(&_2, 1); - ZEPHIR_INIT_VAR(_3); - zephir_substr(_3, bin, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&mask, "ord", &_4, 132, _3); - zephir_check_call_status(); - _5 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _5); - _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _6); - _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _7); - do { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, zephir_fast_strlen_ev(bin)); - ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_10); - ZVAL_LONG(&_10, 0); - ZEPHIR_SINIT_NVAR(_11); - ZVAL_LONG(&_11, 1); - ZEPHIR_INIT_NVAR(_8); - zephir_substr(_8, rnd, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&first, "ord", &_4, 132, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_12); - zephir_bitwise_and_function(&_12, first, mask TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_14, 130, &_12); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_15); - ZVAL_LONG(&_15, 0); - ZEPHIR_SINIT_NVAR(_16); - ZVAL_LONG(&_16, 1); - ZEPHIR_CALL_FUNCTION(&_17, "substr_replace", &_18, 407, rnd, _13, &_15, &_16); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(rnd, _17); - } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, 0); ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 404, &_10, rnd); + ZVAL_LONG(&_10, 1); + ZEPHIR_INIT_NVAR(_0); + zephir_substr(_0, rnd, 0 , 1 , 0); + ZEPHIR_CALL_FUNCTION(&_11, "ord", &_5, 133, _0); zephir_check_call_status(); - Z_SET_ISREF_P(ret); - ZEPHIR_CALL_FUNCTION(&_13, "array_shift", NULL, 121, ret); - Z_UNSET_ISREF_P(ret); + ZEPHIR_SINIT_NVAR(_12); + zephir_bitwise_and_function(&_12, _11, mask TSRMLS_CC); + ZEPHIR_CALL_FUNCTION(&_11, "chr", &_13, 131, &_12); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 408, _13); + ZEPHIR_SINIT_NVAR(_14); + ZVAL_LONG(&_14, 0); + ZEPHIR_SINIT_NVAR(_15); + ZVAL_LONG(&_15, 1); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); - RETURN_MM(); - } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 269); - return; + ZEPHIR_CPY_WRT(rnd, _16); + } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "H*", 0); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + zephir_check_call_status(); + Z_SET_ISREF_P(ret); + ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); + Z_UNSET_ISREF_P(ret); + zephir_check_call_status(); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + zephir_check_call_status(); + RETURN_MM(); } @@ -132597,6 +132790,23 @@ static PHP_METHOD(Phalcon_Session_Adapter, __unset) { } +static PHP_METHOD(Phalcon_Session_Adapter, __destruct) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *_0; + + ZEPHIR_MM_GROW(); + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_started"), PH_NOISY_CC); + if (zephir_is_true(_0)) { + ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 62); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_started"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + ZEPHIR_MM_RESTORE(); + +} + @@ -132639,6 +132849,10 @@ ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, destroy); ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, regenerateId); +ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, setName); + +ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, getName); + @@ -133073,7 +133287,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 411, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); @@ -133361,7 +133575,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_create_array(_4, 4, 0 TSRMLS_CC); @@ -133369,7 +133583,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { zephir_array_update_string(&_4, SL("client"), &client, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("prefix"), &prefix, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("statsKey"), &statsKey, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, _4); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, _4); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_libmemcached"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_5); @@ -133408,9 +133622,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133586,9 +133800,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -133627,9 +133841,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133803,9 +134017,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 317, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -133844,9 +134058,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134087,7 +134301,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 415, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134096,7 +134310,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 416, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134234,12 +134448,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 416, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134633,7 +134847,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -134646,7 +134860,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, 426, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -134668,7 +134882,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -134682,7 +134896,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 427, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -134840,7 +135054,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -134873,22 +135087,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 419, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 428, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 429, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -134986,12 +135200,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 430, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 431, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135022,7 +135236,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 432, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -135037,7 +135251,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, 432, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -135099,14 +135313,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135149,7 +135363,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -135162,12 +135376,12 @@ 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", NULL, 434, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 414, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135280,7 +135494,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135486,7 +135700,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde } if (_0) { Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, placeholders, translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, placeholders, translation); Z_UNSET_ISREF_P(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); @@ -135545,6 +135759,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Message) { zend_declare_property_null(phalcon_validation_message_ce, SL("_field"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_validation_message_ce, SL("_code"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_class_implements(phalcon_validation_message_ce TSRMLS_CC, 1, phalcon_validation_messageinterface_ce); return SUCCESS; @@ -135552,11 +135768,12 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Message) { static PHP_METHOD(Phalcon_Validation_Message, __construct) { - zval *message_param = NULL, *field = NULL, *type = NULL; - zval *message = NULL; + int code; + zval *message_param = NULL, *field_param = NULL, *type_param = NULL, *code_param = NULL, *_0; + zval *message = NULL, *field = NULL, *type = NULL; ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 2, &message_param, &field, &type); + zephir_fetch_params(1, 1, 3, &message_param, &field_param, &type_param, &code_param); if (unlikely(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); @@ -135569,17 +135786,31 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_INIT_VAR(message); ZVAL_EMPTY_STRING(message); } - if (!field) { - field = ZEPHIR_GLOBAL(global_null); + if (!field_param) { + ZEPHIR_INIT_VAR(field); + ZVAL_EMPTY_STRING(field); + } else { + zephir_get_strval(field, field_param); } - if (!type) { - type = ZEPHIR_GLOBAL(global_null); + if (!type_param) { + ZEPHIR_INIT_VAR(type); + ZVAL_EMPTY_STRING(type); + } else { + zephir_get_strval(type, type_param); + } + if (!code_param) { + code = 0; + } else { + code = zephir_get_intval(code_param); } zephir_update_property_this(this_ptr, SL("_message"), message TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_field"), field TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_LONG(_0, code); + zephir_update_property_this(this_ptr, SL("_code"), _0 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } @@ -135683,6 +135914,30 @@ static PHP_METHOD(Phalcon_Validation_Message, getField) { } +static PHP_METHOD(Phalcon_Validation_Message, setCode) { + + zval *code_param = NULL, *_0; + int code; + + zephir_fetch_params(0, 1, 0, &code_param); + + code = zephir_get_intval(code_param); + + + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_LONG(_0, code); + zephir_update_property_this(this_ptr, SL("_code"), _0 TSRMLS_CC); + RETURN_THISW(); + +} + +static PHP_METHOD(Phalcon_Validation_Message, getCode) { + + + RETURN_MEMBER(this_ptr, "_code"); + +} + static PHP_METHOD(Phalcon_Validation_Message, __toString) { @@ -135704,10 +135959,10 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { object_init_ex(return_value, phalcon_validation_message_ce); - zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 435, _0, _1, _2); + 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, 437, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136321,7 +136576,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 436, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136354,7 +136609,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136424,7 +136679,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 437, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136457,7 +136712,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136574,7 +136829,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136638,7 +136893,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(&_1, this_ptr, "compare", NULL, 438, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -136681,7 +136936,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136720,12 +136975,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } @@ -136792,7 +137047,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136825,7 +137080,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136897,7 +137152,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -136930,7 +137185,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137043,7 +137298,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137159,7 +137414,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 435, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137199,7 +137454,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -137225,7 +137480,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137262,7 +137517,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137308,7 +137563,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -137318,9 +137573,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -137345,7 +137600,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 435, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137371,12 +137626,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -137407,7 +137662,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137431,7 +137686,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -137492,7 +137747,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137548,7 +137803,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 435, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -137666,7 +137921,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137763,7 +138018,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 360, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -137799,7 +138054,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137905,7 +138160,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -137998,7 +138253,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138114,7 +138369,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138213,7 +138468,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -138248,7 +138503,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 435, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138285,7 +138540,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 435, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138426,7 +138681,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138498,7 +138753,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -138531,7 +138786,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/32bits/phalcon.zep.h b/build/32bits/phalcon.zep.h index c72569af8a9..607167ec9eb 100644 --- a/build/32bits/phalcon.zep.h +++ b/build/32bits/phalcon.zep.h @@ -2385,6 +2385,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); static PHP_METHOD(Phalcon_Logger_Adapter, begin); static PHP_METHOD(Phalcon_Logger_Adapter, commit); static PHP_METHOD(Phalcon_Logger_Adapter, rollback); +static PHP_METHOD(Phalcon_Logger_Adapter, isTransaction); static PHP_METHOD(Phalcon_Logger_Adapter, critical); static PHP_METHOD(Phalcon_Logger_Adapter, emergency); static PHP_METHOD(Phalcon_Logger_Adapter, debug); @@ -2456,6 +2457,7 @@ ZEPHIR_INIT_FUNCS(phalcon_logger_adapter_method_entry) { PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, isTransaction, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, critical, arginfo_phalcon_logger_adapter_critical, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, emergency, arginfo_phalcon_logger_adapter_emergency, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) @@ -2641,6 +2643,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, __get); static PHP_METHOD(Phalcon_Session_Adapter, __set); static PHP_METHOD(Phalcon_Session_Adapter, __isset); static PHP_METHOD(Phalcon_Session_Adapter, __unset); +static PHP_METHOD(Phalcon_Session_Adapter, __destruct); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapter___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) @@ -2723,6 +2726,7 @@ ZEPHIR_INIT_FUNCS(phalcon_session_adapter_method_entry) { PHP_ME(Phalcon_Session_Adapter, __set, arginfo_phalcon_session_adapter___set, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __isset, arginfo_phalcon_session_adapter___isset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __unset, arginfo_phalcon_session_adapter___unset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Adapter, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR) PHP_FE_END }; @@ -2760,6 +2764,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_regenerateid, 0, ZEND_ARG_INFO(0, deleteOldSession) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setname, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + ZEPHIR_INIT_FUNCS(phalcon_session_adapterinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) @@ -2772,6 +2780,8 @@ ZEPHIR_INIT_FUNCS(phalcon_session_adapterinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, arginfo_phalcon_session_adapterinterface_destroy) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, regenerateId, arginfo_phalcon_session_adapterinterface_regenerateid) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setName, arginfo_phalcon_session_adapterinterface_setname) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getName, NULL) PHP_FE_END }; @@ -4492,6 +4502,7 @@ ZEPHIR_INIT_FUNCS(phalcon_db_columninterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getAfterPosition, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getBindType, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getDefault, NULL) + PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, hasDefault, NULL) ZEND_FENTRY(__set_state, NULL, arginfo_phalcon_db_columninterface___set_state, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -8919,6 +8930,7 @@ static PHP_METHOD(Phalcon_Db_Column, isFirst); static PHP_METHOD(Phalcon_Db_Column, getAfterPosition); static PHP_METHOD(Phalcon_Db_Column, getBindType); static PHP_METHOD(Phalcon_Db_Column, __set_state); +static PHP_METHOD(Phalcon_Db_Column, hasDefault); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_column___construct, 0, 0, 2) ZEND_ARG_INFO(0, name) @@ -8948,6 +8960,7 @@ ZEPHIR_INIT_FUNCS(phalcon_db_column_method_entry) { PHP_ME(Phalcon_Db_Column, getAfterPosition, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, getBindType, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, __set_state, arginfo_phalcon_db_column___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Phalcon_Db_Column, hasDefault, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -9765,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) @@ -13338,6 +13351,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields); static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate); static PHP_METHOD(Phalcon_Mvc_Model, getRelated); static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords); +static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder); static PHP_METHOD(Phalcon_Mvc_Model, __call); static PHP_METHOD(Phalcon_Mvc_Model, __callStatic); static PHP_METHOD(Phalcon_Mvc_Model, __set); @@ -13622,6 +13636,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model__getrelatedrecords, 0, 0, 3) ZEND_ARG_INFO(0, arguments) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model__invokefinder, 0, 0, 2) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, arguments) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model___call, 0, 0, 2) ZEND_ARG_INFO(0, method) ZEND_ARG_INFO(0, arguments) @@ -13736,6 +13755,7 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, useDynamicUpdate, arginfo_phalcon_mvc_model_usedynamicupdate, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Mvc_Model, getRelated, arginfo_phalcon_mvc_model_getrelated, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, _getRelatedRecords, arginfo_phalcon_mvc_model__getrelatedrecords, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_Model, _invokeFinder, arginfo_phalcon_mvc_model__invokefinder, ZEND_ACC_PROTECTED|ZEND_ACC_FINAL|ZEND_ACC_STATIC) PHP_ME(Phalcon_Mvc_Model, __call, arginfo_phalcon_mvc_model___call, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, __callStatic, arginfo_phalcon_mvc_model___callstatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_ME(Phalcon_Mvc_Model, __set, arginfo_phalcon_mvc_model___set, ZEND_ACC_PUBLIC) @@ -17230,6 +17250,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Security_Random); static PHP_METHOD(Phalcon_Security_Random, bytes); static PHP_METHOD(Phalcon_Security_Random, hex); +static PHP_METHOD(Phalcon_Security_Random, base58); static PHP_METHOD(Phalcon_Security_Random, base64); static PHP_METHOD(Phalcon_Security_Random, base64Safe); static PHP_METHOD(Phalcon_Security_Random, uuid); @@ -17243,6 +17264,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_hex, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base58, 0, 0, 0) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base64, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() @@ -17259,6 +17284,7 @@ ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_security_random_method_entry) { PHP_ME(Phalcon_Security_Random, bytes, arginfo_phalcon_security_random_bytes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, hex, arginfo_phalcon_security_random_hex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security_Random, base58, arginfo_phalcon_security_random_base58, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64, arginfo_phalcon_security_random_base64, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64Safe, arginfo_phalcon_security_random_base64safe, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, uuid, NULL, ZEND_ACC_PUBLIC) @@ -18300,6 +18326,8 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage); static PHP_METHOD(Phalcon_Validation_Message, getMessage); static PHP_METHOD(Phalcon_Validation_Message, setField); static PHP_METHOD(Phalcon_Validation_Message, getField); +static PHP_METHOD(Phalcon_Validation_Message, setCode); +static PHP_METHOD(Phalcon_Validation_Message, getCode); static PHP_METHOD(Phalcon_Validation_Message, __toString); static PHP_METHOD(Phalcon_Validation_Message, __set_state); @@ -18307,6 +18335,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___construct, 0, 0, 1) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, field) ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, code) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_settype, 0, 0, 1) @@ -18321,6 +18350,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_setfield, 0, 0, 1) ZEND_ARG_INFO(0, field) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_setcode, 0, 0, 1) + ZEND_ARG_INFO(0, code) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___set_state, 0, 0, 1) ZEND_ARG_ARRAY_INFO(0, message, 0) ZEND_END_ARG_INFO() @@ -18333,6 +18366,8 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_message_method_entry) { PHP_ME(Phalcon_Validation_Message, getMessage, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, setField, arginfo_phalcon_validation_message_setfield, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, getField, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message, setCode, arginfo_phalcon_validation_message_setcode, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message, getCode, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, __toString, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, __set_state, arginfo_phalcon_validation_message___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_FE_END diff --git a/build/32bits/php_phalcon.h b/build/32bits/php_phalcon.h index 34511ce576f..07c26e8d906 100644 --- a/build/32bits/php_phalcon.h +++ b/build/32bits/php_phalcon.h @@ -196,7 +196,7 @@ typedef zend_function zephir_fcall_cache_entry; #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "2.0.7" +#define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" #define PHP_PHALCON_ZEPVERSION "0.7.1b" diff --git a/build/64bits/phalcon.zep.c b/build/64bits/phalcon.zep.c index e17ef2cdf8d..10333e680e4 100644 --- a/build/64bits/phalcon.zep.c +++ b/build/64bits/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 441, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -18298,15 +18298,15 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 1) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _4, _6); @@ -18315,11 +18315,11 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 2) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -18340,16 +18340,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { _7 = 1; } i = _8; - ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 109); + ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 110); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, _2); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, _2); zephir_check_call_status(); zephir_concat_self(&padding, _4 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); zephir_concat_self(&padding, _6 TSRMLS_CC); break; @@ -18357,15 +18357,15 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 4) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0x80); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 131, _4, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 132, _4, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _2, _6); @@ -18374,11 +18374,11 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 5) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -18387,7 +18387,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZVAL_STRING(&_1, " ", 0); ZEPHIR_SINIT_VAR(_11); ZVAL_LONG(&_11, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, &_1, &_11); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, &_1, &_11); zephir_check_call_status(); break; } @@ -18475,18 +18475,18 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_VAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_INIT_VAR(padding); ZEPHIR_CONCAT_VV(padding, _10, last); @@ -18507,18 +18507,18 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (length - paddingSize)); @@ -18537,7 +18537,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); paddingSize = zephir_get_intval(_5); break; @@ -18693,7 +18693,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); if (ZEPHIR_LT_LONG(ivSize, zephir_fast_strlen_ev(encryptKey))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Size of key is too large for this algorithm", "phalcon/crypt.zep", 320); @@ -18701,14 +18701,14 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 134, ivSize, &_0); + ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 135, ivSize, &_0); zephir_check_call_status(); if (Z_TYPE_P(iv) != IS_STRING) { ZEPHIR_CALL_FUNCTION(&_1, "strval", NULL, 21, iv); zephir_check_call_status(); ZEPHIR_CPY_WRT(iv, _1); } - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); if (Z_TYPE_P(blockSize) != IS_LONG) { _2 = zephir_get_intval(blockSize); @@ -18731,7 +18731,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { } else { ZEPHIR_CPY_WRT(padded, text); } - ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 136, cipher, encryptKey, padded, mode, iv); + ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 137, cipher, encryptKey, padded, mode, iv); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, iv, _1); RETURN_MM(); @@ -18782,7 +18782,7 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); ZEPHIR_INIT_VAR(keySize); ZVAL_LONG(keySize, zephir_fast_strlen_ev(decryptKey)); @@ -18802,9 +18802,9 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZVAL_LONG(&_1, 0); ZEPHIR_INIT_VAR(_2); zephir_substr(_2, text, 0 , zephir_get_intval(ivSize), 0); - ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 137, cipher, decryptKey, _0, mode, _2); + ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 138, cipher, decryptKey, _0, mode, _2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); ZEPHIR_OBS_VAR(paddingType); zephir_read_property_this(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -18861,7 +18861,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (safe == 1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 114, _0); + ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 115, _0); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "+/", 0); @@ -18873,7 +18873,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { } ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -18923,13 +18923,13 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZVAL_STRING(&_1, "+/", 0); ZEPHIR_CALL_FUNCTION(&_2, "strtr", NULL, 54, text, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 115, _2); + ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 116, _2); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _3, key); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 115, text); + ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 116, text); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _2, key); zephir_check_call_status(); @@ -18943,7 +18943,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableCiphers) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 138); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 139); zephir_check_call_status(); RETURN_MM(); @@ -18955,7 +18955,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableModes) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 139); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 140); zephir_check_call_status(); RETURN_MM(); @@ -19241,7 +19241,7 @@ static PHP_METHOD(Phalcon_Debug, listenExceptions) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _0); zephir_check_call_status(); RETURN_THIS(); @@ -19261,7 +19261,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtLowSeverity", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 150, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 151, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 2, 0 TSRMLS_CC); @@ -19269,7 +19269,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_2, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _2); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _2); zephir_check_call_status(); RETURN_THIS(); @@ -19304,7 +19304,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, 151); + ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 152); zephir_check_call_status(); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_VAR(_2); @@ -19344,7 +19344,7 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { ZVAL_LONG(&_3, 2); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "utf-8", 0); - ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 152, _0, &_3, &_4); + ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 153, _0, &_3, &_4); zephir_check_call_status(); RETURN_MM(); } @@ -19395,7 +19395,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 153, v); + ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); zephir_check_call_status(); if (zephir_is_true(_4)) { ZEPHIR_INIT_NVAR(varDump); @@ -19412,7 +19412,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { if (Z_TYPE_P(v) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_8); ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 154, v, _8); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); @@ -19453,7 +19453,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 153, variable); + ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); zephir_check_call_status(); if (zephir_is_true(_0)) { if (Z_TYPE_P(variable) == IS_BOOL) { @@ -19487,7 +19487,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 154, variable); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); RETURN_MM(); @@ -19508,7 +19508,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -19527,7 +19527,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -19619,9 +19619,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { } else { ZEPHIR_INIT_VAR(classReflection); object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -19654,9 +19654,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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -19717,7 +19717,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -19800,7 +19800,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_LONG(&_23, 2); ZEPHIR_SINIT_NVAR(_25); ZVAL_STRING(&_25, "UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 152, _21, &_23, &_25); + ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 153, _21, &_23, &_25); zephir_check_call_status(); zephir_concat_self(&html, _8 TSRMLS_CC); } @@ -19824,7 +19824,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -19833,7 +19833,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19858,10 +19858,10 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } _0 = zephir_fetch_static_property_ce(phalcon_debug_ce, SL("_isActive") TSRMLS_CC); @@ -19925,7 +19925,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -19944,7 +19944,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, ""); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, ""); @@ -19970,7 +19970,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", _13, "
", keyRequest, "", value, "
", keyRequest, "", _13, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 165); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -19985,7 +19985,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); @@ -20120,7 +20120,7 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20153,7 +20153,7 @@ static PHP_METHOD(Phalcon_Di, setShared) { object_init_ex(service, phalcon_di_service_ce); ZEPHIR_SINIT_VAR(_0); ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, &_0); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20221,7 +20221,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20398,9 +20398,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 65, parameters); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 66, parameters); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20411,9 +20411,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20425,9 +20425,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20679,7 +20679,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_VAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 68, _1); zephir_check_call_status(); if (zephir_array_isset(services, possibleService)) { if (zephir_fast_count_int(arguments TSRMLS_CC)) { @@ -20699,7 +20699,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_NVAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 68, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", NULL, 0, _4, definition); zephir_check_call_status(); @@ -21748,13 +21748,13 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); zephir_check_call_status(); RETURN_MM(); @@ -21776,11 +21776,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21800,7 +21800,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -21821,7 +21821,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21839,7 +21839,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -21858,7 +21858,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -21877,7 +21877,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); zephir_check_call_status(); RETURN_MM(); @@ -22156,16 +22156,16 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22175,14 +22175,14 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22192,7 +22192,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -22215,13 +22215,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } @@ -22230,7 +22230,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); zephir_check_call_status(); RETURN_MM(); } @@ -23011,7 +23011,7 @@ static PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -23035,7 +23035,7 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -23143,7 +23143,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23214,7 +23214,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23272,7 +23272,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 392, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 393, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 394, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 393, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 395, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 396, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 397, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 398, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 399, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,9 +23858,9 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 400, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 114, _2); + ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); zephir_filter_alphanum(safeBytes, _4); if (!(zephir_is_true(safeBytes))) { @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 401, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23973,11 +23973,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZVAL_STRING(&_5, "%02s", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, workFactor); - ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 188, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 189, &_5, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 401, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 401, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,9 +24081,9 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 400, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 114, _2); + ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); zephir_filter_alphanum(safeBytes, _3); ZEPHIR_INIT_NVAR(_1); @@ -24123,9 +24123,9 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 400, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 114, token); + ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); ZEPHIR_CPY_WRT(token, _1); ZEPHIR_INIT_NVAR(_0); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 402, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25512,7 +25512,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25532,7 +25532,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -26036,20 +26036,20 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 129, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 414, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "ASCII//TRANSLIT", 0); - ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 371, &_0, &_3, text); + ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 373, &_0, &_3, text); zephir_check_call_status(); zephir_get_strval(text, _5); } @@ -26107,12 +26107,12 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_CPY_WRT(friendly, _11); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 128, &_3); + ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 129, &_3); zephir_check_call_status(); if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 414, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 418, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26649,7 +26649,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26697,7 +26697,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26742,24 +26742,24 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 372, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 374, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 421, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 421, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 422, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 423, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 423, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 424, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27549,7 +27549,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 0); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 7); + ZVAL_LONG(_0, 8); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -27618,7 +27618,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 440, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27652,11 +27652,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -27685,7 +27685,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 440, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); zephir_check_call_status(); break; } @@ -28177,7 +28177,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, 78, role); + ZEPHIR_CALL_METHOD(NULL, roleObject, "__construct", NULL, 79, role); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rolesNames"), PH_NOISY_CC); @@ -28243,7 +28243,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { ; zephir_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(deepInheritName, _7); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 79, roleName, deepInheritName); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 80, roleName, deepInheritName); zephir_check_call_status(); } } @@ -28320,7 +28320,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, 80, resourceName); + ZEPHIR_CALL_METHOD(NULL, resourceObject, "__construct", NULL, 81, resourceName); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_resourcesNames"), PH_NOISY_CC); @@ -29186,7 +29186,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { ) { ZEPHIR_GET_HVALUE(item, _3); zephir_array_fetch_string(&_4, item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 85, _4); + ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 86, _4); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, item, SS("name"), 0 TSRMLS_CC)) { @@ -29199,7 +29199,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, 86, expr); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 87, expr); zephir_check_call_status(); RETURN_MM(); } @@ -29391,7 +29391,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { ZEPHIR_GET_HVALUE(annotationData, _3); ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 86, annotationData); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 87, annotationData); zephir_check_call_status(); zephir_array_append(&annotations, _4, PH_SEPARATE, "phalcon/annotations/collection.zep", 66); } @@ -31107,15 +31107,15 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotations); ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 87); + ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 88); zephir_check_call_status(); if (Z_TYPE_P(comment) == IS_STRING) { ZEPHIR_INIT_VAR(classAnnotations); - ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 89); + ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 90); zephir_check_call_status(); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(classAnnotations, comment, _0, _1 TSRMLS_CC); zephir_check_call_status(); @@ -31123,7 +31123,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, 90); + ZEPHIR_CALL_METHOD(&properties, reflection, "getproperties", NULL, 91); zephir_check_call_status(); if (zephir_fast_count_int(properties TSRMLS_CC)) { line = 1; @@ -31139,7 +31139,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(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_5); ZVAL_LONG(_5, line); @@ -31156,7 +31156,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, 91); + ZEPHIR_CALL_METHOD(&methods, reflection, "getmethods", NULL, 92); zephir_check_call_status(); if (zephir_fast_count_int(methods TSRMLS_CC)) { ZEPHIR_INIT_VAR(annotationsMethods); @@ -32520,7 +32520,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, 81, _0); + ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 82, _0); zephir_check_call_status(); RETURN_MM(); @@ -32554,7 +32554,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_CONCAT_SVV(_2, "_PHAN", _1, key); zephir_fast_strtolower(_0, _2); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 82, _0, data, _3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 83, _0, data, _3); zephir_check_call_status(); RETURN_MM(); @@ -32809,10 +32809,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, 83, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 84, _0); zephir_check_call_status(); if (Z_TYPE_P(serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 74, serialized); + ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 75, serialized); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_OBJECT) { RETURN_CCTOR(data); @@ -32848,9 +32848,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, 73, data); + ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 74, data); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _0, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _0, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -33064,7 +33064,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 92, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33100,7 +33100,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33155,7 +33155,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33191,7 +33191,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33474,7 +33474,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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } @@ -33830,7 +33830,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, 92, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -33861,7 +33861,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, 93, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -33905,7 +33905,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, 94, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -33936,7 +33936,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, 95, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -33980,7 +33980,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, 97, resource); + ZEPHIR_CALL_METHOD(NULL, collection, "add", NULL, 98, resource); zephir_check_call_status(); RETURN_THIS(); @@ -34019,7 +34019,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, 98, code); + ZEPHIR_CALL_METHOD(NULL, collection, "addinline", NULL, 99, code); zephir_check_call_status(); RETURN_THIS(); @@ -34256,7 +34256,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 99, completeTargetPath); + ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 100, completeTargetPath); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_0); @@ -35071,7 +35071,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealSourcePath) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_VV(_1, basePath, sourcePath); - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 62, _1); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, _1); zephir_check_call_status(); RETURN_MM(); } @@ -35107,7 +35107,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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } @@ -35316,7 +35316,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35376,7 +35376,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Js, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35444,7 +35444,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 100, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 101, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35495,7 +35495,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Js, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 100, _1, path, local, filter, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 101, _1, path, local, filter, attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -36089,7 +36089,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCA", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(cachedContent)) { RETURN_MM_NULL(); @@ -36162,7 +36162,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, lastKey, preparedContent, ttl); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, lastKey, preparedContent, ttl); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); zephir_check_call_status(); @@ -36203,11 +36203,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, increment) { if ((zephir_function_exists_ex(SS("apc_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 101, prefixedKey, _1); + ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 102, prefixedKey, _1); zephir_check_call_status(); RETURN_CCTOR(result); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_NVAR(result); @@ -36248,11 +36248,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement) { if ((zephir_function_exists_ex(SS("apc_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 102, lastKey, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 103, lastKey, _1); zephir_check_call_status(); RETURN_MM(); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, lastKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, lastKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_VAR(result); @@ -36293,7 +36293,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "_PHCA", _0, keyName); - ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 103, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 104, _1); zephir_check_call_status(); RETURN_MM(); @@ -36386,7 +36386,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCA", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 104, lastKey); + ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 105, lastKey); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(_1)) { RETURN_MM_BOOL(1); @@ -36427,7 +36427,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, flush) { ZEPHIR_CPY_WRT(item, (*ZEPHIR_TMP_ITERATOR_PTR)); } zephir_array_fetch_string(&_4, item, SL("key"), PH_NOISY | PH_READONLY, "phalcon/cache/backend/apc.zep", 264 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 103, _4); + ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 104, _4); zephir_check_call_status(); } _0->funcs->dtor(_0 TSRMLS_CC); @@ -36504,7 +36504,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, __construct) { return; } } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -36696,7 +36696,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, 106, cacheFile); + ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 107, cacheFile); zephir_check_call_status(); RETURN_MM(); } @@ -36729,7 +36729,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_INIT_VAR(_2); object_init_ex(_2, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -36985,7 +36985,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, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -37007,7 +37007,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { _4 = zephir_start_with(key, prefix, NULL); } if (_4) { - ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 106, cacheFile); + ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 107, cacheFile); zephir_check_call_status(); if (!(zephir_is_true(_5))) { RETURN_MM_BOOL(0); @@ -37115,7 +37115,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, __construct) { ZVAL_STRING(_1, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_1, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37679,7 +37679,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, __construct) { ZVAL_STRING(_0, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38500,7 +38500,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, serialize) { ZEPHIR_OBS_VAR(_1); zephir_read_property_this(&_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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -38516,7 +38516,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, unserialize) { - ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 75, 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); @@ -38581,7 +38581,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", 79); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38681,7 +38681,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, 108); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&document, _3, "findone", NULL, 0, conditions); zephir_check_call_status(); @@ -38770,7 +38770,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_0); zephir_time(_0); @@ -38829,7 +38829,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -38839,7 +38839,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, 109); + ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 110); 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); @@ -38885,7 +38885,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { zephir_time(_0); zephir_array_update_string(&_2, SL("$gt"), &_0, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 1, 0 TSRMLS_CC); @@ -38943,7 +38943,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, exists) { ZEPHIR_CONCAT_VV(lastKey, _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 2, 0 TSRMLS_CC); @@ -38970,7 +38970,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, gc) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -39005,7 +39005,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -39056,7 +39056,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -39095,11 +39095,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, flush) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "remove", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 109); + ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 110); zephir_check_call_status(); if (zephir_safe_mod_long_long(zephir_get_intval(_1), 100 TSRMLS_CC) == 0) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "gc", NULL, 0); @@ -39183,7 +39183,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, __construct) { ZVAL_STRING(_0, "_PHCR", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39201,10 +39201,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { @@ -39743,7 +39741,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, __construct) { ZVAL_STRING(_0, "_PHCX", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39768,7 +39766,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCX", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 83, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 84, prefixedKey); zephir_check_call_status(); if (!(zephir_is_true(cachedContent))) { RETURN_MM_NULL(); @@ -39846,10 +39844,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_CPY_WRT(tt1, lifetime); } if (zephir_is_numeric(cachedContent)) { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, cachedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, cachedContent, tt1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, preparedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, preparedContent, tt1); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); @@ -39871,14 +39869,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 169); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 85, specialKey, keys); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -39904,14 +39902,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, delete) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 199); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39948,7 +39946,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { } ZEPHIR_INIT_VAR(retval); array_init(retval); - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -39997,7 +39995,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCX", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 110, lastKey); + ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 111, lastKey); zephir_check_call_status(); RETURN_MM(); } @@ -40036,14 +40034,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, increment) { if ((zephir_function_exists_ex(SS("xcache_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 111, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 112, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -40081,14 +40079,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, decrement) { if ((zephir_function_exists_ex(SS("xcache_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 112, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 113, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -40113,7 +40111,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 350); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -40125,10 +40123,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_GET_HMKEY(key, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); zephir_array_unset(&keys, key, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 113, key); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 114, key); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); } RETURN_MM_BOOL(1); @@ -40226,7 +40224,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, data); zephir_check_call_status(); RETURN_MM(); @@ -40242,7 +40240,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 115, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 116, data); zephir_check_call_status(); RETURN_MM(); @@ -40339,7 +40337,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, data); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, data); zephir_check_call_status(); RETURN_MM(); @@ -40355,7 +40353,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 74, data); + ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 75, data); zephir_check_call_status(); RETURN_MM(); @@ -40450,7 +40448,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 116, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 117, data); zephir_check_call_status(); RETURN_MM(); @@ -40466,7 +40464,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 117, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 118, data); zephir_check_call_status(); RETURN_MM(); @@ -40731,7 +40729,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, start) { ZEPHIR_MM_GROW(); zephir_update_property_this(this_ptr, SL("_buffering"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -40746,7 +40744,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, getContent) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 119); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 120); zephir_check_call_status(); RETURN_MM(); } @@ -40763,7 +40761,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, stop) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_buffering"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -41153,7 +41151,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (_0) { Z_SET_ISREF_P(arguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 121, arguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 122, arguments); Z_UNSET_ISREF_P(arguments); zephir_check_call_status(); } @@ -41168,7 +41166,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_5, "--", 0); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 2); - ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 122, arg, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 123, arg, &_5, &_6); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_5); @@ -41205,7 +41203,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_12, "-", 0); ZEPHIR_SINIT_NVAR(_13); ZVAL_LONG(&_13, 1); - ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 122, arg, &_12, &_13); + ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 123, arg, &_12, &_13); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_15, 0)) { ZEPHIR_SINIT_NVAR(_12); @@ -41223,21 +41221,21 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (str) { ZEPHIR_INIT_NVAR(_9); - ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 123); + ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 124); zephir_check_call_status(); zephir_fast_join(_9, _7, args TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_arguments"), _9 TSRMLS_CC); } else { if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("task"), &_15, PH_COPY | PH_SEPARATE); } if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("action"), &_7, PH_COPY | PH_SEPARATE); @@ -41295,7 +41293,7 @@ static PHP_METHOD(Phalcon_Cli_Dispatcher, __construct) { ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_options"), _0 TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 124); + ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 125); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -41530,7 +41528,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_1, SS("task"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 125, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 126, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/cli/router.zep", 90); @@ -41543,7 +41541,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 125, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 126, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/cli/router.zep", 96); @@ -41830,7 +41828,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEPHIR_INIT_VAR(strParams); zephir_substr(strParams, _15, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); if (zephir_is_true(strParams)) { - ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 123); + ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 124); zephir_check_call_status(); ZEPHIR_INIT_NVAR(params); zephir_fast_explode(params, _17, strParams, LONG_MAX TSRMLS_CC); @@ -41886,7 +41884,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, 125, pattern, paths); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 126, pattern, paths); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), route TSRMLS_CC); RETURN_CCTOR(route); @@ -42043,7 +42041,15 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Task) { static PHP_METHOD(Phalcon_Cli_Task, __construct) { + int ZEPHIR_LAST_CALL_STATUS; + + ZEPHIR_MM_GROW(); + if ((zephir_method_exists_ex(this_ptr, SS("onconstruct") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_CALL_METHOD(NULL, this_ptr, "onconstruct", NULL, 0); + zephir_check_call_status(); + } + ZEPHIR_MM_RESTORE(); } @@ -42916,7 +42922,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { } - ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 126, filePath, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 127, filePath, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(iniConfig)) { ZEPHIR_INIT_VAR(_0); @@ -43013,7 +43019,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { zephir_substr(_3, path, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); zephir_get_strval(path, _3); zephir_create_array(return_value, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 127, path, value); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 128, path, value); zephir_check_call_status(); zephir_array_update_zval(&return_value, key, &_4, PH_COPY); RETURN_MM(); @@ -43185,10 +43191,10 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "yaml", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 129, &_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", 62); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_config_exception_ce, "Yaml extension not loaded", "phalcon/config/adapter/yaml.zep", 71); return; } if (!ZEPHIR_IS_STRING_IDENTICAL(callbacks, "")) { @@ -43197,11 +43203,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, ndocs); Z_SET_ISREF_P(_3); - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath, _2, _3, callbacks); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath, _2, _3, callbacks); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath); zephir_check_call_status(); } if (ZEPHIR_IS_FALSE_IDENTICAL(yamlConfig)) { @@ -43213,7 +43219,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_CONCAT_SVS(_5, "Configuration file ", _3, " can't be loaded"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 72 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 81 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -45519,6 +45525,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Column) { zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_JSONB"), 16 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_TIMESTAMP"), 17 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_db_column_ce, SL("BIND_PARAM_NULL"), 0 TSRMLS_CC); zend_declare_class_constant_long(phalcon_db_column_ce, SL("BIND_PARAM_INT"), 1 TSRMLS_CC); @@ -45623,7 +45631,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { if (zephir_array_isset_string_fetch(&type, definition, SS("type"), 0 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 292); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 297); return; } ZEPHIR_OBS_VAR(typeReference); @@ -45657,7 +45665,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_scale"), scale TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 338); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 343); return; } while(0); @@ -45684,7 +45692,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_autoIncrement"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 378); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 383); return; } while(0); @@ -45776,7 +45784,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_columnName"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(columnName); if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_name"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 484); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 489); return; } } @@ -45805,7 +45813,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { zephir_array_update_string(&definition, SL("size"), &size, PH_COPY | PH_SEPARATE); } if (zephir_array_isset_string_fetch(&scale, data, SS("_scale"), 1 TSRMLS_CC)) { - zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 518 TSRMLS_CC); + zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 523 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_1, 0) || ZEPHIR_IS_LONG(_1, 7) || ZEPHIR_IS_LONG(_1, 3) || ZEPHIR_IS_LONG(_1, 9) || ZEPHIR_IS_LONG(_1, 14)) { zephir_array_update_string(&definition, SL("scale"), &scale, PH_COPY | PH_SEPARATE); @@ -45836,12 +45844,22 @@ 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, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 141, columnName, definition); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Db_Column, hasDefault) { + + zval *_0; + + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_default"), PH_NOISY_CC); + RETURN_BOOL(Z_TYPE_P(_0) != IS_NULL); + +} + @@ -45896,6 +45914,8 @@ ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getBindType); ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getDefault); +ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, hasDefault); + ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, __set_state); @@ -48018,19 +48038,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, 145, sqlStatement); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlstatement", NULL, 146, sqlStatement); zephir_check_call_status(); if (Z_TYPE_P(sqlVariables) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 146, sqlVariables); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 147, sqlVariables); zephir_check_call_status(); } if (Z_TYPE_P(sqlBindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 147, sqlBindTypes); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 148, sqlBindTypes); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_0); zephir_microtime(_0, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 148, _0); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 149, _0); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforestartprofile") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "beforestartprofile", NULL, 0, activeProfile); @@ -49461,7 +49481,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 329); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 337); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -49523,13 +49543,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49539,7 +49565,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 196)) { + if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 204)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 9); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49549,7 +49575,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 206)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 214)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49559,7 +49585,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 216)) { + if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 224)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49568,7 +49594,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 225)) { + if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 233)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 10); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49577,19 +49603,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 12); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 13); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 11); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49600,7 +49626,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 265)) { + if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 273)) { ZEPHIR_INIT_NVAR(matches); ZVAL_NULL(matches); ZEPHIR_INIT_NVAR(_8); @@ -49620,7 +49646,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } } } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 280)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 288)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -49628,30 +49654,30 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 311 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 310 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 317 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 325 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 326 TSRMLS_CC); zephir_array_update_string(&definition, SL("default"), &_14, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 324 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 332 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 325); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 333); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); @@ -49707,7 +49733,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, connect) { ZEPHIR_OBS_NVAR(descriptor); zephir_read_property_this(&descriptor, this_ptr, SL("_descriptor"), PH_NOISY_CC); } - ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_OBS_VAR(startup); if (zephir_array_isset_string_fetch(&startup, descriptor, SS("startup"), 0 TSRMLS_CC)) { @@ -49831,7 +49857,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { } if (zephir_memnstr_str(columnType, SL("TIMESTAMP"), "phalcon/db/adapter/pdo/oracle.zep", 144)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 0); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } @@ -49881,7 +49907,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/oracle.zep", 194 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _8, PH_SEPARATE, "phalcon/db/adapter/pdo/oracle.zep", 199); ZEPHIR_CPY_WRT(oldColumn, columnName); @@ -50016,7 +50042,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, connect) { zephir_array_update_string(&descriptor, SL("password"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 142, descriptor); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(schema))) { ZEPHIR_INIT_VAR(sql); @@ -50060,7 +50086,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 318); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 326); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -50124,7 +50150,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 182)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50136,14 +50168,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 195)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 203)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 4); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50152,14 +50184,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 204)) { + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 212)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 213)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 221)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50170,7 +50202,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 224)) { + if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 232)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50182,19 +50214,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_9, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 16); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 15); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50208,7 +50240,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 266)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 274)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -50216,22 +50248,22 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 282 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 290 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 289 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 297 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 311 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 312 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); ZVAL_STRING(_8, "/^'|'?::[[:alnum:][:space:]]+$/", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_9); @@ -50241,7 +50273,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_check_temp_parameter(_9); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_15, PH_COPY | PH_SEPARATE); - zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 305 TSRMLS_CC); + zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_18); ZVAL_STRING(&_18, "null", 0); ZEPHIR_CALL_FUNCTION(&_19, "strcasecmp", &_20, 19, _17, &_18); @@ -50250,12 +50282,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("default"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 321 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 314); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 322); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); @@ -50303,11 +50335,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 329); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 337); return; } if (!(zephir_fast_count_int(columns TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 333); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 341); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dialect"), PH_NOISY_CC); @@ -50321,7 +50353,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 349); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 357); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -50347,13 +50379,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 361 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } else { - zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 356 TSRMLS_CC); + zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 364 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _6, ";"); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _4); @@ -50414,7 +50446,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 381); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 389); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -50440,7 +50472,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 386 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 394 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -50448,7 +50480,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } else { ZEPHIR_INIT_VAR(_6); if (!(ZEPHIR_IS_EMPTY(sql))) { - zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 390 TSRMLS_CC); + zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 398 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _7, ";"); ZEPHIR_CALL_METHOD(&_6, this_ptr, "execute", NULL, 0, _4); @@ -50546,7 +50578,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, connect) { return; } zephir_array_update_string(&descriptor, SL("dsn"), &dbname, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -50652,7 +50684,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { } if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/sqlite.zep", 166)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 1); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } @@ -50766,7 +50798,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_array_fetch_long(&columnName, field, 1, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 286 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/sqlite.zep", 287); ZEPHIR_CPY_WRT(oldColumn, columnName); @@ -51005,11 +51037,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_MySQL) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { - zephir_fcall_cache_entry *_9 = NULL; - HashTable *_6; - HashPosition _5; + zephir_fcall_cache_entry *_10 = NULL; + HashTable *_7; + HashPosition _6; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *value = NULL, *valueSql, **_7, _8 = zval_used_for_init, _10 = zval_used_for_init, *_11; + zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *value = NULL, *valueSql, **_8, _9 = zval_used_for_init, _11 = zval_used_for_init, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -51083,6 +51115,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHAR") TSRMLS_CC); @@ -51204,7 +51242,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized MySQL data type", "phalcon/db/dialect/mysql.zep", 191); + ZEPHIR_INIT_VAR(_5); + object_init_ex(_5, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized MySQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_5, "phalcon/db/dialect/mysql.zep", 197 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -51213,36 +51260,36 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_6, &_5, 0, 0, "phalcon/db/dialect/mysql.zep", 202); + zephir_is_iterable(typeValues, &_7, &_6, 0, 0, "phalcon/db/dialect/mysql.zep", 208); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zephir_hash_move_forward_ex(_7, &_6) ) { - ZEPHIR_GET_HVALUE(value, _7); - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_9, 142, value, &_8); + ZEPHIR_GET_HVALUE(value, _8); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_10, 143, value, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_4); + ZEPHIR_CONCAT_SVS(_4, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _4 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_8); - ZVAL_LONG(&_8, 0); - ZEPHIR_SINIT_VAR(_10); - ZVAL_LONG(&_10, -2); - ZEPHIR_INIT_VAR(_11); - zephir_substr(_11, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(", _11, ")"); - zephir_concat_self(&columnSql, _4 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_LONG(&_9, 0); + ZEPHIR_SINIT_VAR(_11); + ZVAL_LONG(&_11, -2); + ZEPHIR_INIT_NVAR(_5); + zephir_substr(_5, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(", _5, ")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_9, 142, typeValues, &_10); + ZEPHIR_SINIT_NVAR(_11); + ZVAL_STRING(&_11, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_3, "addcslashes", &_10, 143, typeValues, &_11); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(\"", _2, "\")"); + ZEPHIR_CONCAT_SVS(_4, "(\"", _3, "\")"); zephir_concat_self(&columnSql, _4 TSRMLS_CC); } } @@ -51255,7 +51302,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51293,33 +51340,41 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " ADD `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 229)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_4, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_8)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); zephir_check_call_status(); if (zephir_is_true(afterPosition)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SV(_5, " AFTER ", afterPosition); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_7); + ZEPHIR_CONCAT_SV(_7, " AFTER ", afterPosition); + zephir_concat_self(&sql, _7 TSRMLS_CC); } } RETURN_CCTOR(sql); @@ -51329,7 +51384,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51370,20 +51425,28 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " MODIFY `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -51759,12 +51822,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL, *_13 = NULL; - HashTable *_1, *_11, *_17; - HashPosition _0, _10, _16; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL, *_17 = NULL; + HashTable *_1, *_15, *_19; + HashPosition _0, _14, _18; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, **_12, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, **_16, **_20, *_21; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51798,7 +51861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 354); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -51818,7 +51881,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 413); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -51830,42 +51893,50 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { zephir_concat_self_str(&columnLine, SL(" AUTO_INCREMENT") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 407); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_11, &_10, 0, 0, "phalcon/db/dialect/mysql.zep", 435); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(index, _12); + ZEPHIR_GET_HVALUE(index, _16); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -51873,79 +51944,79 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_13, 44, _4); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_17, 44, _4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); ZEPHIR_CONCAT_SVS(indexSql, "PRIMARY KEY (", _3, ")"); } else { ZEPHIR_INIT_NVAR(indexSql); if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_14, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", &_13, 44, _14); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_17, 44, _9); zephir_check_call_status(); - ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _7, ")"); + ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_15, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", &_13, 44, _15); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _14, ")"); + ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 433); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_17, &_16, 0, 0, "phalcon/db/dialect/mysql.zep", 457); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); for ( - ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS - ; zephir_hash_move_forward_ex(_17, &_16) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(reference, _18); + ZEPHIR_GET_HVALUE(reference, _20); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_13, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_17, 44, _6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", &_13, 44, _19); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _14, "`(", _15, ")"); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _9, "`(", _12, ")"); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 455); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); } } - ZEPHIR_INIT_VAR(_21); - zephir_fast_join_str(_21, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _21, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ", _3); - zephir_concat_self(&sql, _20 TSRMLS_CC); + ZEPHIR_INIT_VAR(_21); + ZEPHIR_CONCAT_SV(_21, " ", _3); + zephir_concat_self(&sql, _21 TSRMLS_CC); } RETURN_CCTOR(sql); @@ -52035,7 +52106,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 493); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -52397,7 +52468,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 633); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -52405,7 +52476,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 642); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(tableCollation); @@ -52413,13 +52484,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 652 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 652); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 653); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { @@ -52518,7 +52589,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL; + zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL, *_0, *_1 = NULL, *_2; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -52557,6 +52628,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TIMESTAMP", 1); break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { ZEPHIR_INIT_NVAR(columnSql); ZEPHIR_CONCAT_SVS(columnSql, "CHAR(", size, ")"); @@ -52579,7 +52656,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TINYINT(1)", 1); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized Oracle data type", "phalcon/db/dialect/oracle.zep", 119); + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "Unrecognized Oracle data type at column ", _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _2); + zephir_check_call_status(); + zephir_throw_exception_debug(_0, "phalcon/db/dialect/oracle.zep", 125 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } while(0); @@ -52619,7 +52705,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 130); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 136); return; } @@ -52659,7 +52745,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 138); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 144); return; } @@ -52697,7 +52783,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_get_strval(columnName, columnName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 146); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 152); return; } @@ -52734,7 +52820,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 154); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 160); return; } @@ -52782,7 +52868,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 163); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 169); return; } @@ -52799,7 +52885,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addPrimaryKey) { zephir_get_strval(schemaName, schemaName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 171); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 177); return; } @@ -52836,7 +52922,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 179); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 185); return; } @@ -52873,7 +52959,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 187); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 193); return; } @@ -52921,7 +53007,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 195); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 201); return; } @@ -52961,7 +53047,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 203); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; } @@ -53054,7 +53140,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 230); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 236); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -53144,14 +53230,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "' AND OWNER='", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "'"); RETURN_MM(); @@ -53177,7 +53263,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, listViews) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT VIEW_NAME FROM ALL_VIEWS WHERE OWNER='", _0, "' ORDER BY VIEW_NAME"); RETURN_MM(); @@ -53216,14 +53302,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "' AND OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "'"); RETURN_MM(); @@ -53260,14 +53346,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' AND TC.OWNER = '", _2, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); @@ -53293,7 +53379,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, listTables) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TABLE_NAME, OWNER FROM ALL_TABLES WHERE OWNER='", _0, "' ORDER BY OWNER, TABLE_NAME"); RETURN_MM(); @@ -53332,14 +53418,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "' AND IC.INDEX_OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "'"); RETURN_MM(); @@ -53378,15 +53464,15 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { ZEPHIR_INIT_VAR(sql); ZVAL_STRING(sql, "SELECT AC.TABLE_NAME, CC.COLUMN_NAME, AC.CONSTRAINT_NAME, AC.R_OWNER, RCC.TABLE_NAME R_TABLE_NAME, RCC.COLUMN_NAME R_COLUMN_NAME FROM ALL_CONSTRAINTS AC JOIN ALL_CONS_COLUMNS CC ON AC.CONSTRAINT_NAME = CC.CONSTRAINT_NAME JOIN ALL_CONS_COLUMNS RCC ON AC.R_OWNER = RCC.OWNER AND AC.R_CONSTRAINT_NAME = RCC.CONSTRAINT_NAME WHERE AC.CONSTRAINT_TYPE='R' ", 1); if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSVS(_3, "AND AC.OWNER='", _0, "' AND AC.TABLE_NAME = '", _2, "'"); zephir_concat_self(&sql, _3 TSRMLS_CC); } else { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVS(_3, "AND AC.TABLE_NAME = '", _0, "'"); @@ -53482,11 +53568,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { } - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 143, table); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 144, schema); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 144, _1, _3, alias, escapeChar); + ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 145, _1, _3, alias, escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -53518,11 +53604,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Postgresql) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { - zephir_fcall_cache_entry *_6 = NULL; - HashTable *_3; - HashPosition _2; + zephir_fcall_cache_entry *_7 = NULL; + HashTable *_4; + HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *value = NULL, *valueSql, **_4, _5 = zval_used_for_init, _7 = zval_used_for_init, *_8, *_9 = NULL, *_10 = NULL; + zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, *_8 = NULL, _9 = zval_used_for_init, *_10 = NULL, *_11; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -53585,6 +53671,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(columnType, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(columnType, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -53638,7 +53730,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized PostgreSQL data type", "phalcon/db/dialect/postgresql.zep", 143); + ZEPHIR_INIT_VAR(_2); + object_init_ex(_2, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -53647,37 +53748,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_3, &_2, 0, 0, "phalcon/db/dialect/postgresql.zep", 154); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zephir_hash_move_forward_ex(_4, &_3) ) { - ZEPHIR_GET_HVALUE(value, _4); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_6, 142, value, &_5); + ZEPHIR_GET_HVALUE(value, _5); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 143, value, &_6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "\"", _0, "\", "); + zephir_concat_self(&valueSql, _8 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, 0); - ZEPHIR_SINIT_VAR(_7); - ZVAL_LONG(&_7, -2); - ZEPHIR_INIT_VAR(_8); - zephir_substr(_8, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(", _8, ")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_LONG(&_6, 0); + ZEPHIR_SINIT_VAR(_9); + ZVAL_LONG(&_9, -2); + ZEPHIR_INIT_NVAR(_2); + zephir_substr(_2, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "(", _2, ")"); + zephir_concat_self(&columnSql, _8 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_7); - ZVAL_STRING(&_7, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_6, 142, typeValues, &_7); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_7, 143, typeValues, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(\"", _10, "\")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + ZEPHIR_CONCAT_SVS(_11, "(\"", _10, "\")"); + zephir_concat_self(&columnSql, _11 TSRMLS_CC); } } } while(0); @@ -53689,7 +53790,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53733,17 +53834,23 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -53754,7 +53861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zend_bool _10; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _11, *_12 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53845,9 +53952,9 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(&_4, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); if (!ZEPHIR_IS_EQUAL(_3, _4)) { - ZEPHIR_CALL_METHOD(&_6, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = ZEPHIR_IS_EMPTY(_6); + _10 = !zephir_is_true(_6); if (_10) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); @@ -53860,18 +53967,30 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); - zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_11); - ZVAL_STRING(&_11, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_12, "addcslashes", NULL, 142, defaultValue, &_11); + if (zephir_is_true(_8)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" SET DEFAULT \"", _12, "\""); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_13); + ZVAL_STRING(&_13, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_15); + ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); + zephir_concat_self(&sql, _15 TSRMLS_CC); + } } } RETURN_CCTOR(sql); @@ -54248,12 +54367,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL; - HashTable *_1, *_13, *_21; - HashPosition _0, _12, _20; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; + HashTable *_1, *_16, *_21; + HashPosition _0, _15, _20; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, **_14, *_15 = NULL, *_16 = NULL, *_17 = NULL, *_18 = NULL, *_19 = NULL, **_22, *_23, *_24 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -54287,7 +54406,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 327); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -54309,7 +54428,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 383); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -54321,52 +54440,60 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { } - ZEPHIR_CALL_METHOD(&_10, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_10)) { - ZEPHIR_CALL_METHOD(&_11, column, "getname", NULL, 0); + if (zephir_is_true(_13)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 378); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 381); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _9, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 384); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_13, &_12, 0, 0, "phalcon/db/dialect/postgresql.zep", 418); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS + ; zephir_hash_move_forward_ex(_16, &_15) ) { - ZEPHIR_GET_HVALUE(index, _14); + ZEPHIR_GET_HVALUE(index, _17); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -54382,37 +54509,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_10, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 44, _10); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _7, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_11, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "preparetable", NULL, 144, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SVSV(_16, "CREATE INDEX \"", _11, "\" ON ", _15); - zephir_concat_self(&indexSqlAfterCreate, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); + zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _17, ");"); + ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 415); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 443); + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -54420,56 +54547,56 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_GET_HVALUE(reference, _22); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_11, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "preparetable", NULL, 144, _11, schemaName); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _10 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_17, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", NULL, 44, _17); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " (", _15, ")"); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SV(_16, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _19 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 441); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); } } - ZEPHIR_INIT_VAR(_23); - zephir_fast_join_str(_23, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _23, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_24); - ZEPHIR_CONCAT_SV(_24, " ", _3); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_VAR(_23); + ZEPHIR_CONCAT_SV(_23, " ", _3); + zephir_concat_self(&sql, _23 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_24); - ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_23); + ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _23 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -54558,7 +54685,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 480); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -54916,11 +55043,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Sqlite) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { - zephir_fcall_cache_entry *_7 = NULL; - HashTable *_4; - HashPosition _3; + zephir_fcall_cache_entry *_8 = NULL; + HashTable *_5; + HashPosition _4; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, _8 = zval_used_for_init, *_9, *_10 = NULL; + zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *value = NULL, *valueSql, **_6, _7 = zval_used_for_init, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -54979,6 +55106,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -55003,7 +55136,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized SQLite data type", "phalcon/db/dialect/sqlite.zep", 112); + ZEPHIR_INIT_VAR(_3); + object_init_ex(_3, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized SQLite data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_3, "phalcon/db/dialect/sqlite.zep", 118 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -55012,37 +55154,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/sqlite.zep", 123); + zephir_is_iterable(typeValues, &_5, &_4, 0, 0, "phalcon/db/dialect/sqlite.zep", 129); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zephir_hash_move_forward_ex(_5, &_4) ) { - ZEPHIR_GET_HVALUE(value, _5); - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 142, value, &_6); + ZEPHIR_GET_HVALUE(value, _6); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_STRING(&_7, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_8, 143, value, &_7); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _9 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_6); - ZVAL_LONG(&_6, 0); - ZEPHIR_SINIT_VAR(_8); - ZVAL_LONG(&_8, -2); - ZEPHIR_INIT_VAR(_9); - zephir_substr(_9, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(", _9, ")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_LONG(&_7, 0); + ZEPHIR_SINIT_VAR(_10); + ZVAL_LONG(&_10, -2); + ZEPHIR_INIT_NVAR(_3); + zephir_substr(_3, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "(", _3, ")"); + zephir_concat_self(&columnSql, _9 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_7, 142, typeValues, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_8, 143, typeValues, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(\"", _2, "\")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(\"", _11, "\")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } } } while(0); @@ -55054,7 +55196,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4 = NULL, *_5, _6, *_7 = NULL, *_8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -55095,25 +55237,33 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_4, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); + if (zephir_is_true(_4)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 152)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", NULL, 143, defaultValue, &_6); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _7, "\""); + zephir_concat_self(&sql, _8 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_7)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_5, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" PRIMARY KEY AUTOINCREMENT") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -55155,7 +55305,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 165); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 175); return; } @@ -55203,7 +55353,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 173); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 183); return; } @@ -55357,7 +55507,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 217); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 227); return; } @@ -55394,7 +55544,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 235); return; } @@ -55431,7 +55581,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 233); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 243); return; } @@ -55479,7 +55629,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 241); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 251); return; } @@ -55519,7 +55669,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 249); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); return; } @@ -55608,7 +55758,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 278); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -55969,17 +56119,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -55992,17 +56138,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56015,17 +56157,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56038,17 +56176,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } @@ -56061,17 +56195,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } @@ -56224,7 +56354,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchArray) { static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { int ZEPHIR_LAST_CALL_STATUS; - zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *_0, *_1; + zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *pdoStatement; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 3, &fetchStyle, &fetchArgument, &ctorArgs); @@ -56240,32 +56370,29 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { } + ZEPHIR_OBS_VAR(pdoStatement); + zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); if (Z_TYPE_P(fetchStyle) == IS_LONG) { - if ((((int) (zephir_get_numberval(fetchStyle)) & 8)) == 8) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); + if (ZEPHIR_IS_LONG(fetchStyle, 8)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 7)) == 7) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 7)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 10)) == 10) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 10)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle); zephir_check_call_status(); RETURN_MM(); } - _1 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_1, "fetchall", NULL, 0); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0); zephir_check_call_status(); RETURN_MM(); @@ -56307,7 +56434,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZVAL_STRING(&_2, "/^SELECT\\s+(.*)/i", 0); zephir_preg_match(_1, &_2, sqlStatement, matches, 0, 0 , 0 TSRMLS_CC); if (zephir_is_true(_1)) { - zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 213 TSRMLS_CC); + zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 217 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "SELECT COUNT(*) \"numrows\" FROM (SELECT ", _3, ")"); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); @@ -56317,7 +56444,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZEPHIR_CALL_METHOD(&row, result, "fetch", NULL, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(rowCount); - zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 215 TSRMLS_CC); + zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 219 TSRMLS_CC); } } else { ZEPHIR_INIT_NVAR(rowCount); @@ -56411,10 +56538,10 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { ZEPHIR_OBS_VAR(pdoStatement); zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - if (((fetchMode & 7)) == 7) { + if (fetchMode == 8) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -56424,10 +56551,10 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 8)) == 8) { + if (fetchMode == 9) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -56437,7 +56564,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 9)) == 9) { + if (fetchMode == 7) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); @@ -56573,7 +56700,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -56736,7 +56863,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -56773,7 +56900,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56783,7 +56910,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -56805,7 +56932,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -56816,7 +56943,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -56839,7 +56966,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _25); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56862,7 +56989,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56872,7 +56999,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { do { Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 170, variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); Z_UNSET_ISREF_P(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { @@ -56888,9 +57015,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 132, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 130, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -56907,7 +57034,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56918,7 +57045,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 171, key); + ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); Z_UNSET_ISREF_P(key); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); @@ -56934,7 +57061,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56942,11 +57069,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _20 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56973,7 +57100,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); @@ -56991,7 +57118,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -57012,7 +57139,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); @@ -57034,7 +57161,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, ")\n"); @@ -57042,7 +57169,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -57064,7 +57191,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -57115,9 +57242,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, 4); ZEPHIR_SINIT_VAR(_40); ZVAL_STRING(&_40, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 152, variable, &_5, &_40); + ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 174, _2); + ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); zephir_check_call_status(); zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -57235,7 +57362,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( @@ -57344,7 +57471,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 75); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 76); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 21, 0 TSRMLS_CC); @@ -57356,7 +57483,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57369,7 +57496,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57382,7 +57509,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57395,7 +57522,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57408,7 +57535,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57421,7 +57548,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57434,7 +57561,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57447,7 +57574,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57460,7 +57587,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57473,7 +57600,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57486,7 +57613,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57499,7 +57626,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57512,7 +57639,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57525,7 +57652,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57538,7 +57665,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57551,7 +57678,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57564,7 +57691,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57575,7 +57702,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "sessionBag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Bag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57588,7 +57715,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57601,7 +57728,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57614,7 +57741,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57994,7 +58121,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, 176, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 177, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -58117,7 +58244,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, 63, name, definition, shared); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 64, name, definition, shared); zephir_check_call_status(); RETURN_MM(); @@ -58192,7 +58319,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, 175); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -58201,10 +58328,10 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Router", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58214,10 +58341,10 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58230,7 +58357,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58243,7 +58370,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58256,7 +58383,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58269,7 +58396,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58282,7 +58409,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58295,7 +58422,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58308,7 +58435,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58321,7 +58448,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58494,7 +58621,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -58539,7 +58666,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -58609,7 +58736,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -58673,7 +58800,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } @@ -58738,17 +58865,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -58981,7 +59104,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -58991,7 +59114,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -59040,7 +59163,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -59062,13 +59185,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _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, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -59224,7 +59347,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -59437,9 +59560,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } @@ -59453,10 +59576,10 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } @@ -59669,7 +59792,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -59942,7 +60065,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -59960,7 +60083,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, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60567,7 +60690,7 @@ static PHP_METHOD(Phalcon_Forms_Element, setMessages) { static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages, *_0; + zval *message, *messages = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); @@ -60582,6 +60705,8 @@ static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); + ZEPHIR_OBS_NVAR(messages); + zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); } ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); zephir_check_call_status(); @@ -61086,7 +61211,7 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -61094,10 +61219,10 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -61160,7 +61285,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); zephir_check_call_status(); } } @@ -61630,7 +61755,7 @@ static PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -61722,7 +61847,7 @@ static PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); @@ -61831,7 +61956,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); @@ -61876,7 +62001,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); @@ -61921,7 +62046,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); @@ -61966,7 +62091,7 @@ static PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); @@ -62011,7 +62136,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); @@ -62056,7 +62181,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); @@ -62101,7 +62226,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); @@ -62148,7 +62273,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); zephir_check_call_status(); RETURN_MM(); @@ -62199,7 +62324,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -62270,7 +62395,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -62315,7 +62440,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); @@ -62360,7 +62485,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); @@ -62405,7 +62530,7 @@ static PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); zephir_check_call_status(); RETURN_MM(); @@ -62717,7 +62842,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -62813,7 +62938,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -63224,7 +63349,7 @@ static PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63275,7 +63400,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63333,12 +63458,12 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); Z_UNSET_ISREF_P(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63389,7 +63514,7 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63826,7 +63951,7 @@ static PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); zephir_check_call_status(); RETURN_MM(); @@ -64017,7 +64142,7 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -64089,7 +64214,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -64102,7 +64227,7 @@ static PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -64115,7 +64240,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -64128,7 +64253,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -64141,7 +64266,7 @@ static PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -64154,7 +64279,7 @@ static PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -64167,7 +64292,7 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -64215,7 +64340,7 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64259,7 +64384,7 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64308,7 +64433,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -64342,7 +64467,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -64356,7 +64481,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -64429,7 +64554,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -64483,7 +64608,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -64502,7 +64627,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -64577,7 +64702,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -64595,7 +64720,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -64726,7 +64851,7 @@ static PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64745,7 +64870,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -64763,7 +64888,7 @@ static PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64782,7 +64907,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -64800,7 +64925,7 @@ static PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64819,7 +64944,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65139,7 +65264,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -65566,7 +65691,7 @@ static PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -65786,7 +65911,7 @@ static PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); zephir_check_call_status(); } } @@ -66026,12 +66151,12 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, name, &_0); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, name, &_0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_extension"), _2 TSRMLS_CC); } @@ -66092,15 +66217,15 @@ static PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -66118,7 +66243,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -66149,7 +66274,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); zephir_check_call_status(); RETURN_MM(); @@ -66739,10 +66864,10 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -66803,7 +66928,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); zephir_check_call_status(); } } @@ -67092,7 +67217,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_8, &_9, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_10); ZVAL_LONG(_10, 1); - ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 68, _8, _10); + ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 69, _8, _10); zephir_check_call_status(); width = zephir_get_intval(_11); ZEPHIR_INIT_NVAR(_10); @@ -67101,7 +67226,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_10, &_13, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_14); ZVAL_LONG(_14, 1); - ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 68, _10, _14); + ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 69, _10, _14); zephir_check_call_status(); height = zephir_get_intval(_15); ZEPHIR_INIT_NVAR(_14); @@ -67502,11 +67627,11 @@ static PHP_METHOD(Phalcon_Image_Adapter, text) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); @@ -67585,11 +67710,11 @@ static PHP_METHOD(Phalcon_Image_Adapter, background) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); @@ -67715,7 +67840,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, render) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, _0, &_1); zephir_check_call_status(); zephir_get_strval(_3, _2); ZEPHIR_CPY_WRT(ext, _3); @@ -67851,13 +67976,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -67875,7 +68000,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -67937,11 +68062,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_1 TSRMLS_CC) == SUCCESS)) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 62, _2); + ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 63, _2); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -67957,35 +68082,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -68010,7 +68135,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -68033,14 +68158,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -68079,7 +68204,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -68127,11 +68252,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -68155,17 +68280,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -68175,16 +68300,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -68211,7 +68336,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -68237,17 +68362,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -68267,16 +68392,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -68304,20 +68429,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68330,11 +68455,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -68360,7 +68485,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -68388,7 +68513,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -68412,18 +68537,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -68431,13 +68556,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); zephir_check_call_status(); } } @@ -68460,7 +68585,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -68509,15 +68634,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -68543,7 +68668,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68569,7 +68694,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -68610,7 +68735,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -68622,7 +68747,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -68635,18 +68760,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -68668,21 +68793,21 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -68694,11 +68819,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -68708,11 +68833,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -68727,10 +68852,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -68762,7 +68887,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68771,7 +68896,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -68805,12 +68930,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -68830,7 +68955,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -68842,17 +68967,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -68872,7 +68997,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68881,7 +69006,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -68902,22 +69027,22 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -68927,13 +69052,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -68944,7 +69069,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -68960,9 +69085,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -68982,9 +69107,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -68997,10 +69122,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -69010,22 +69135,22 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -69059,9 +69184,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -69074,11 +69199,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -69106,7 +69231,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); zephir_check_call_status(); i++; } @@ -69145,7 +69270,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -69158,7 +69283,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -69185,11 +69310,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -69197,30 +69322,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -69229,64 +69354,64 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -69320,29 +69445,29 @@ 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, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -69350,45 +69475,45 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } @@ -69420,11 +69545,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -69440,7 +69565,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69493,12 +69618,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } @@ -69549,15 +69674,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 62, _3); + ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 63, _3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _4 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -69583,7 +69706,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -69621,13 +69744,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -69845,10 +69966,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70037,10 +70156,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70055,7 +70172,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70069,11 +70186,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -70089,16 +70206,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70116,7 +70229,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -70133,7 +70246,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70163,7 +70276,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -70224,10 +70337,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70245,7 +70356,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -70297,10 +70408,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70309,14 +70418,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70350,24 +70457,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70383,13 +70490,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70400,13 +70507,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70425,13 +70532,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70442,13 +70549,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70464,13 +70571,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70481,13 +70588,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70535,10 +70642,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -70557,7 +70662,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -70607,30 +70712,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -70646,7 +70745,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -70655,11 +70754,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -70673,7 +70772,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -70799,7 +70898,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _1, "setformat", NULL, 0, ext); @@ -70827,7 +70926,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -70851,7 +70950,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -70923,7 +71022,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); @@ -71148,6 +71247,13 @@ static PHP_METHOD(Phalcon_Logger_Adapter, rollback) { } +static PHP_METHOD(Phalcon_Logger_Adapter, isTransaction) { + + + RETURN_MEMBER(this_ptr, "_transaction"); + +} + static PHP_METHOD(Phalcon_Logger_Adapter, critical) { int ZEPHIR_LAST_CALL_STATUS; @@ -72322,7 +72428,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -72354,7 +72460,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72434,7 +72540,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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -72519,15 +72625,15 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); } @@ -72541,7 +72647,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 4500); - ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 69, format, &_2); + ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 70, format, &_2); zephir_check_call_status(); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 102); for ( @@ -72557,7 +72663,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", &_3, 237, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); @@ -72635,7 +72741,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -72665,7 +72771,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72767,7 +72873,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -72827,7 +72933,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", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -72842,7 +72948,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -72999,15 +73105,15 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 151, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); Z_UNSET_ISREF_P(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { @@ -73178,17 +73284,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73201,17 +73303,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73262,7 +73360,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); @@ -74316,7 +74414,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -74779,7 +74877,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -74808,7 +74906,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); zephir_check_call_status(); RETURN_MM(); @@ -75258,7 +75356,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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -75289,7 +75387,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); @@ -76137,7 +76235,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -76286,11 +76384,11 @@ 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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -76323,11 +76421,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76360,11 +76458,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76385,11 +76483,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -77310,10 +77408,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getDirtyState) { static PHP_METHOD(Phalcon_Mvc_Model, getReadConnection) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0; + zval *transaction = NULL, *_0; ZEPHIR_MM_GROW(); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_transaction"), PH_NOISY_CC); + ZEPHIR_CPY_WRT(transaction, _0); + if (Z_TYPE_P(transaction) == IS_OBJECT) { + ZEPHIR_RETURN_CALL_METHOD(transaction, "getconnection", NULL, 0); + zephir_check_call_status(); + RETURN_MM(); + } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); ZEPHIR_RETURN_CALL_METHOD(_0, "getreadconnection", NULL, 0, this_ptr); zephir_check_call_status(); @@ -77367,7 +77472,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { if (Z_TYPE_P(dataColumnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(dataMapped); array_init(dataMapped); - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 436); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 443); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77396,7 +77501,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { } 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", 488); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 495); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -77412,7 +77517,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(_8, "Column '", attribute, "' doesn\\'t make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_9, 9, _8); zephir_check_call_status(); - zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 458 TSRMLS_CC); + zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 465 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77480,7 +77585,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 588); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 595); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -77501,7 +77606,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 531 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 538 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77517,7 +77622,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _6 = Z_TYPE_P(value) != IS_NULL; } if (_6) { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 543 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 550 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_8); @@ -77541,7 +77646,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 564 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 571 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0) || ZEPHIR_IS_LONG(_7, 9) || ZEPHIR_IS_LONG(_7, 3) || ZEPHIR_IS_LONG(_7, 7) || ZEPHIR_IS_LONG(_7, 8)) { ZEPHIR_INIT_NVAR(castValue); @@ -77554,7 +77659,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(attributeName); - zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 580 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 587 TSRMLS_CC); zephir_update_property_zval_zval(instance, attributeName, castValue TSRMLS_CC); } } @@ -77599,7 +77704,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_VAR(hydrateObject); object_init(hydrateObject); } - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 662); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 669); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77617,7 +77722,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 641 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 648 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77673,7 +77778,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 709); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 716); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -77681,7 +77786,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); if (Z_TYPE_P(key) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 701); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 708); return; } zephir_update_property_zval_zval(instance, key, value TSRMLS_CC); @@ -77720,7 +77825,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, find) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 755); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 762); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -77795,7 +77900,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, findFirst) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 842); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 849); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -77879,12 +77984,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, 302, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 303, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -77938,7 +78043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueParams); ZEPHIR_INIT_NVAR(uniqueTypes); array_init(uniqueTypes); - zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1013); + zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1020); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77953,7 +78058,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 977 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 984 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -77971,9 +78076,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_6) { numberEmpty++; } - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 995); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1002); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 998); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 1005); numberEmpty++; } ZEPHIR_OBS_NVAR(type); @@ -77984,16 +78089,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1003 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1010 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1006); + zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1013); ZEPHIR_CALL_METHOD(&_7, connection, "escapeidentifier", &_8, 0, field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_VS(_9, _7, " = ?"); - zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1007); + zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1014); } if (numberPrimary == numberEmpty) { RETURN_MM_BOOL(0); @@ -78041,7 +78146,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZVAL_NULL(_3); ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, _9, _3, uniqueParams, uniqueTypes); zephir_check_call_status(); - zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1063 TSRMLS_CC); + zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1070 TSRMLS_CC); if (zephir_is_true(_11)) { ZEPHIR_INIT_ZVAL_NREF(_12); ZVAL_LONG(_12, 0); @@ -78102,7 +78207,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1093); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1100); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -78418,7 +78523,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, validate) { if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { ZEPHIR_CALL_METHOD(&_1, validator, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1393); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1400); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -78470,7 +78575,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_INIT_VAR(filtered); array_init(filtered); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1459); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1466); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -78479,7 +78584,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_5, message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(_5, filter)) { - zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1456); + zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1463); } } RETURN_CCTOR(filtered); @@ -78506,7 +78611,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(belongsTo TSRMLS_CC)) { error = 0; - zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1602); + zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1609); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78519,7 +78624,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1503 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1510 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78538,7 +78643,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1539); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1546); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -78547,11 +78652,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1532 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1539 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1532); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1533); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1539); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1540); if (Z_TYPE_P(value) == IS_NULL) { numberNull++; } @@ -78562,15 +78667,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1544); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1545); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1551); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1552); if (Z_TYPE_P(value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1556); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1563); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(allowNulls); @@ -78652,7 +78757,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_CALL_METHOD(&relations, manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1716); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1723); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78665,7 +78770,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1655 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1662 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78683,7 +78788,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1683); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1690); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -78692,23 +78797,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1680 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1687 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1680); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1681); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1687); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1688); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1685); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1686); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1692); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1700); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -78749,7 +78854,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { error = 0; - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1835); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1842); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78762,7 +78867,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1763 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1770 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78780,7 +78885,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1795); + zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1802); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -78789,23 +78894,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_GET_HVALUE(field, _8); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1791 TSRMLS_CC); + zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1798 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSV(_10, "[", _9, "] = ?", position); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1791); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1792); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1799); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVS(_10, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1797); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1804); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1812); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -78929,7 +79034,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2001); + zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2008); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -78946,7 +79051,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(_7, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1937 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79166,7 +79271,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2185); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -79182,7 +79287,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2139 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2146 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79208,23 +79313,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2163 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2170 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); } else { if (zephir_array_isset(defaultValues, field)) { ZEPHIR_CALL_METHOD(&_8, connection, "getdefaultvalue", &_9, 0); zephir_check_call_status(); - zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2171); + zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2178); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2180); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); } } } @@ -79236,7 +79341,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); useExplicitIdentity = zephir_get_boolval(_8); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2194); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2201); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); @@ -79247,7 +79352,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2202 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2209 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79262,12 +79367,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } if (_6) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2223); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2230); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { @@ -79277,17 +79382,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn\\'t part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2230 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2237 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); } } } @@ -79377,7 +79482,7 @@ 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", 2437); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2444); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -79392,7 +79497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2336 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2343 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79405,7 +79510,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2351 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79415,9 +79520,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", 2360); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2360); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2361); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2368); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -79439,9 +79544,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -79459,15 +79564,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2424); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2431); } } } else { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); } } } @@ -79484,12 +79589,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", 2456); + 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", 2463); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2479); + zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2486); for ( ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS ; zephir_hash_move_forward_ex(_13, &_12) @@ -79504,7 +79609,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2467 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2474 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79513,9 +79618,9 @@ 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_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2474); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2481); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2476); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2483); } } } @@ -79552,7 +79657,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { 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", 2585); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2592); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -79569,7 +79674,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(record) != IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2534); + 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", 2541); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -79581,7 +79686,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2543); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); @@ -79589,7 +79694,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_0))) { ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2572); + zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); for ( ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS ; zephir_hash_move_forward_ex(_9, &_8) @@ -79636,7 +79741,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, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2773); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2780); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -79659,7 +79764,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (_5) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2624); + 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", 2631); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -79671,7 +79776,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -79691,7 +79796,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2647 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79706,7 +79811,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2762); + zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); for ( ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS ; zephir_hash_move_forward_ex(_14, &_13) @@ -79721,7 +79826,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_12))) { ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2704); + zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); for ( ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS ; zephir_hash_move_forward_ex(_18, &_17) @@ -79754,7 +79859,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_16))) { ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); for ( ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS ; zephir_hash_move_forward_ex(_25, &_24) @@ -79783,7 +79888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2765 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79878,9 +79983,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2878 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80072,10 +80177,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", 3062); + 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", 3069); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3103); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3110); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -80089,7 +80194,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3074 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3081 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80102,7 +80207,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3082 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3089 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80117,17 +80222,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3092 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3099 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3098); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3105); ZEPHIR_CALL_METHOD(&_2, writeConnection, "escapeidentifier", &_9, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_VS(_7, _2, " = ?"); - zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3099); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3100); + zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3106); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -80203,7 +80308,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", 3178); + 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", 3185); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80228,7 +80333,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_1))) { - 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", 3200); + 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", 3207); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -80237,14 +80342,14 @@ 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", 3208); + 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", 3215); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_1, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3222); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3229); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -80253,7 +80358,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(_5); zephir_create_array(_5, 1, 0 TSRMLS_CC); zephir_array_fast_append(_5, attribute); - zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3216); + zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3223); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -80368,7 +80473,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3303); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80403,7 +80508,7 @@ 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", 3334); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80436,7 +80541,7 @@ 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", 3363); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80469,7 +80574,7 @@ 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", 3392); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80682,7 +80787,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, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3606); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3615); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80701,7 +80806,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3587 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3596 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -80718,7 +80823,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3596 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3605 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -80771,12 +80876,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { 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", 3645); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3654); 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", 3652); + 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", 3661); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80798,7 +80903,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3684 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3693 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80810,7 +80915,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3688 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3697 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80823,7 +80928,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not defined on the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3696 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3705 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80835,14 +80940,14 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_3, "The field '", fieldName, "' was not found in the snapshot"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3703 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3712 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(!ZEPHIR_IS_EQUAL(value, originalValue)); } ZEPHIR_INIT_NVAR(_1); - zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3739); + zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3748); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -80877,12 +80982,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", 3752); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3761); 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", 3759); + 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", 3768); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80898,7 +81003,7 @@ 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", 3813); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3822); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -80906,17 +81011,17 @@ static 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", 3792); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3801); 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", 3800); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3809); continue; } - zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3807 TSRMLS_CC); + zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3816 TSRMLS_CC); if (!ZEPHIR_IS_EQUAL(value, _5)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3808); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3817); continue; } } @@ -80973,7 +81078,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3855 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3865 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -81080,55 +81185,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { } -static PHP_METHOD(Phalcon_Mvc_Model, __call) { - - int ZEPHIR_LAST_CALL_STATUS; - zval *method_param = NULL, *arguments, *modelName, *status = NULL, *records = NULL, *_0, *_1, *_2; - zval *method = NULL; - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &method_param, &arguments); - - zephir_get_strval(method, method_param); - - - ZEPHIR_INIT_VAR(modelName); - zephir_get_class(modelName, this_ptr, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 0, modelName, method, arguments); - zephir_check_call_status(); - if (Z_TYPE_P(records) != IS_NULL) { - RETURN_CCTOR(records); - } - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&status, _0, "missingmethod", NULL, 0, this_ptr, method, arguments); - zephir_check_call_status(); - if (Z_TYPE_P(status) != IS_NULL) { - RETURN_CCTOR(status); - } - ZEPHIR_INIT_VAR(_1); - object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_2); - ZEPHIR_CONCAT_SVSVS(_2, "The method '", method, "' doesn't exist on model '", modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); - zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3947 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - -} - -static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { +static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { - zval *_6, *_7; - zend_class_entry *_5, *_8; + zval *_5, *_6; + zend_class_entry *_4, *_7; int ZEPHIR_LAST_CALL_STATUS; - zval *method_param = NULL, *arguments, *extraMethod = NULL, *type = NULL, *modelName, *value, *model, *attributes = NULL, *field = NULL, *extraMethodFirst = NULL, *metaData = NULL, _0 = zval_used_for_init, *_1 = NULL, *_2 = NULL, *_4 = NULL; - zval *method = NULL, *_3; + zval *method, *arguments, *extraMethod = NULL, *type = NULL, *modelName, *value, *model, *attributes = NULL, *field = NULL, *extraMethodFirst = NULL, *metaData = NULL, _0 = zval_used_for_init, *_1 = NULL, *_2 = NULL, *_3 = NULL; ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &method_param, &arguments); + zephir_fetch_params(1, 2, 0, &method, &arguments); - zephir_get_strval(method, method_param); ZEPHIR_INIT_VAR(extraMethod); @@ -81164,32 +81230,24 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_INIT_VAR(modelName); zephir_get_called_class(modelName TSRMLS_CC); if (!(zephir_is_true(extraMethod))) { - ZEPHIR_INIT_VAR(_1); - object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_2); - ZEPHIR_CONCAT_SVSVS(_2, "The static method '", method, "' doesn't exist on model '", modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); - zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3998 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; + RETURN_MM_NULL(); } ZEPHIR_OBS_VAR(value); if (!(zephir_array_isset_long_fetch(&value, arguments, 0, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(_1); + ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_3); - ZEPHIR_CONCAT_SVS(_3, "The static method '", method, "' requires one argument"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVS(_2, "The static method '", method, "' requires one argument"); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4002 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3977 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_VAR(model); - zephir_fetch_safe_class(_4, modelName); - _5 = zend_fetch_class(Z_STRVAL_P(_4), Z_STRLEN_P(_4), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); - object_init_ex(model, _5); + zephir_fetch_safe_class(_3, modelName); + _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + object_init_ex(model, _4); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); zephir_check_call_status(); @@ -81205,7 +81263,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { if (zephir_array_isset(attributes, extraMethod)) { ZEPHIR_CPY_WRT(field, extraMethod); } else { - ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 67, extraMethod); + ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 68, extraMethod); zephir_check_call_status(); if (zephir_array_isset(attributes, extraMethodFirst)) { ZEPHIR_CPY_WRT(field, extraMethodFirst); @@ -81219,28 +81277,101 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4036 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4011 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - ZEPHIR_INIT_VAR(_6); - zephir_create_array(_6, 2, 0 TSRMLS_CC); + ZEPHIR_INIT_VAR(_5); + zephir_create_array(_5, 2, 0 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, field, " = ?0"); - zephir_array_update_string(&_6, SL("conditions"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(_7); - zephir_create_array(_7, 1, 0 TSRMLS_CC); - zephir_array_fast_append(_7, value); - zephir_array_update_string(&_6, SL("bind"), &_7, PH_COPY | PH_SEPARATE); - _8 = zephir_fetch_class(modelName TSRMLS_CC); - ZEPHIR_RETURN_CALL_CE_STATIC_ZVAL(_8, type, NULL, 0, _6); + zephir_array_update_string(&_5, SL("conditions"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_INIT_VAR(_6); + zephir_create_array(_6, 1, 0 TSRMLS_CC); + zephir_array_fast_append(_6, value); + zephir_array_update_string(&_5, SL("bind"), &_6, PH_COPY | PH_SEPARATE); + _7 = zephir_fetch_class(modelName TSRMLS_CC); + ZEPHIR_RETURN_CALL_CE_STATIC_ZVAL(_7, type, NULL, 0, _5); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Mvc_Model, __call) { + + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_0 = NULL; + zval *method_param = NULL, *arguments, *modelName, *status = NULL, *records = NULL, *_1, *_2, *_3; + zval *method = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &method_param, &arguments); + + zephir_get_strval(method, method_param); + + + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) != IS_NULL) { + RETURN_CCTOR(records); + } + ZEPHIR_INIT_VAR(modelName); + zephir_get_class(modelName, this_ptr, 0 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 0, modelName, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) != IS_NULL) { + RETURN_CCTOR(records); + } + _1 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(&status, _1, "missingmethod", NULL, 0, this_ptr, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(status) != IS_NULL) { + RETURN_CCTOR(status); + } + ZEPHIR_INIT_VAR(_2); + 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_check_call_status(); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4062 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + +} + +static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { + + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_0 = NULL; + zval *method_param = NULL, *arguments, *records = NULL, *_1; + zval *method = NULL, *_2; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &method_param, &arguments); + + zephir_get_strval(method, method_param); + + + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) == IS_NULL) { + ZEPHIR_INIT_VAR(_1); + object_init_ex(_1, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVS(_2, "The static method '", method, "' doesn't exist"); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); + zephir_check_call_status(); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4078 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + RETURN_CCTOR(records); + +} + static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_fcall_cache_entry *_5 = NULL, *_6 = NULL; @@ -81278,7 +81409,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4100); + zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4134); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -81287,7 +81418,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_GET_HVALUE(item, _3); 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", 4087); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4121); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -81437,7 +81568,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, serialize) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -81468,13 +81599,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { 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", 4224); + 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", 4258); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -81485,13 +81616,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); 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", 4237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4271); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, manager, "initialize", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4256); + zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4290); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -81541,7 +81672,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, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4320); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4354); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -81557,7 +81688,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_6, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4298 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4332 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -81869,7 +82000,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_1, SS("controller"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^/([\\w0-9\\_\\-]+)[/]{0,1}$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 76, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 77, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/mvc/router.zep", 120); @@ -81882,7 +82013,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^/([\\w0-9\\_\\-]+)/([\\w0-9\\.\\_]+)(/.*)*$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 76, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 77, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/mvc/router.zep", 126); @@ -82407,7 +82538,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { ZEPHIR_OBS_VAR(notFoundPaths); zephir_read_property_this(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(notFoundPaths) != IS_NULL) { - ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 77, notFoundPaths); + ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 78, notFoundPaths); zephir_check_call_status(); ZEPHIR_INIT_NVAR(routeFound); ZVAL_BOOL(routeFound, 1); @@ -82520,7 +82651,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, 76, pattern, paths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, pattern, paths, httpMethods); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(position, 1)) { @@ -83454,7 +83585,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 362, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 364, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { @@ -84076,7 +84207,7 @@ static PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); RETURN_THIS(); @@ -84105,7 +84236,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 363, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 365, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -84413,7 +84544,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_disabled"), PH_NOISY_CC); if (!ZEPHIR_IS_FALSE(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); RETURN_MM_BOOL(0); @@ -84473,7 +84604,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); mustClean = 1; @@ -84652,11 +84783,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); 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, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 285); zephir_check_call_status(); RETURN_MM(); @@ -84781,7 +84912,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, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(view, "getcontent", NULL, 0); zephir_check_call_status(); @@ -84795,7 +84926,7 @@ static PHP_METHOD(Phalcon_Mvc_View, finish) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); RETURN_THIS(); @@ -86237,7 +86368,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -88293,12 +88424,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 306, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 308, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 307, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 309, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -89318,7 +89449,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89395,7 +89526,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89473,7 +89604,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89570,9 +89701,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 309, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 311, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -90033,7 +90164,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", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 310, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 312, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -90098,10 +90229,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 310, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 312, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 310, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 312, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); @@ -92540,7 +92671,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SS("type"), SL("all"), 1); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 316, argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 318, argument); zephir_check_call_status(); RETURN_MM(); @@ -92576,11 +92707,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("when"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 354 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_8, whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 355 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _8); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _8); zephir_check_call_status(); zephir_array_update_string(&_4, SL("then"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 356); @@ -92589,7 +92720,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("else"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 360 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 361); @@ -92598,7 +92729,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("case"), 1); zephir_array_fetch_string(&_6, expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 367 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&return_value, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -92638,13 +92769,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, argument); zephir_check_call_status(); zephir_array_append(&functionArgs, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 391); } } else { zephir_create_array(functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, arguments); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, arguments); zephir_check_call_status(); zephir_array_fast_append(functionArgs, _3); } @@ -92707,12 +92838,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { if (!ZEPHIR_IS_LONG(exprType, 409)) { ZEPHIR_OBS_VAR(exprLeft); if (zephir_array_isset_string_fetch(&exprLeft, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 316, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 318, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } ZEPHIR_OBS_VAR(exprRight); if (zephir_array_isset_string_fetch(&exprRight, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 316, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 318, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } } @@ -92790,7 +92921,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 320, expr); zephir_check_call_status(); break; } @@ -93235,12 +93366,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 319, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 321, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 320, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 322, expr); zephir_check_call_status(); break; } @@ -93250,7 +93381,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { add_assoc_stringl_ex(exprReturn, SS("type"), SL("select"), 1); ZEPHIR_INIT_NVAR(_3); ZVAL_BOOL(_3, 1); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 321, expr, _3); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 323, expr, _3); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_12, PH_COPY | PH_SEPARATE); break; @@ -93269,7 +93400,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SS("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 320, expr); zephir_check_call_status(); RETURN_MM(); } @@ -93282,7 +93413,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ; zephir_hash_move_forward_ex(_14, &_13) ) { ZEPHIR_GET_HVALUE(exprListItem, _15); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 316, exprListItem); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 318, exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, _12, PH_SEPARATE, "phalcon/mvc/model/query.zep", 745); } @@ -93335,7 +93466,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("object"), 1); 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, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); zephir_array_update_string(&sqlColumn, SL("balias"), &_4, PH_COPY | PH_SEPARATE); if (Z_TYPE_P(eager) != IS_NULL) { @@ -93378,7 +93509,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_array_fetch(&modelName, sqlAliasesModels, columnDomain, PH_NOISY, "phalcon/mvc/model/query.zep", 828 TSRMLS_CC); if (Z_TYPE_P(preparedAlias) != IS_STRING) { if (ZEPHIR_IS_EQUAL(columnDomain, modelName)) { - ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(preparedAlias, columnDomain); @@ -93404,7 +93535,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("scalar"), 1); ZEPHIR_OBS_VAR(columnData); zephir_array_fetch_string(&columnData, column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 871 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 316, columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 318, columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(balias); if (zephir_array_isset_string_fetch(&balias, sqlExprColumn, SS("balias"), 0 TSRMLS_CC)) { @@ -93602,7 +93733,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_4); @@ -93610,7 +93741,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_fast_append(sqlJoinConditions, _0); @@ -93646,7 +93777,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_4); @@ -93654,7 +93785,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, _0, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1076); @@ -93737,7 +93868,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_8, SS("type"), 355); zephir_array_update_string(&_8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _8); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_10); @@ -93745,7 +93876,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_10, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_10, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _10); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _10); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7, PH_COPY | PH_SEPARATE); } @@ -93767,7 +93898,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_12, SS("type"), 355); zephir_array_update_string(&_12, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _12); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _12); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_13); @@ -93775,7 +93906,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_13, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_13, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_13, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _13); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _13); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -93796,7 +93927,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_14, SS("type"), 355); zephir_array_update_string(&_14, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _14); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _14); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_15); @@ -93804,7 +93935,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_15, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_15, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _15); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _15); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -93880,7 +94011,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 322, manager, joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 324, 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", 1315 TSRMLS_CC); @@ -93894,7 +94025,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", &_4, 323, joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 325, joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, joinItem, SS("alias"), 0 TSRMLS_CC)) { @@ -93962,7 +94093,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_GET_HVALUE(joinItem, _11); ZEPHIR_OBS_NVAR(joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, joinItem, SS("conditions"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 316, joinExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 318, joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, joinAliasName, &_12, PH_COPY | PH_SEPARATE); } @@ -94059,10 +94190,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 324, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 326, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 325, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 327, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } if (zephir_array_isset_long(sqlJoin, 0)) { @@ -94133,7 +94264,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1625 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 316, _3); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 318, _3); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, orderItem, SS("sort"), 1 TSRMLS_CC)) { ZEPHIR_INIT_NVAR(orderPartSort); @@ -94186,13 +94317,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(groupItem, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, groupItem); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1659); } } else { zephir_create_array(groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, group); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, group); zephir_check_call_status(); zephir_array_fast_append(groupParts, _3); } @@ -94218,13 +94349,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { ZEPHIR_OBS_VAR(number); if (zephir_array_isset_string_fetch(&number, limitClause, SS("number"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, number); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(offset); if (zephir_array_isset_string_fetch(&offset, limitClause, SS("offset"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, offset); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_0, PH_COPY | PH_SEPARATE); } @@ -94547,12 +94678,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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 328, 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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 328, select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(sqlJoins); @@ -94568,7 +94699,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { ; zephir_hash_move_forward_ex(_34, &_33) ) { ZEPHIR_GET_HVALUE(column, _35); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 327, column); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 329, column); zephir_check_call_status(); zephir_is_iterable(_3, &_38, &_37, 0, 0, "phalcon/mvc/model/query.zep", 1997); for ( @@ -94617,31 +94748,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 316, where); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 318, where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SS("groupBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 328, groupBy); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 330, groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(having); if (zephir_array_isset_string_fetch(&having, ast, SS("having"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 316, having); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 318, having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(order); if (zephir_array_isset_string_fetch(&order, ast, SS("orderBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 329, order); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 331, order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_41, PH_COPY | PH_SEPARATE); } @@ -94733,7 +94864,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_OBS_NVAR(_8); zephir_array_fetch_string(&_8, exprValue, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2110 TSRMLS_CC); zephir_array_update_string(&_7, SL("type"), &_8, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 316, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 318, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_7, SL("value"), &_0, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, _7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2112); @@ -94908,7 +95039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_4, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2260 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 316, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 318, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_append(&sqlFields, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2260); ZEPHIR_OBS_NVAR(exprColumn); @@ -94918,7 +95049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_NVAR(_14); zephir_array_fetch_string(&_14, exprColumn, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2263 TSRMLS_CC); zephir_array_update_string(&_13, SL("type"), &_14, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_13, SL("value"), &_15, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, _13, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2265); @@ -94933,13 +95064,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_16); ZVAL_BOOL(&_16, 1); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, where, &_16); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, where, &_16); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_15, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_15, PH_COPY | PH_SEPARATE); } @@ -95058,13 +95189,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_9); ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 316, where, &_9); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 318, where, &_9); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_10, PH_COPY | PH_SEPARATE); } @@ -95112,22 +95243,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 321); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 323); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 331); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 333); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 332); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 334); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 333); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 335); zephir_check_call_status(); break; } @@ -95514,12 +95645,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { isKeepingSnapshots = zephir_get_boolval(_40); } object_init_ex(return_value, phalcon_mvc_model_resultset_simple_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 334, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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, 335, columns1, resultData, cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 337, columns1, resultData, cache); zephir_check_call_status(); RETURN_MM(); @@ -95679,7 +95810,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_15, insertModel, "create", NULL, 0, insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, _15, insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 338, _15, insertModel); zephir_check_call_status(); RETURN_MM(); @@ -95810,13 +95941,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_array_update_zval(&updateValues, fieldName, &updateValue, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, selectBindParams, selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, 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); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); zephir_check_call_status(); RETURN_MM(); } @@ -95849,7 +95980,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11, record); zephir_check_call_status(); RETURN_MM(); } @@ -95860,7 +95991,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); zephir_check_call_status(); RETURN_MM(); @@ -95893,13 +96024,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, _1, "load", NULL, 0, modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, 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); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); zephir_check_call_status(); RETURN_MM(); } @@ -95932,7 +96063,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2, record); zephir_check_call_status(); RETURN_MM(); } @@ -95943,7 +96074,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); zephir_check_call_status(); RETURN_MM(); @@ -95991,18 +96122,18 @@ 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, 338); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 340); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 339, _5); + ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 341, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 309); - ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 340, _2); + ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 342, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 341, selectIr); + ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 343, selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 344, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -96123,22 +96254,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property_this(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 343, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 345, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 344, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 346, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 345, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 347, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 346, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 348, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } @@ -96193,7 +96324,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 344, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -96365,7 +96496,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_3); ZVAL_BOOL(&_3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 343, intermediate, _1, _2, &_3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 345, intermediate, _1, _2, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -96878,7 +97009,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pointer"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (zephir_get_numberval(_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -96918,7 +97049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97045,7 +97176,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { if (ZEPHIR_GT_LONG(_0, index)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97115,7 +97246,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97137,7 +97268,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (zephir_get_numberval(count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97755,7 +97886,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 353, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 355, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -97774,7 +97905,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 354); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 356); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); @@ -98344,7 +98475,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -98460,7 +98591,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 81, _1); + ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 82, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -98495,7 +98626,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -98700,9 +98831,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -98801,7 +98932,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -98886,9 +99017,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -98987,7 +99118,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -99164,9 +99295,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 317, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -99265,7 +99396,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -99481,7 +99612,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 83, _1); + ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 84, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -99516,7 +99647,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -101605,21 +101736,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_INIT_VAR(query); object_init_ex(query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 347); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 349); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 338, _0, _1); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 340, _0, _1); zephir_check_call_status(); ZEPHIR_OBS_VAR(bindParams); zephir_read_property_this(&bindParams, this_ptr, SL("_bindParams"), PH_NOISY_CC); if (Z_TYPE_P(bindParams) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 348, bindParams); + ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 350, bindParams); zephir_check_call_status(); } ZEPHIR_OBS_VAR(bindTypes); zephir_read_property_this(&bindTypes, this_ptr, SL("_bindTypes"), PH_NOISY_CC); if (Z_TYPE_P(bindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 349, bindTypes); + ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 351, bindTypes); zephir_check_call_status(); } RETURN_CCTOR(query); @@ -111569,7 +111700,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_this(this_ptr, SL("_columnTypes"), columnTypes TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 352, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111783,7 +111914,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, 73, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_CCTOR(serialized); @@ -111812,7 +111943,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { zephir_update_property_this(this_ptr, SL("_disableHydration"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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", 304); @@ -111887,7 +112018,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_this(this_ptr, SL("_model"), model TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_columnMap"), columnMap TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_keepSnapshots"), keepSnapshots TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 352, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111942,12 +112073,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 351, _2, row, columnMap, _3, _6); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 353, _2, row, columnMap, _3, _6); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 352, row, columnMap, hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 354, row, columnMap, hydrateMode); zephir_check_call_status(); break; } while(0); @@ -112079,7 +112210,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, serialize) { ZEPHIR_OBS_NVAR(_1); zephir_read_property_this(&_1, this_ptr, SL("_hydrateMode"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("hydrateMode"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -112107,7 +112238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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); @@ -112414,7 +112545,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "rollbackPendent", 1); zephir_array_fast_append(_2, _3); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 355, _2); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 357, _2); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_initialized"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -112473,9 +112604,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) ZEPHIR_INIT_VAR(transaction); object_init_ex(transaction, phalcon_mvc_model_transaction_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_service"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 356, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); + ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 358, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 357, this_ptr); + ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 359, 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)); @@ -112763,7 +112894,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); @@ -113036,7 +113167,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { zephir_check_temp_parameter(_0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 360, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_5))) { ZEPHIR_INIT_NVAR(_0); @@ -113182,7 +113313,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_array_update_string(&options, SL("flags"), &_6, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 275); - ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 192, value, &_5, options); + ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 193, value, &_5, options); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_0); @@ -113652,7 +113783,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -114085,7 +114216,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); @@ -114420,7 +114551,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } zephir_update_property_this(this_ptr, SL("_processed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 360, realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 362, realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -115252,7 +115383,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property_this(&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, 77, paths); + ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 78, paths); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(processedPaths, paths); @@ -115271,10 +115402,10 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_VV(_2, _1, pattern); - ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 76, _2, mergedPaths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, _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, 361, this_ptr); + ZEPHIR_CALL_METHOD(NULL, route, "setgroup", NULL, 363, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); @@ -116783,7 +116914,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 363, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 365, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_0, PH_COPY | PH_SEPARATE); } else { @@ -117022,7 +117153,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, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_OBS_VAR(viewParams); zephir_read_property_this(&viewParams, this_ptr, SL("_viewParams"), PH_NOISY_CC); @@ -117036,7 +117167,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { } else { ZEPHIR_CPY_WRT(mergedParams, viewParams); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 382, path, mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 384, path, mergedParams); zephir_check_call_status(); if (Z_TYPE_P(cache) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_0, cache, "isstarted", NULL, 0); @@ -117056,7 +117187,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { zephir_check_call_status(); } } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_content"); @@ -117087,7 +117218,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { ZEPHIR_OBS_VAR(viewParams); @@ -117104,12 +117235,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } else { ZEPHIR_CPY_WRT(mergedParams, params); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 382, partialPath, mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 384, partialPath, mergedParams); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_update_property_this(this_ptr, SL("_viewParams"), viewParams TSRMLS_CC); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_content"), PH_NOISY_CC); zend_print_zval(_1, 0); @@ -117488,7 +117619,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -117510,7 +117641,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean == 1) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); @@ -117583,18 +117714,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); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 365, _0); + ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 367, _0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _1); if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 366, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 368, dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(options); zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 367, options); + ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 369, options); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_compiler"), compiler TSRMLS_CC); @@ -117634,7 +117765,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -117662,7 +117793,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); @@ -117693,7 +117824,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { ZVAL_LONG(length, zephir_fast_count_int(item TSRMLS_CC)); } else { if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, item); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, item); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -117719,7 +117850,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SS("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 368, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 370, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(_0)); } @@ -117772,7 +117903,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, 369, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 371, text); zephir_check_call_status(); RETURN_MM(); } @@ -117781,17 +117912,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, 370, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 372, text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, text, from, to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, text, from, to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 371, from, to, text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 373, from, to, text); zephir_check_call_status(); RETURN_MM(); } @@ -117862,7 +117993,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 372, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 374, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } @@ -117870,13 +118001,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(length) != IS_NULL) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5); zephir_check_call_status(); RETURN_MM(); } @@ -117906,7 +118037,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { Z_SET_ISREF_P(value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 374, value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 376, value); Z_UNSET_ISREF_P(value); zephir_check_call_status(); RETURN_CTOR(value); @@ -117950,7 +118081,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 375, macro, arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 377, macro, arguments); zephir_check_call_status(); RETURN_MM(); @@ -118413,7 +118544,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 378, 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", 339 TSRMLS_CC); @@ -118435,7 +118566,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_7, right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 352 TSRMLS_CC); zephir_concat_self(&exprCode, _7 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 376, right); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 378, right); zephir_check_call_status(); zephir_concat_self(&exprCode, _1 TSRMLS_CC); } @@ -118464,7 +118595,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, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 378, funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(arguments); @@ -118487,7 +118618,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(_1, funcArguments); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "compileFunction", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _2, _1); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -118549,7 +118680,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(exprLevel); zephir_read_property_this(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 378, block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 380, block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(exprLevel, 1)) { ZEPHIR_CPY_WRT(escapedCode, code); @@ -118576,7 +118707,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { } ZEPHIR_INIT_NVAR(_2); zephir_camelize(_2, name); - ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 67, _2); + ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 68, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); ZVAL_STRING(className, "Phalcon\\Tag", 1); @@ -118645,7 +118776,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 376, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -118705,28 +118836,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -118798,11 +118929,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, funcArguments, _4); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); Z_UNSET_ISREF_P(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -118817,7 +118948,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -119015,7 +119146,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 377, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -119033,7 +119164,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -119055,7 +119186,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -119066,13 +119197,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 380, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 376, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -119248,7 +119379,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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 376, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -119256,7 +119387,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 376, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -119348,7 +119479,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -119421,7 +119552,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 381, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); zephir_check_call_status(); RETURN_MM(); } @@ -119469,7 +119600,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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, 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", 1369 TSRMLS_CC); @@ -119499,7 +119630,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -119547,7 +119678,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, statement, SS("if_expr"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 376, ifExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 378, ifExpr); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_SVS(_5, "if (", _12, ") { ?>"); @@ -119645,16 +119776,16 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 381, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SV(_5, "", _4); @@ -119683,7 +119814,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", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119715,9 +119846,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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -119747,7 +119878,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 381, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); @@ -119806,10 +119937,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 376, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 376, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -119867,7 +119998,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", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119892,7 +120023,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", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119923,7 +120054,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 381, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -119948,7 +120079,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", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -120022,14 +120153,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 376, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 376, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -120110,7 +120241,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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 376, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -120126,7 +120257,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, ""); - zephir_concat_self(&code, _2 TSRMLS_CC); + if (!(zephir_is_php_version(50300))) { + ZEPHIR_INIT_LNVAR(_2); + ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); + zephir_concat_self(&code, _2 TSRMLS_CC); + } RETURN_CCTOR(code); } @@ -120198,26 +120331,26 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2188); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1988); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120227,7 +120360,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { zephir_array_fast_append(_9, statement); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "compileStatement", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_10, 377, _4, _9); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_10, 379, _4, _9); zephir_check_temp_parameter(_4); zephir_check_call_status(); if (Z_TYPE_P(tempCompilation) == IS_STRING) { @@ -120236,10 +120369,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2016 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2024 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -120275,7 +120408,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2052 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -120286,7 +120419,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2067); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -120294,7 +120427,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { zephir_update_property_this(this_ptr, SL("_blocks"), blocks TSRMLS_CC); } else { if (Z_TYPE_P(blockStatements) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_11, this_ptr, "_statementlist", &_17, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "_statementlist", &_17, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _11 TSRMLS_CC); } @@ -120303,18 +120436,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2089 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -120396,13 +120529,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -120461,7 +120594,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -120471,10 +120604,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); return; } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 381, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 383, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(extended); zephir_read_property_this(&extended, this_ptr, SL("_extended"), PH_NOISY_CC); @@ -120489,7 +120622,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2303); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -120499,13 +120632,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2271 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 381, localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 381, block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(blockCompilation, block); @@ -120518,7 +120651,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2296); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -120610,7 +120743,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2345); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -120620,7 +120753,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2352 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120633,7 +120766,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2360 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120641,7 +120774,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_compilesource", NULL, 0, viewCode, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (Z_TYPE_P(compilation) == IS_ARRAY) { - ZEPHIR_CALL_FUNCTION(&finalCompilation, "serialize", NULL, 73, compilation); + ZEPHIR_CALL_FUNCTION(&finalCompilation, "serialize", NULL, 74, compilation); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(finalCompilation, compilation); @@ -120649,7 +120782,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2379); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); return; } RETURN_CCTOR(compilation); @@ -120720,54 +120853,54 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2426 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2428); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2436 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2438); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2446 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2449); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2458 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2460); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2468 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2470); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2478 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { if (!(ZEPHIR_IS_EMPTY(compiledPath))) { - ZEPHIR_CALL_FUNCTION(&_1, "realpath", NULL, 62, templatePath); + ZEPHIR_CALL_FUNCTION(&_1, "realpath", NULL, 63, templatePath); zephir_check_call_status(); ZEPHIR_INIT_VAR(templateSepPath); zephir_prepare_virtual_path(templateSepPath, _1, compiledSeparator TSRMLS_CC); @@ -120794,11 +120927,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2523); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2526); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); return; } } @@ -120825,12 +120958,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2560 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } if (zephir_is_true(blocksCode)) { - ZEPHIR_CALL_FUNCTION(&compilation, "unserialize", NULL, 74, blocksCode); + ZEPHIR_CALL_FUNCTION(&compilation, "unserialize", NULL, 75, blocksCode); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(compilation); @@ -120850,7 +120983,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2586 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -130756,7 +130889,7 @@ static PHP_METHOD(Phalcon_Paginator_Adapter_NativeArray, getPaginate) { number = zephir_fast_count_int(items TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, show); - ZEPHIR_CALL_FUNCTION(&_3, "floatval", NULL, 304, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "floatval", NULL, 305, &_2); zephir_check_call_status(); roundedTotal = zephir_safe_div_long_zval(number, _3 TSRMLS_CC); totalPages = (int) (roundedTotal); @@ -130767,7 +130900,7 @@ static PHP_METHOD(Phalcon_Paginator_Adapter_NativeArray, getPaginate) { ZVAL_LONG(&_2, (show * ((pageNumber - 1)))); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, show); - ZEPHIR_CALL_FUNCTION(&_5, "array_slice", NULL, 372, items, &_2, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "array_slice", NULL, 374, items, &_2, &_4); zephir_check_call_status(); ZEPHIR_CPY_WRT(items, _5); if (pageNumber < totalPages) { @@ -131077,7 +131210,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, connect) { ZEPHIR_INIT_VAR(_3); ZVAL_NULL(_3); Z_SET_ISREF_P(_2); - ZEPHIR_CALL_FUNCTION(&connection, "fsockopen", NULL, 383, _0, _1, _2, _3); + ZEPHIR_CALL_FUNCTION(&connection, "fsockopen", NULL, 385, _0, _1, _2, _3); Z_UNSET_ISREF_P(_2); zephir_check_call_status(); if (Z_TYPE_P(connection) != IS_RESOURCE) { @@ -131086,7 +131219,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, connect) { } ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, -1); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_timeout", NULL, 384, connection, &_4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_timeout", NULL, 386, connection, &_4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_connection"), connection TSRMLS_CC); RETURN_CCTOR(connection); @@ -131123,7 +131256,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, put) { ZEPHIR_INIT_NVAR(ttr); ZVAL_LONG(ttr, 86400); } - ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 73, data); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 74, data); zephir_check_call_status(); ZEPHIR_INIT_VAR(length); ZVAL_LONG(length, zephir_fast_strlen_ev(serialized)); @@ -131133,7 +131266,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, put) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", &_1, 0, serialized); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&status, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 128 TSRMLS_CC); _2 = !ZEPHIR_IS_STRING(status, "INSERTED"); @@ -131169,7 +131302,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, reserve) { } ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, command); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_0, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 153 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_0, "RESERVED")) { @@ -131180,9 +131313,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, reserve) { zephir_array_fetch_long(&_3, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 163 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_2, this_ptr, "read", NULL, 0, _3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "unserialize", NULL, 74, _2); + ZEPHIR_CALL_FUNCTION(&_4, "unserialize", NULL, 75, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _1, _4); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _1, _4); zephir_check_call_status(); RETURN_MM(); @@ -131214,7 +131347,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, choose) { ZEPHIR_CONCAT_SV(_0, "use ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 176 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "USING")) { @@ -131251,7 +131384,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, watch) { ZEPHIR_CONCAT_SV(_0, "watch ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 193 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "WATCHING")) { @@ -131274,7 +131407,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, stats) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 210 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131311,7 +131444,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, statsTube) { ZEPHIR_CONCAT_SV(_0, "stats-tube ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 227 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131334,7 +131467,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, listTubes) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 244 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131357,7 +131490,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 261 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "FOUND")) { @@ -131368,9 +131501,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady) { zephir_array_fetch_long(&_4, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 265 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_3, this_ptr, "read", NULL, 0, _4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 74, _3); + ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 75, _3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _2, _5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _2, _5); zephir_check_call_status(); RETURN_MM(); @@ -131388,7 +131521,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekBuried) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 278 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "FOUND")) { @@ -131399,9 +131532,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekBuried) { zephir_array_fetch_long(&_4, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 282 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_3, this_ptr, "read", NULL, 0, _4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 74, _3); + ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 75, _3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _2, _5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _2, _5); zephir_check_call_status(); RETURN_MM(); @@ -131432,7 +131565,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); ZEPHIR_OBS_VAR(status); zephir_array_fetch_long(&status, response, 0, PH_NOISY, "phalcon/queue/beanstalk.zep", 307 TSRMLS_CC); @@ -131487,9 +131620,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 388, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 389, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131505,7 +131638,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 390, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131537,7 +131670,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 391, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -131876,7 +132009,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 400, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -131887,26 +132020,26 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { ZVAL_STRING(&_2, "/dev/urandom", 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "rb", 0); - ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 285, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 286, &_2, &_3); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 403, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 388, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 117); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 123); return; } RETURN_CCTOR(ret); } } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 124); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 130); return; } @@ -131932,16 +132065,67 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); - ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 121, _3); + ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Security_Random, base58) { + + unsigned char _8; + zephir_fcall_cache_entry *_7 = NULL; + double _5; + HashTable *_3; + HashPosition _2; + int ZEPHIR_LAST_CALL_STATUS; + zval *byteString, *alphabet; + zval *n = NULL, *bytes = NULL, *idx = NULL, *_0 = NULL, _1, **_4, *_6 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 1, &n); + + if (!n) { + n = ZEPHIR_GLOBAL(global_null); + } + ZEPHIR_INIT_VAR(byteString); + ZVAL_STRING(byteString, "", 1); + ZEPHIR_INIT_VAR(alphabet); + ZVAL_STRING(alphabet, "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", 1); + + + ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, n); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_1); + ZVAL_STRING(&_1, "C*", 0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + zephir_check_call_status(); + zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); + for ( + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) + ) { + ZEPHIR_GET_HVALUE(idx, _4); + _5 = zephir_safe_mod_zval_long(idx, 64 TSRMLS_CC); + ZEPHIR_INIT_NVAR(idx); + ZVAL_DOUBLE(idx, _5); + if (ZEPHIR_GE_LONG(idx, 58)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, 57); + ZEPHIR_CALL_METHOD(&idx, this_ptr, "number", &_7, 0, _6); + zephir_check_call_status(); + } + _8 = ZEPHIR_STRING_OFFSET(alphabet, zephir_get_intval(idx)); + zephir_concat_self_char(&byteString, _8 TSRMLS_CC); + } + RETURN_CTOR(byteString); + +} + static PHP_METHOD(Phalcon_Security_Random, base64) { zval *len_param = NULL, *_0 = NULL, *_1; @@ -131961,7 +132145,7 @@ static PHP_METHOD(Phalcon_Security_Random, base64) { ZVAL_LONG(_1, len); ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -132023,22 +132207,22 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 215, _3); + ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); - zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 222 TSRMLS_CC); + zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 268 TSRMLS_CC); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, ((((int) (zephir_get_numberval(_4)) & 0x0fff)) | 0x4000)); - zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 222); - zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 223 TSRMLS_CC); + zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 268); + zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 269 TSRMLS_CC); ZEPHIR_INIT_VAR(_6); ZVAL_LONG(_6, ((((int) (zephir_get_numberval(_5)) & 0x3fff)) | 0x8000)); - zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 223); + zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 269); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "%08x-%04x-%04x-%04x-%04x%08x", ZEPHIR_TEMP_PARAM_COPY); Z_SET_ISREF_P(ary); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, ary, _7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, ary, _7); zephir_check_temp_parameter(_7); Z_UNSET_ISREF_P(ary); zephir_check_call_status(); @@ -132052,86 +132236,95 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { static PHP_METHOD(Phalcon_Security_Random, number) { - zephir_fcall_cache_entry *_4 = NULL, *_9 = NULL, *_14 = NULL, *_18 = NULL; - zval *len_param = NULL, *hex = NULL, *bin = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *first = NULL, _0 = zval_used_for_init, *_1, _2, *_3, *_8 = NULL, _10 = zval_used_for_init, _11 = zval_used_for_init, _12 = zval_used_for_init, *_13 = NULL, _15 = zval_used_for_init, _16 = zval_used_for_init, *_17 = NULL; - int len, ZEPHIR_LAST_CALL_STATUS, _5, _6, _7; + zephir_fcall_cache_entry *_5 = NULL, *_9 = NULL, *_13 = NULL, *_17 = NULL; + unsigned char _4; + zval *bin; + zval *len_param = NULL, *hex = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *_0 = NULL, _1 = zval_used_for_init, *_2, *_3 = NULL, _10 = zval_used_for_init, *_11 = NULL, _12 = zval_used_for_init, _14 = zval_used_for_init, _15 = zval_used_for_init, *_16 = NULL; + int len, ZEPHIR_LAST_CALL_STATUS, _6, _7, _8; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &len_param); len = zephir_get_intval(len_param); + ZEPHIR_INIT_VAR(bin); + ZVAL_STRING(bin, "", 1); - if (len > 0) { - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 405, &_0); + if (len <= 0) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 294); + return; + } + if ((zephir_function_exists_ex(SS("\\sodium\\randombytes_uniform") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, len); + ZEPHIR_RETURN_CALL_FUNCTION("\\sodium\\randombytes_uniform", NULL, 0, _0); zephir_check_call_status(); - if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { - ZEPHIR_INIT_VAR(_1); - ZEPHIR_CONCAT_SV(_1, "0", hex); - ZEPHIR_CPY_WRT(hex, _1); - } - ZEPHIR_SINIT_NVAR(_0); - ZVAL_STRING(&_0, "H*", 0); - ZEPHIR_CALL_FUNCTION(&bin, "pack", NULL, 406, &_0, hex); + RETURN_MM(); + } + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, len); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + zephir_check_call_status(); + if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "0", hex); + ZEPHIR_CPY_WRT(hex, _2); + } + ZEPHIR_SINIT_NVAR(_1); + ZVAL_STRING(&_1, "H*", 0); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + zephir_check_call_status(); + zephir_concat_self(&bin, _3 TSRMLS_CC); + _4 = ZEPHIR_STRING_OFFSET(bin, 0); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, _4); + ZEPHIR_CALL_FUNCTION(&mask, "ord", &_5, 133, &_1); + zephir_check_call_status(); + _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _6); + _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _7); + _8 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _8); + do { + ZEPHIR_INIT_NVAR(_0); + ZVAL_LONG(_0, zephir_fast_strlen_ev(bin)); + ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _0); zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_SINIT_VAR(_2); - ZVAL_LONG(&_2, 1); - ZEPHIR_INIT_VAR(_3); - zephir_substr(_3, bin, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&mask, "ord", &_4, 132, _3); - zephir_check_call_status(); - _5 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _5); - _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _6); - _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _7); - do { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, zephir_fast_strlen_ev(bin)); - ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_10); - ZVAL_LONG(&_10, 0); - ZEPHIR_SINIT_NVAR(_11); - ZVAL_LONG(&_11, 1); - ZEPHIR_INIT_NVAR(_8); - zephir_substr(_8, rnd, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&first, "ord", &_4, 132, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_12); - zephir_bitwise_and_function(&_12, first, mask TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_14, 130, &_12); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_15); - ZVAL_LONG(&_15, 0); - ZEPHIR_SINIT_NVAR(_16); - ZVAL_LONG(&_16, 1); - ZEPHIR_CALL_FUNCTION(&_17, "substr_replace", &_18, 407, rnd, _13, &_15, &_16); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(rnd, _17); - } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, 0); ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 404, &_10, rnd); + ZVAL_LONG(&_10, 1); + ZEPHIR_INIT_NVAR(_0); + zephir_substr(_0, rnd, 0 , 1 , 0); + ZEPHIR_CALL_FUNCTION(&_11, "ord", &_5, 133, _0); zephir_check_call_status(); - Z_SET_ISREF_P(ret); - ZEPHIR_CALL_FUNCTION(&_13, "array_shift", NULL, 121, ret); - Z_UNSET_ISREF_P(ret); + ZEPHIR_SINIT_NVAR(_12); + zephir_bitwise_and_function(&_12, _11, mask TSRMLS_CC); + ZEPHIR_CALL_FUNCTION(&_11, "chr", &_13, 131, &_12); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 408, _13); + ZEPHIR_SINIT_NVAR(_14); + ZVAL_LONG(&_14, 0); + ZEPHIR_SINIT_NVAR(_15); + ZVAL_LONG(&_15, 1); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); - RETURN_MM(); - } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 269); - return; + ZEPHIR_CPY_WRT(rnd, _16); + } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "H*", 0); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + zephir_check_call_status(); + Z_SET_ISREF_P(ret); + ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); + Z_UNSET_ISREF_P(ret); + zephir_check_call_status(); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + zephir_check_call_status(); + RETURN_MM(); } @@ -132597,6 +132790,23 @@ static PHP_METHOD(Phalcon_Session_Adapter, __unset) { } +static PHP_METHOD(Phalcon_Session_Adapter, __destruct) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *_0; + + ZEPHIR_MM_GROW(); + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_started"), PH_NOISY_CC); + if (zephir_is_true(_0)) { + ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 62); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_started"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + ZEPHIR_MM_RESTORE(); + +} + @@ -132639,6 +132849,10 @@ ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, destroy); ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, regenerateId); +ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, setName); + +ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, getName); + @@ -133073,7 +133287,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 411, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); @@ -133361,7 +133575,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_create_array(_4, 4, 0 TSRMLS_CC); @@ -133369,7 +133583,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { zephir_array_update_string(&_4, SL("client"), &client, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("prefix"), &prefix, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("statsKey"), &statsKey, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, _4); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, _4); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_libmemcached"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_5); @@ -133408,9 +133622,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133586,9 +133800,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -133627,9 +133841,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133803,9 +134017,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 317, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -133844,9 +134058,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134087,7 +134301,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 415, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134096,7 +134310,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 416, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134234,12 +134448,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 416, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134633,7 +134847,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -134646,7 +134860,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, 426, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -134668,7 +134882,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -134682,7 +134896,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 427, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -134840,7 +135054,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -134873,22 +135087,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 419, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 428, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 429, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -134986,12 +135200,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 430, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 431, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135022,7 +135236,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 432, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -135037,7 +135251,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, 432, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -135099,14 +135313,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135149,7 +135363,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -135162,12 +135376,12 @@ 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", NULL, 434, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 414, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135280,7 +135494,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135486,7 +135700,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde } if (_0) { Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, placeholders, translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, placeholders, translation); Z_UNSET_ISREF_P(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); @@ -135545,6 +135759,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Message) { zend_declare_property_null(phalcon_validation_message_ce, SL("_field"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_validation_message_ce, SL("_code"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_class_implements(phalcon_validation_message_ce TSRMLS_CC, 1, phalcon_validation_messageinterface_ce); return SUCCESS; @@ -135552,11 +135768,12 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Message) { static PHP_METHOD(Phalcon_Validation_Message, __construct) { - zval *message_param = NULL, *field = NULL, *type = NULL; - zval *message = NULL; + int code; + zval *message_param = NULL, *field_param = NULL, *type_param = NULL, *code_param = NULL, *_0; + zval *message = NULL, *field = NULL, *type = NULL; ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 2, &message_param, &field, &type); + zephir_fetch_params(1, 1, 3, &message_param, &field_param, &type_param, &code_param); if (unlikely(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); @@ -135569,17 +135786,31 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_INIT_VAR(message); ZVAL_EMPTY_STRING(message); } - if (!field) { - field = ZEPHIR_GLOBAL(global_null); + if (!field_param) { + ZEPHIR_INIT_VAR(field); + ZVAL_EMPTY_STRING(field); + } else { + zephir_get_strval(field, field_param); } - if (!type) { - type = ZEPHIR_GLOBAL(global_null); + if (!type_param) { + ZEPHIR_INIT_VAR(type); + ZVAL_EMPTY_STRING(type); + } else { + zephir_get_strval(type, type_param); + } + if (!code_param) { + code = 0; + } else { + code = zephir_get_intval(code_param); } zephir_update_property_this(this_ptr, SL("_message"), message TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_field"), field TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_LONG(_0, code); + zephir_update_property_this(this_ptr, SL("_code"), _0 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } @@ -135683,6 +135914,30 @@ static PHP_METHOD(Phalcon_Validation_Message, getField) { } +static PHP_METHOD(Phalcon_Validation_Message, setCode) { + + zval *code_param = NULL, *_0; + int code; + + zephir_fetch_params(0, 1, 0, &code_param); + + code = zephir_get_intval(code_param); + + + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_LONG(_0, code); + zephir_update_property_this(this_ptr, SL("_code"), _0 TSRMLS_CC); + RETURN_THISW(); + +} + +static PHP_METHOD(Phalcon_Validation_Message, getCode) { + + + RETURN_MEMBER(this_ptr, "_code"); + +} + static PHP_METHOD(Phalcon_Validation_Message, __toString) { @@ -135704,10 +135959,10 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { object_init_ex(return_value, phalcon_validation_message_ce); - zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 435, _0, _1, _2); + 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, 437, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136321,7 +136576,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 436, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136354,7 +136609,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136424,7 +136679,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 437, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136457,7 +136712,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136574,7 +136829,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136638,7 +136893,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(&_1, this_ptr, "compare", NULL, 438, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -136681,7 +136936,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136720,12 +136975,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } @@ -136792,7 +137047,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136825,7 +137080,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136897,7 +137152,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -136930,7 +137185,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137043,7 +137298,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137159,7 +137414,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 435, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137199,7 +137454,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -137225,7 +137480,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137262,7 +137517,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137308,7 +137563,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -137318,9 +137573,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -137345,7 +137600,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 435, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137371,12 +137626,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -137407,7 +137662,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137431,7 +137686,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -137492,7 +137747,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137548,7 +137803,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 435, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -137666,7 +137921,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137763,7 +138018,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 360, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -137799,7 +138054,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137905,7 +138160,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -137998,7 +138253,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138114,7 +138369,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138213,7 +138468,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -138248,7 +138503,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 435, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138285,7 +138540,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 435, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138426,7 +138681,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138498,7 +138753,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -138531,7 +138786,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/64bits/phalcon.zep.h b/build/64bits/phalcon.zep.h index c72569af8a9..607167ec9eb 100644 --- a/build/64bits/phalcon.zep.h +++ b/build/64bits/phalcon.zep.h @@ -2385,6 +2385,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); static PHP_METHOD(Phalcon_Logger_Adapter, begin); static PHP_METHOD(Phalcon_Logger_Adapter, commit); static PHP_METHOD(Phalcon_Logger_Adapter, rollback); +static PHP_METHOD(Phalcon_Logger_Adapter, isTransaction); static PHP_METHOD(Phalcon_Logger_Adapter, critical); static PHP_METHOD(Phalcon_Logger_Adapter, emergency); static PHP_METHOD(Phalcon_Logger_Adapter, debug); @@ -2456,6 +2457,7 @@ ZEPHIR_INIT_FUNCS(phalcon_logger_adapter_method_entry) { PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, isTransaction, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, critical, arginfo_phalcon_logger_adapter_critical, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, emergency, arginfo_phalcon_logger_adapter_emergency, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) @@ -2641,6 +2643,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, __get); static PHP_METHOD(Phalcon_Session_Adapter, __set); static PHP_METHOD(Phalcon_Session_Adapter, __isset); static PHP_METHOD(Phalcon_Session_Adapter, __unset); +static PHP_METHOD(Phalcon_Session_Adapter, __destruct); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapter___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) @@ -2723,6 +2726,7 @@ ZEPHIR_INIT_FUNCS(phalcon_session_adapter_method_entry) { PHP_ME(Phalcon_Session_Adapter, __set, arginfo_phalcon_session_adapter___set, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __isset, arginfo_phalcon_session_adapter___isset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __unset, arginfo_phalcon_session_adapter___unset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Adapter, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR) PHP_FE_END }; @@ -2760,6 +2764,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_regenerateid, 0, ZEND_ARG_INFO(0, deleteOldSession) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setname, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + ZEPHIR_INIT_FUNCS(phalcon_session_adapterinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) @@ -2772,6 +2780,8 @@ ZEPHIR_INIT_FUNCS(phalcon_session_adapterinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, arginfo_phalcon_session_adapterinterface_destroy) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, regenerateId, arginfo_phalcon_session_adapterinterface_regenerateid) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setName, arginfo_phalcon_session_adapterinterface_setname) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getName, NULL) PHP_FE_END }; @@ -4492,6 +4502,7 @@ ZEPHIR_INIT_FUNCS(phalcon_db_columninterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getAfterPosition, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getBindType, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getDefault, NULL) + PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, hasDefault, NULL) ZEND_FENTRY(__set_state, NULL, arginfo_phalcon_db_columninterface___set_state, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -8919,6 +8930,7 @@ static PHP_METHOD(Phalcon_Db_Column, isFirst); static PHP_METHOD(Phalcon_Db_Column, getAfterPosition); static PHP_METHOD(Phalcon_Db_Column, getBindType); static PHP_METHOD(Phalcon_Db_Column, __set_state); +static PHP_METHOD(Phalcon_Db_Column, hasDefault); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_column___construct, 0, 0, 2) ZEND_ARG_INFO(0, name) @@ -8948,6 +8960,7 @@ ZEPHIR_INIT_FUNCS(phalcon_db_column_method_entry) { PHP_ME(Phalcon_Db_Column, getAfterPosition, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, getBindType, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, __set_state, arginfo_phalcon_db_column___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Phalcon_Db_Column, hasDefault, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -9765,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) @@ -13338,6 +13351,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields); static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate); static PHP_METHOD(Phalcon_Mvc_Model, getRelated); static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords); +static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder); static PHP_METHOD(Phalcon_Mvc_Model, __call); static PHP_METHOD(Phalcon_Mvc_Model, __callStatic); static PHP_METHOD(Phalcon_Mvc_Model, __set); @@ -13622,6 +13636,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model__getrelatedrecords, 0, 0, 3) ZEND_ARG_INFO(0, arguments) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model__invokefinder, 0, 0, 2) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, arguments) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model___call, 0, 0, 2) ZEND_ARG_INFO(0, method) ZEND_ARG_INFO(0, arguments) @@ -13736,6 +13755,7 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, useDynamicUpdate, arginfo_phalcon_mvc_model_usedynamicupdate, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Mvc_Model, getRelated, arginfo_phalcon_mvc_model_getrelated, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, _getRelatedRecords, arginfo_phalcon_mvc_model__getrelatedrecords, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_Model, _invokeFinder, arginfo_phalcon_mvc_model__invokefinder, ZEND_ACC_PROTECTED|ZEND_ACC_FINAL|ZEND_ACC_STATIC) PHP_ME(Phalcon_Mvc_Model, __call, arginfo_phalcon_mvc_model___call, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, __callStatic, arginfo_phalcon_mvc_model___callstatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_ME(Phalcon_Mvc_Model, __set, arginfo_phalcon_mvc_model___set, ZEND_ACC_PUBLIC) @@ -17230,6 +17250,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Security_Random); static PHP_METHOD(Phalcon_Security_Random, bytes); static PHP_METHOD(Phalcon_Security_Random, hex); +static PHP_METHOD(Phalcon_Security_Random, base58); static PHP_METHOD(Phalcon_Security_Random, base64); static PHP_METHOD(Phalcon_Security_Random, base64Safe); static PHP_METHOD(Phalcon_Security_Random, uuid); @@ -17243,6 +17264,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_hex, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base58, 0, 0, 0) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base64, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() @@ -17259,6 +17284,7 @@ ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_security_random_method_entry) { PHP_ME(Phalcon_Security_Random, bytes, arginfo_phalcon_security_random_bytes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, hex, arginfo_phalcon_security_random_hex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security_Random, base58, arginfo_phalcon_security_random_base58, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64, arginfo_phalcon_security_random_base64, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64Safe, arginfo_phalcon_security_random_base64safe, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, uuid, NULL, ZEND_ACC_PUBLIC) @@ -18300,6 +18326,8 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage); static PHP_METHOD(Phalcon_Validation_Message, getMessage); static PHP_METHOD(Phalcon_Validation_Message, setField); static PHP_METHOD(Phalcon_Validation_Message, getField); +static PHP_METHOD(Phalcon_Validation_Message, setCode); +static PHP_METHOD(Phalcon_Validation_Message, getCode); static PHP_METHOD(Phalcon_Validation_Message, __toString); static PHP_METHOD(Phalcon_Validation_Message, __set_state); @@ -18307,6 +18335,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___construct, 0, 0, 1) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, field) ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, code) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_settype, 0, 0, 1) @@ -18321,6 +18350,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_setfield, 0, 0, 1) ZEND_ARG_INFO(0, field) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_setcode, 0, 0, 1) + ZEND_ARG_INFO(0, code) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___set_state, 0, 0, 1) ZEND_ARG_ARRAY_INFO(0, message, 0) ZEND_END_ARG_INFO() @@ -18333,6 +18366,8 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_message_method_entry) { PHP_ME(Phalcon_Validation_Message, getMessage, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, setField, arginfo_phalcon_validation_message_setfield, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, getField, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message, setCode, arginfo_phalcon_validation_message_setcode, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message, getCode, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, __toString, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, __set_state, arginfo_phalcon_validation_message___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_FE_END diff --git a/build/64bits/php_phalcon.h b/build/64bits/php_phalcon.h index 34511ce576f..07c26e8d906 100644 --- a/build/64bits/php_phalcon.h +++ b/build/64bits/php_phalcon.h @@ -196,7 +196,7 @@ typedef zend_function zephir_fcall_cache_entry; #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "2.0.7" +#define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" #define PHP_PHALCON_ZEPVERSION "0.7.1b" diff --git a/build/safe/phalcon.zep.c b/build/safe/phalcon.zep.c index e17ef2cdf8d..10333e680e4 100644 --- a/build/safe/phalcon.zep.c +++ b/build/safe/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 441, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -18298,15 +18298,15 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 1) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _4, _6); @@ -18315,11 +18315,11 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 2) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -18340,16 +18340,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { _7 = 1; } i = _8; - ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 109); + ZEPHIR_CALL_FUNCTION(&_2, "rand", &_10, 110); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, _2); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, _2); zephir_check_call_status(); zephir_concat_self(&padding, _4 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "chr", &_3, 131, &_1); zephir_check_call_status(); zephir_concat_self(&padding, _6 TSRMLS_CC); break; @@ -18357,15 +18357,15 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 4) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0x80); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 131, _4, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "str_repeat", &_5, 132, _4, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(padding); ZEPHIR_CONCAT_VV(padding, _2, _6); @@ -18374,11 +18374,11 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { if (paddingType == 5) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 130, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "chr", &_3, 131, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, _2, &_1); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, _2, &_1); zephir_check_call_status(); break; } @@ -18387,7 +18387,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZVAL_STRING(&_1, " ", 0); ZEPHIR_SINIT_VAR(_11); ZVAL_LONG(&_11, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 131, &_1, &_11); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 132, &_1, &_11); zephir_check_call_status(); break; } @@ -18475,18 +18475,18 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_VAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_INIT_VAR(padding); ZEPHIR_CONCAT_VV(padding, _10, last); @@ -18507,18 +18507,18 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); ord = zephir_get_intval(_5); if (ord <= blockSize) { paddingSize = ord; ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 130, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "chr", &_9, 131, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 131, _8, &_7); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 132, _8, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, (length - paddingSize)); @@ -18537,7 +18537,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4, 1); ZEPHIR_INIT_NVAR(last); zephir_substr(last, text, zephir_get_intval(&_3), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 132, last); + ZEPHIR_CALL_FUNCTION(&_5, "ord", &_6, 133, last); zephir_check_call_status(); paddingSize = zephir_get_intval(_5); break; @@ -18693,7 +18693,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); if (ZEPHIR_LT_LONG(ivSize, zephir_fast_strlen_ev(encryptKey))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Size of key is too large for this algorithm", "phalcon/crypt.zep", 320); @@ -18701,14 +18701,14 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 134, ivSize, &_0); + ZEPHIR_CALL_FUNCTION(&iv, "mcrypt_create_iv", NULL, 135, ivSize, &_0); zephir_check_call_status(); if (Z_TYPE_P(iv) != IS_STRING) { ZEPHIR_CALL_FUNCTION(&_1, "strval", NULL, 21, iv); zephir_check_call_status(); ZEPHIR_CPY_WRT(iv, _1); } - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); if (Z_TYPE_P(blockSize) != IS_LONG) { _2 = zephir_get_intval(blockSize); @@ -18731,7 +18731,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { } else { ZEPHIR_CPY_WRT(padded, text); } - ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 136, cipher, encryptKey, padded, mode, iv); + ZEPHIR_CALL_FUNCTION(&_1, "mcrypt_encrypt", NULL, 137, cipher, encryptKey, padded, mode, iv); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, iv, _1); RETURN_MM(); @@ -18782,7 +18782,7 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { zephir_read_property_this(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_OBS_VAR(mode); zephir_read_property_this(&mode, this_ptr, SL("_mode"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 133, cipher, mode); + ZEPHIR_CALL_FUNCTION(&ivSize, "mcrypt_get_iv_size", NULL, 134, cipher, mode); zephir_check_call_status(); ZEPHIR_INIT_VAR(keySize); ZVAL_LONG(keySize, zephir_fast_strlen_ev(decryptKey)); @@ -18802,9 +18802,9 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZVAL_LONG(&_1, 0); ZEPHIR_INIT_VAR(_2); zephir_substr(_2, text, 0 , zephir_get_intval(ivSize), 0); - ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 137, cipher, decryptKey, _0, mode, _2); + ZEPHIR_CALL_FUNCTION(&decrypted, "mcrypt_decrypt", NULL, 138, cipher, decryptKey, _0, mode, _2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 135, cipher, mode); + ZEPHIR_CALL_FUNCTION(&blockSize, "mcrypt_get_block_size", NULL, 136, cipher, mode); zephir_check_call_status(); ZEPHIR_OBS_VAR(paddingType); zephir_read_property_this(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -18861,7 +18861,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (safe == 1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 114, _0); + ZEPHIR_CALL_FUNCTION(&_2, "base64_encode", &_3, 115, _0); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "+/", 0); @@ -18873,7 +18873,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { } ZEPHIR_CALL_METHOD(&_0, this_ptr, "encrypt", &_1, 0, text, key); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -18923,13 +18923,13 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZVAL_STRING(&_1, "+/", 0); ZEPHIR_CALL_FUNCTION(&_2, "strtr", NULL, 54, text, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 115, _2); + ZEPHIR_CALL_FUNCTION(&_3, "base64_decode", &_4, 116, _2); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _3, key); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 115, text); + ZEPHIR_CALL_FUNCTION(&_2, "base64_decode", &_4, 116, text); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, _2, key); zephir_check_call_status(); @@ -18943,7 +18943,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableCiphers) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 138); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_algorithms", NULL, 139); zephir_check_call_status(); RETURN_MM(); @@ -18955,7 +18955,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableModes) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 139); + ZEPHIR_RETURN_CALL_FUNCTION("mcrypt_list_modes", NULL, 140); zephir_check_call_status(); RETURN_MM(); @@ -19241,7 +19241,7 @@ static PHP_METHOD(Phalcon_Debug, listenExceptions) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _0); zephir_check_call_status(); RETURN_THIS(); @@ -19261,7 +19261,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "onUncaughtLowSeverity", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 150, _0); + ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 151, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 2, 0 TSRMLS_CC); @@ -19269,7 +19269,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "onUncaughtException", 1); zephir_array_fast_append(_2, _1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 149, _2); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 150, _2); zephir_check_call_status(); RETURN_THIS(); @@ -19304,7 +19304,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, 151); + ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 152); zephir_check_call_status(); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_VAR(_2); @@ -19344,7 +19344,7 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { ZVAL_LONG(&_3, 2); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "utf-8", 0); - ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 152, _0, &_3, &_4); + ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 153, _0, &_3, &_4); zephir_check_call_status(); RETURN_MM(); } @@ -19395,7 +19395,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 153, v); + ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); zephir_check_call_status(); if (zephir_is_true(_4)) { ZEPHIR_INIT_NVAR(varDump); @@ -19412,7 +19412,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { if (Z_TYPE_P(v) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_8); ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 154, v, _8); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); @@ -19453,7 +19453,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 153, variable); + ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); zephir_check_call_status(); if (zephir_is_true(_0)) { if (Z_TYPE_P(variable) == IS_BOOL) { @@ -19487,7 +19487,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 154, variable); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); RETURN_MM(); @@ -19508,7 +19508,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -19527,7 +19527,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -19619,9 +19619,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { } else { ZEPHIR_INIT_VAR(classReflection); object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -19654,9 +19654,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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -19717,7 +19717,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -19800,7 +19800,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_LONG(&_23, 2); ZEPHIR_SINIT_NVAR(_25); ZVAL_STRING(&_25, "UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 152, _21, &_23, &_25); + ZEPHIR_CALL_FUNCTION(&_8, "htmlentities", &_26, 153, _21, &_23, &_25); zephir_check_call_status(); zephir_concat_self(&html, _8 TSRMLS_CC); } @@ -19824,7 +19824,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -19833,7 +19833,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19858,10 +19858,10 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } _0 = zephir_fetch_static_property_ce(phalcon_debug_ce, SL("_isActive") TSRMLS_CC); @@ -19925,7 +19925,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -19944,7 +19944,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, ""); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, ""); @@ -19970,7 +19970,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", _13, "
", keyRequest, "", value, "
", keyRequest, "", _13, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 165); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -19985,7 +19985,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); @@ -20120,7 +20120,7 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20153,7 +20153,7 @@ static PHP_METHOD(Phalcon_Di, setShared) { object_init_ex(service, phalcon_di_service_ce); ZEPHIR_SINIT_VAR(_0); ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, &_0); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20221,7 +20221,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 63, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20398,9 +20398,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 65, parameters); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstanceargs", NULL, 66, parameters); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20411,9 +20411,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20425,9 +20425,9 @@ static PHP_METHOD(Phalcon_Di, get) { if (zephir_is_php_version(50600)) { ZEPHIR_INIT_NVAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, name); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, name); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 66); + ZEPHIR_CALL_METHOD(&instance, reflection, "newinstance", NULL, 67); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(instance); @@ -20679,7 +20679,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_VAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 68, _1); zephir_check_call_status(); if (zephir_array_isset(services, possibleService)) { if (zephir_fast_count_int(arguments TSRMLS_CC)) { @@ -20699,7 +20699,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0, 3); ZEPHIR_INIT_NVAR(_1); zephir_substr(_1, method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 67, _1); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_2, 68, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", NULL, 0, _4, definition); zephir_check_call_status(); @@ -21748,13 +21748,13 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); zephir_check_call_status(); RETURN_MM(); @@ -21776,11 +21776,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21800,7 +21800,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -21821,7 +21821,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21839,7 +21839,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -21858,7 +21858,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -21877,7 +21877,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); zephir_check_call_status(); RETURN_MM(); @@ -22156,16 +22156,16 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22175,14 +22175,14 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22192,7 +22192,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -22215,13 +22215,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } @@ -22230,7 +22230,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); zephir_check_call_status(); RETURN_MM(); } @@ -23011,7 +23011,7 @@ static PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -23035,7 +23035,7 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -23143,7 +23143,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23214,7 +23214,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23272,7 +23272,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 392, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 393, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 394, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 393, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 395, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 396, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 397, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 398, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 399, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,9 +23858,9 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 400, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 114, _2); + ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); zephir_filter_alphanum(safeBytes, _4); if (!(zephir_is_true(safeBytes))) { @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 401, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23973,11 +23973,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZVAL_STRING(&_5, "%02s", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, workFactor); - ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 188, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 189, &_5, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 401, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 401, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,9 +24081,9 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 400, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 114, _2); + ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); zephir_filter_alphanum(safeBytes, _3); ZEPHIR_INIT_NVAR(_1); @@ -24123,9 +24123,9 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 400, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 114, token); + ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); ZEPHIR_CPY_WRT(token, _1); ZEPHIR_INIT_NVAR(_0); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 402, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 413, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 412, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25512,7 +25512,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25532,7 +25532,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -26036,20 +26036,20 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 129, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 414, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "ASCII//TRANSLIT", 0); - ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 371, &_0, &_3, text); + ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 373, &_0, &_3, text); zephir_check_call_status(); zephir_get_strval(text, _5); } @@ -26107,12 +26107,12 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_CPY_WRT(friendly, _11); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "iconv", 0); - ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 128, &_3); + ZEPHIR_CALL_FUNCTION(&_5, "extension_loaded", &_2, 129, &_3); zephir_check_call_status(); if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 414, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 417, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 418, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26649,7 +26649,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26697,7 +26697,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26742,24 +26742,24 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 419, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 372, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 374, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 421, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 421, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 422, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 423, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 423, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 424, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27549,7 +27549,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 0); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 7); + ZVAL_LONG(_0, 8); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -27618,7 +27618,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 440, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27652,11 +27652,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -27685,7 +27685,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 440, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); zephir_check_call_status(); break; } @@ -28177,7 +28177,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, 78, role); + ZEPHIR_CALL_METHOD(NULL, roleObject, "__construct", NULL, 79, role); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rolesNames"), PH_NOISY_CC); @@ -28243,7 +28243,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { ; zephir_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(deepInheritName, _7); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 79, roleName, deepInheritName); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_8, 80, roleName, deepInheritName); zephir_check_call_status(); } } @@ -28320,7 +28320,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, 80, resourceName); + ZEPHIR_CALL_METHOD(NULL, resourceObject, "__construct", NULL, 81, resourceName); zephir_check_call_status(); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_resourcesNames"), PH_NOISY_CC); @@ -29186,7 +29186,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { ) { ZEPHIR_GET_HVALUE(item, _3); zephir_array_fetch_string(&_4, item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 85, _4); + ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_5, 86, _4); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, item, SS("name"), 0 TSRMLS_CC)) { @@ -29199,7 +29199,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, 86, expr); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 87, expr); zephir_check_call_status(); RETURN_MM(); } @@ -29391,7 +29391,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { ZEPHIR_GET_HVALUE(annotationData, _3); ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 86, annotationData); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_5, 87, annotationData); zephir_check_call_status(); zephir_array_append(&annotations, _4, PH_SEPARATE, "phalcon/annotations/collection.zep", 66); } @@ -31107,15 +31107,15 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotations); ZEPHIR_INIT_VAR(reflection); object_init_ex(reflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 64, className); + ZEPHIR_CALL_METHOD(NULL, reflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 87); + ZEPHIR_CALL_METHOD(&comment, reflection, "getdoccomment", NULL, 88); zephir_check_call_status(); if (Z_TYPE_P(comment) == IS_STRING) { ZEPHIR_INIT_VAR(classAnnotations); - ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 89); + ZEPHIR_CALL_METHOD(&_1, reflection, "getstartline", NULL, 90); zephir_check_call_status(); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(classAnnotations, comment, _0, _1 TSRMLS_CC); zephir_check_call_status(); @@ -31123,7 +31123,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, 90); + ZEPHIR_CALL_METHOD(&properties, reflection, "getproperties", NULL, 91); zephir_check_call_status(); if (zephir_fast_count_int(properties TSRMLS_CC)) { line = 1; @@ -31139,7 +31139,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(&_0, reflection, "getfilename", NULL, 88); + ZEPHIR_CALL_METHOD(&_0, reflection, "getfilename", NULL, 89); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_5); ZVAL_LONG(_5, line); @@ -31156,7 +31156,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, 91); + ZEPHIR_CALL_METHOD(&methods, reflection, "getmethods", NULL, 92); zephir_check_call_status(); if (zephir_fast_count_int(methods TSRMLS_CC)) { ZEPHIR_INIT_VAR(annotationsMethods); @@ -32520,7 +32520,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, 81, _0); + ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 82, _0); zephir_check_call_status(); RETURN_MM(); @@ -32554,7 +32554,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_CONCAT_SVV(_2, "_PHAN", _1, key); zephir_fast_strtolower(_0, _2); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 82, _0, data, _3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 83, _0, data, _3); zephir_check_call_status(); RETURN_MM(); @@ -32809,10 +32809,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, 83, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 84, _0); zephir_check_call_status(); if (Z_TYPE_P(serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 74, serialized); + ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 75, serialized); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_OBJECT) { RETURN_CCTOR(data); @@ -32848,9 +32848,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, 73, data); + ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 74, data); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _0, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _0, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -33064,7 +33064,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 92, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33100,7 +33100,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineCss) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_css_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33155,7 +33155,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_resource_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, collectionLocal, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33191,7 +33191,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineJs) { } ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_assets_inline_js_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), _0 TSRMLS_CC); RETURN_THIS(); @@ -33474,7 +33474,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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } @@ -33830,7 +33830,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, 92, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 93, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -33861,7 +33861,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, 93, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 94, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); @@ -33905,7 +33905,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, 94, path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 95, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -33936,7 +33936,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, 95, content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 96, content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); @@ -33980,7 +33980,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, 97, resource); + ZEPHIR_CALL_METHOD(NULL, collection, "add", NULL, 98, resource); zephir_check_call_status(); RETURN_THIS(); @@ -34019,7 +34019,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, 98, code); + ZEPHIR_CALL_METHOD(NULL, collection, "addinline", NULL, 99, code); zephir_check_call_status(); RETURN_THIS(); @@ -34256,7 +34256,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 99, completeTargetPath); + ZEPHIR_CALL_FUNCTION(&_2, "is_dir", NULL, 100, completeTargetPath); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_0); @@ -35071,7 +35071,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealSourcePath) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_VV(_1, basePath, sourcePath); - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 62, _1); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, _1); zephir_check_call_status(); RETURN_MM(); } @@ -35107,7 +35107,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, 62, completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 63, completePath); zephir_check_call_status(); RETURN_MM(); } @@ -35316,7 +35316,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35376,7 +35376,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Js, __construct) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 96, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 97, _1, content, (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35444,7 +35444,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 100, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 101, _1, path, (local ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (filter ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -35495,7 +35495,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Js, __construct) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "js", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 100, _1, path, local, filter, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 101, _1, path, local, filter, attributes); zephir_check_temp_parameter(_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -36089,7 +36089,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCA", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(cachedContent)) { RETURN_MM_NULL(); @@ -36162,7 +36162,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, lastKey, preparedContent, ttl); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, lastKey, preparedContent, ttl); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); zephir_check_call_status(); @@ -36203,11 +36203,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, increment) { if ((zephir_function_exists_ex(SS("apc_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 101, prefixedKey, _1); + ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 102, prefixedKey, _1); zephir_check_call_status(); RETURN_CCTOR(result); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, prefixedKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_NVAR(result); @@ -36248,11 +36248,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement) { if ((zephir_function_exists_ex(SS("apc_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, value); - ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 102, lastKey, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 103, lastKey, _1); zephir_check_call_status(); RETURN_MM(); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 81, lastKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 82, lastKey); zephir_check_call_status(); if (zephir_is_numeric(cachedContent)) { ZEPHIR_INIT_VAR(result); @@ -36293,7 +36293,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "_PHCA", _0, keyName); - ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 103, _1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 104, _1); zephir_check_call_status(); RETURN_MM(); @@ -36386,7 +36386,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCA", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 104, lastKey); + ZEPHIR_CALL_FUNCTION(&_1, "apc_exists", NULL, 105, lastKey); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(_1)) { RETURN_MM_BOOL(1); @@ -36427,7 +36427,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, flush) { ZEPHIR_CPY_WRT(item, (*ZEPHIR_TMP_ITERATOR_PTR)); } zephir_array_fetch_string(&_4, item, SL("key"), PH_NOISY | PH_READONLY, "phalcon/cache/backend/apc.zep", 264 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 103, _4); + ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 104, _4); zephir_check_call_status(); } _0->funcs->dtor(_0 TSRMLS_CC); @@ -36504,7 +36504,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, __construct) { return; } } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -36696,7 +36696,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, 106, cacheFile); + ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 107, cacheFile); zephir_check_call_status(); RETURN_MM(); } @@ -36729,7 +36729,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_INIT_VAR(_2); object_init_ex(_2, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -36985,7 +36985,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, 107, cacheDir); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 108, cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -37007,7 +37007,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { _4 = zephir_start_with(key, prefix, NULL); } if (_4) { - ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 106, cacheFile); + ZEPHIR_CALL_FUNCTION(&_5, "unlink", &_6, 107, cacheFile); zephir_check_call_status(); if (!(zephir_is_true(_5))) { RETURN_MM_BOOL(0); @@ -37115,7 +37115,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, __construct) { ZVAL_STRING(_1, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_1, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37679,7 +37679,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, __construct) { ZVAL_STRING(_0, "_PHCM", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38500,7 +38500,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, serialize) { ZEPHIR_OBS_VAR(_1); zephir_read_property_this(&_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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -38516,7 +38516,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, unserialize) { - ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 75, 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); @@ -38581,7 +38581,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", 79); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38681,7 +38681,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, 108); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&document, _3, "findone", NULL, 0, conditions); zephir_check_call_status(); @@ -38770,7 +38770,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, save) { } else { ZEPHIR_CPY_WRT(ttl, lifetime); } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_0); zephir_time(_0); @@ -38829,7 +38829,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -38839,7 +38839,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, 109); + ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 110); 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); @@ -38885,7 +38885,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { zephir_time(_0); zephir_array_update_string(&_2, SL("$gt"), &_0, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 1, 0 TSRMLS_CC); @@ -38943,7 +38943,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, exists) { ZEPHIR_CONCAT_VV(lastKey, _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); zephir_create_array(_3, 2, 0 TSRMLS_CC); @@ -38970,7 +38970,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, gc) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 1, 0 TSRMLS_CC); @@ -39005,7 +39005,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -39056,7 +39056,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_VV(prefixedKey, _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); zephir_create_array(_2, 1, 0 TSRMLS_CC); @@ -39095,11 +39095,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, flush) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 108); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 109); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "remove", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 109); + ZEPHIR_CALL_FUNCTION(&_1, "rand", NULL, 110); zephir_check_call_status(); if (zephir_safe_mod_long_long(zephir_get_intval(_1), 100 TSRMLS_CC) == 0) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "gc", NULL, 0); @@ -39183,7 +39183,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, __construct) { ZVAL_STRING(_0, "_PHCR", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_3, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39201,10 +39201,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { @@ -39743,7 +39741,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, __construct) { ZVAL_STRING(_0, "_PHCX", 1); zephir_array_update_string(&options, SL("statsKey"), &_0, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 105, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 106, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39768,7 +39766,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, get) { ZEPHIR_INIT_VAR(prefixedKey); ZEPHIR_CONCAT_SVV(prefixedKey, "_PHCX", _0, keyName); zephir_update_property_this(this_ptr, SL("_lastKey"), prefixedKey TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 83, prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 84, prefixedKey); zephir_check_call_status(); if (!(zephir_is_true(cachedContent))) { RETURN_MM_NULL(); @@ -39846,10 +39844,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_CPY_WRT(tt1, lifetime); } if (zephir_is_numeric(cachedContent)) { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, cachedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, cachedContent, tt1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 84, lastKey, preparedContent, tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 85, lastKey, preparedContent, tt1); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&isBuffering, frontend, "isbuffering", NULL, 0); @@ -39871,14 +39869,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 169); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 85, specialKey, keys); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -39904,14 +39902,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, delete) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 199); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, 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, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39948,7 +39946,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { } ZEPHIR_INIT_VAR(retval); array_init(retval); - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -39997,7 +39995,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, exists) { ZEPHIR_CONCAT_SVV(lastKey, "_PHCX", _0, keyName); } if (zephir_is_true(lastKey)) { - ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 110, lastKey); + ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 111, lastKey); zephir_check_call_status(); RETURN_MM(); } @@ -40036,14 +40034,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, increment) { if ((zephir_function_exists_ex(SS("xcache_inc") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 111, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 112, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -40081,14 +40079,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, decrement) { if ((zephir_function_exists_ex(SS("xcache_dec") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 112, lastKey, &_1); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 113, lastKey, &_1); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 83, lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 84, lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(newVal); ZVAL_LONG(newVal, (zephir_get_numberval(origVal) - value)); - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 84, lastKey, newVal); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 85, lastKey, newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -40113,7 +40111,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Unexpected inconsistency in options", "phalcon/cache/backend/xcache.zep", 350); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 83, specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 84, specialKey); zephir_check_call_status(); if (Z_TYPE_P(keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(_1); @@ -40125,10 +40123,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_GET_HMKEY(key, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); zephir_array_unset(&keys, key, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 113, key); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 114, key); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, specialKey, keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, specialKey, keys); zephir_check_call_status(); } RETURN_MM_BOOL(1); @@ -40226,7 +40224,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, data); zephir_check_call_status(); RETURN_MM(); @@ -40242,7 +40240,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 115, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 116, data); zephir_check_call_status(); RETURN_MM(); @@ -40339,7 +40337,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, data); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, data); zephir_check_call_status(); RETURN_MM(); @@ -40355,7 +40353,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 74, data); + ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 75, data); zephir_check_call_status(); RETURN_MM(); @@ -40450,7 +40448,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 116, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 117, data); zephir_check_call_status(); RETURN_MM(); @@ -40466,7 +40464,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 117, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 118, data); zephir_check_call_status(); RETURN_MM(); @@ -40731,7 +40729,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, start) { ZEPHIR_MM_GROW(); zephir_update_property_this(this_ptr, SL("_buffering"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -40746,7 +40744,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, getContent) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 119); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 120); zephir_check_call_status(); RETURN_MM(); } @@ -40763,7 +40761,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, stop) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_buffering"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_buffering"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -41153,7 +41151,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (_0) { Z_SET_ISREF_P(arguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 121, arguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 122, arguments); Z_UNSET_ISREF_P(arguments); zephir_check_call_status(); } @@ -41168,7 +41166,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_5, "--", 0); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 2); - ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 122, arg, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "strncmp", &_8, 123, arg, &_5, &_6); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_5); @@ -41205,7 +41203,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZVAL_STRING(&_12, "-", 0); ZEPHIR_SINIT_NVAR(_13); ZVAL_LONG(&_13, 1); - ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 122, arg, &_12, &_13); + ZEPHIR_CALL_FUNCTION(&_15, "strncmp", &_8, 123, arg, &_12, &_13); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_15, 0)) { ZEPHIR_SINIT_NVAR(_12); @@ -41223,21 +41221,21 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (str) { ZEPHIR_INIT_NVAR(_9); - ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 123); + ZEPHIR_CALL_CE_STATIC(&_7, phalcon_cli_router_route_ce, "getdelimiter", &_16, 124); zephir_check_call_status(); zephir_fast_join(_9, _7, args TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_arguments"), _9 TSRMLS_CC); } else { if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_15, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("task"), &_15, PH_COPY | PH_SEPARATE); } if (zephir_fast_count_int(args TSRMLS_CC)) { Z_SET_ISREF_P(args); - ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 121, args); + ZEPHIR_CALL_FUNCTION(&_7, "array_shift", &_1, 122, args); Z_UNSET_ISREF_P(args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("action"), &_7, PH_COPY | PH_SEPARATE); @@ -41295,7 +41293,7 @@ static PHP_METHOD(Phalcon_Cli_Dispatcher, __construct) { ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_options"), _0 TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 124); + ZEPHIR_CALL_PARENT(NULL, phalcon_cli_dispatcher_ce, this_ptr, "__construct", &_1, 125); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -41530,7 +41528,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_1, SS("task"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 125, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 126, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/cli/router.zep", 90); @@ -41543,7 +41541,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 125, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 126, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/cli/router.zep", 96); @@ -41830,7 +41828,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEPHIR_INIT_VAR(strParams); zephir_substr(strParams, _15, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); if (zephir_is_true(strParams)) { - ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 123); + ZEPHIR_CALL_CE_STATIC(&_17, phalcon_cli_router_route_ce, "getdelimiter", &_18, 124); zephir_check_call_status(); ZEPHIR_INIT_NVAR(params); zephir_fast_explode(params, _17, strParams, LONG_MAX TSRMLS_CC); @@ -41886,7 +41884,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, 125, pattern, paths); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 126, pattern, paths); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), route TSRMLS_CC); RETURN_CCTOR(route); @@ -42043,7 +42041,15 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Task) { static PHP_METHOD(Phalcon_Cli_Task, __construct) { + int ZEPHIR_LAST_CALL_STATUS; + + ZEPHIR_MM_GROW(); + if ((zephir_method_exists_ex(this_ptr, SS("onconstruct") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_CALL_METHOD(NULL, this_ptr, "onconstruct", NULL, 0); + zephir_check_call_status(); + } + ZEPHIR_MM_RESTORE(); } @@ -42916,7 +42922,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { } - ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 126, filePath, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 127, filePath, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(iniConfig)) { ZEPHIR_INIT_VAR(_0); @@ -43013,7 +43019,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { zephir_substr(_3, path, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); zephir_get_strval(path, _3); zephir_create_array(return_value, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 127, path, value); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_parseinistring", NULL, 128, path, value); zephir_check_call_status(); zephir_array_update_zval(&return_value, key, &_4, PH_COPY); RETURN_MM(); @@ -43185,10 +43191,10 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "yaml", 0); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 128, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 129, &_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", 62); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_config_exception_ce, "Yaml extension not loaded", "phalcon/config/adapter/yaml.zep", 71); return; } if (!ZEPHIR_IS_STRING_IDENTICAL(callbacks, "")) { @@ -43197,11 +43203,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, ndocs); Z_SET_ISREF_P(_3); - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath, _2, _3, callbacks); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath, _2, _3, callbacks); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 129, filePath); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 130, filePath); zephir_check_call_status(); } if (ZEPHIR_IS_FALSE_IDENTICAL(yamlConfig)) { @@ -43213,7 +43219,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_CONCAT_SVS(_5, "Configuration file ", _3, " can't be loaded"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 72 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/config/adapter/yaml.zep", 81 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -45519,6 +45525,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Column) { zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_JSONB"), 16 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_db_column_ce, SL("TYPE_TIMESTAMP"), 17 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_db_column_ce, SL("BIND_PARAM_NULL"), 0 TSRMLS_CC); zend_declare_class_constant_long(phalcon_db_column_ce, SL("BIND_PARAM_INT"), 1 TSRMLS_CC); @@ -45623,7 +45631,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { if (zephir_array_isset_string_fetch(&type, definition, SS("type"), 0 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 292); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type is required", "phalcon/db/column.zep", 297); return; } ZEPHIR_OBS_VAR(typeReference); @@ -45657,7 +45665,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_scale"), scale TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 338); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type does not support scale parameter", "phalcon/db/column.zep", 343); return; } while(0); @@ -45684,7 +45692,7 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { zephir_update_property_this(this_ptr, SL("_autoIncrement"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 378); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column type cannot be auto-increment", "phalcon/db/column.zep", 383); return; } while(0); @@ -45776,7 +45784,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_columnName"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(columnName); if (!(zephir_array_isset_string_fetch(&columnName, data, SS("_name"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 484); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Column name is required", "phalcon/db/column.zep", 489); return; } } @@ -45805,7 +45813,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { zephir_array_update_string(&definition, SL("size"), &size, PH_COPY | PH_SEPARATE); } if (zephir_array_isset_string_fetch(&scale, data, SS("_scale"), 1 TSRMLS_CC)) { - zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 518 TSRMLS_CC); + zephir_array_fetch_string(&_1, definition, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/column.zep", 523 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_1, 0) || ZEPHIR_IS_LONG(_1, 7) || ZEPHIR_IS_LONG(_1, 3) || ZEPHIR_IS_LONG(_1, 9) || ZEPHIR_IS_LONG(_1, 14)) { zephir_array_update_string(&definition, SL("scale"), &scale, PH_COPY | PH_SEPARATE); @@ -45836,12 +45844,22 @@ 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, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 141, columnName, definition); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Db_Column, hasDefault) { + + zval *_0; + + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_default"), PH_NOISY_CC); + RETURN_BOOL(Z_TYPE_P(_0) != IS_NULL); + +} + @@ -45896,6 +45914,8 @@ ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getBindType); ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, getDefault); +ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, hasDefault); + ZEPHIR_DOC_METHOD(Phalcon_Db_ColumnInterface, __set_state); @@ -48018,19 +48038,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, 145, sqlStatement); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlstatement", NULL, 146, sqlStatement); zephir_check_call_status(); if (Z_TYPE_P(sqlVariables) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 146, sqlVariables); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlvariables", NULL, 147, sqlVariables); zephir_check_call_status(); } if (Z_TYPE_P(sqlBindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 147, sqlBindTypes); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setsqlbindtypes", NULL, 148, sqlBindTypes); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_0); zephir_microtime(_0, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 148, _0); + ZEPHIR_CALL_METHOD(NULL, activeProfile, "setinitialtime", NULL, 149, _0); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforestartprofile") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "beforestartprofile", NULL, 0, activeProfile); @@ -49461,7 +49481,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 329); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 337); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -49523,13 +49543,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/mysql.zep", 178)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("decimal"), "phalcon/db/adapter/pdo/mysql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49539,7 +49565,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 196)) { + if (zephir_memnstr_str(columnType, SL("double"), "phalcon/db/adapter/pdo/mysql.zep", 204)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 9); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49549,7 +49575,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 206)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/mysql.zep", 214)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49559,7 +49585,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 216)) { + if (zephir_memnstr_str(columnType, SL("bit"), "phalcon/db/adapter/pdo/mysql.zep", 224)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49568,7 +49594,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 225)) { + if (zephir_memnstr_str(columnType, SL("tinyblob"), "phalcon/db/adapter/pdo/mysql.zep", 233)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 10); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49577,19 +49603,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("mediumblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 12); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("longblob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 13); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("blob"), "phalcon/db/adapter/pdo/mysql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 11); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -49600,7 +49626,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 265)) { + if (zephir_memnstr_str(columnType, SL("("), "phalcon/db/adapter/pdo/mysql.zep", 273)) { ZEPHIR_INIT_NVAR(matches); ZVAL_NULL(matches); ZEPHIR_INIT_NVAR(_8); @@ -49620,7 +49646,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } } } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 280)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/mysql.zep", 288)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -49628,30 +49654,30 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 3, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 311 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 310 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 317 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 4, PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 325 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 318 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 326 TSRMLS_CC); zephir_array_update_string(&definition, SL("default"), &_14, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 324 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 332 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_15, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 325); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 333); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); @@ -49707,7 +49733,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, connect) { ZEPHIR_OBS_NVAR(descriptor); zephir_read_property_this(&descriptor, this_ptr, SL("_descriptor"), PH_NOISY_CC); } - ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_oracle_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_OBS_VAR(startup); if (zephir_array_isset_string_fetch(&startup, descriptor, SS("startup"), 0 TSRMLS_CC)) { @@ -49831,7 +49857,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { } if (zephir_memnstr_str(columnType, SL("TIMESTAMP"), "phalcon/db/adapter/pdo/oracle.zep", 144)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 0); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } @@ -49881,7 +49907,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Oracle, describeColumns) { zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/oracle.zep", 194 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", &_11, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _8, PH_SEPARATE, "phalcon/db/adapter/pdo/oracle.zep", 199); ZEPHIR_CPY_WRT(oldColumn, columnName); @@ -50016,7 +50042,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, connect) { zephir_array_update_string(&descriptor, SL("password"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_3, 142, descriptor); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(schema))) { ZEPHIR_INIT_VAR(sql); @@ -50060,7 +50086,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { ZVAL_LONG(_3, 3); ZEPHIR_CALL_METHOD(&_0, this_ptr, "fetchall", NULL, 0, _2, _3); zephir_check_call_status(); - zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 318); + zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 326); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -50124,7 +50150,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 174)) { + ZEPHIR_INIT_NVAR(_7); + ZVAL_LONG(_7, 17); + zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); + break; + } + if (zephir_memnstr_str(columnType, SL("numeric"), "phalcon/db/adapter/pdo/postgresql.zep", 182)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 3); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50136,14 +50168,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 186)) { + if (zephir_memnstr_str(columnType, SL("char"), "phalcon/db/adapter/pdo/postgresql.zep", 194)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 195)) { + if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/postgresql.zep", 203)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 4); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50152,14 +50184,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("size"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 204)) { + if (zephir_memnstr_str(columnType, SL("text"), "phalcon/db/adapter/pdo/postgresql.zep", 212)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 6); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); zephir_array_update_string(&definition, SL("size"), &charSize, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 213)) { + if (zephir_memnstr_str(columnType, SL("float"), "phalcon/db/adapter/pdo/postgresql.zep", 221)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 7); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50170,7 +50202,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_8, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 224)) { + if (zephir_memnstr_str(columnType, SL("bool"), "phalcon/db/adapter/pdo/postgresql.zep", 232)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 8); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50182,19 +50214,19 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("bindType"), &_9, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 234)) { + if (zephir_memnstr_str(columnType, SL("jsonb"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 16); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 242)) { + if (zephir_memnstr_str(columnType, SL("json"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 15); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 250)) { + if (zephir_memnstr_str(columnType, SL("uuid"), "phalcon/db/adapter/pdo/postgresql.zep", 258)) { ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 5); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); @@ -50208,7 +50240,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } - if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 266)) { + if (zephir_memnstr_str(columnType, SL("unsigned"), "phalcon/db/adapter/pdo/postgresql.zep", 274)) { zephir_array_update_string(&definition, SL("unsigned"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(oldColumn) == IS_NULL) { @@ -50216,22 +50248,22 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { } else { zephir_array_update_string(&definition, SL("after"), &oldColumn, PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 282 TSRMLS_CC); + zephir_array_fetch_long(&_10, field, 6, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 290 TSRMLS_CC); if (ZEPHIR_IS_STRING(_10, "PRI")) { zephir_array_update_string(&definition, SL("primary"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 289 TSRMLS_CC); + zephir_array_fetch_long(&_11, field, 5, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 297 TSRMLS_CC); if (ZEPHIR_IS_STRING(_11, "NO")) { zephir_array_update_string(&definition, SL("notNull"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } - zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 296 TSRMLS_CC); + zephir_array_fetch_long(&_12, field, 7, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); if (ZEPHIR_IS_STRING(_12, "auto_increment")) { zephir_array_update_string(&definition, SL("autoIncrement"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(_13); - zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 303 TSRMLS_CC); + zephir_array_fetch_long(&_13, field, 9, PH_NOISY, "phalcon/db/adapter/pdo/postgresql.zep", 311 TSRMLS_CC); if (Z_TYPE_P(_13) != IS_NULL) { - zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 304 TSRMLS_CC); + zephir_array_fetch_long(&_14, field, 9, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 312 TSRMLS_CC); ZEPHIR_INIT_NVAR(_8); ZVAL_STRING(_8, "/^'|'?::[[:alnum:][:space:]]+$/", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_9); @@ -50241,7 +50273,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_check_temp_parameter(_9); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_15, PH_COPY | PH_SEPARATE); - zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 305 TSRMLS_CC); + zephir_array_fetch_string(&_17, definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_18); ZVAL_STRING(&_18, "null", 0); ZEPHIR_CALL_FUNCTION(&_19, "strcasecmp", &_20, 19, _17, &_18); @@ -50250,12 +50282,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_update_string(&definition, SL("default"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } } - zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 313 TSRMLS_CC); + zephir_array_fetch_long(&columnName, field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 321 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); - zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 314); + zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 322); ZEPHIR_CPY_WRT(oldColumn, columnName); } RETURN_CCTOR(columns); @@ -50303,11 +50335,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 329); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 337); return; } if (!(zephir_fast_count_int(columns TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 333); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The table must contain at least one column", "phalcon/db/adapter/pdo/postgresql.zep", 341); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dialect"), PH_NOISY_CC); @@ -50321,7 +50353,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 349); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 357); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -50347,13 +50379,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 361 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } else { - zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 356 TSRMLS_CC); + zephir_array_fetch_long(&_6, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 364 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _6, ";"); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _4); @@ -50414,7 +50446,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "begin", NULL, 0); zephir_check_call_status_or_jump(try_end_1); - zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 381); + zephir_is_iterable(queries, &_2, &_1, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 389); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -50440,7 +50472,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zend_clear_exception(TSRMLS_C); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 386 TSRMLS_CC); + zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 394 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -50448,7 +50480,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } else { ZEPHIR_INIT_VAR(_6); if (!(ZEPHIR_IS_EMPTY(sql))) { - zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 390 TSRMLS_CC); + zephir_array_fetch_long(&_7, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 398 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_VS(_4, _7, ";"); ZEPHIR_CALL_METHOD(&_6, this_ptr, "execute", NULL, 0, _4); @@ -50546,7 +50578,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, connect) { return; } zephir_array_update_string(&descriptor, SL("dsn"), &dbname, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 141, descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_0, 142, descriptor); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -50652,7 +50684,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { } if (zephir_memnstr_str(columnType, SL("timestamp"), "phalcon/db/adapter/pdo/sqlite.zep", 166)) { ZEPHIR_INIT_NVAR(_7); - ZVAL_LONG(_7, 1); + ZVAL_LONG(_7, 17); zephir_array_update_string(&definition, SL("type"), &_7, PH_COPY | PH_SEPARATE); break; } @@ -50766,7 +50798,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_array_fetch_long(&columnName, field, 1, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 286 TSRMLS_CC); ZEPHIR_INIT_NVAR(_7); object_init_ex(_7, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 140, columnName, definition); + ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_21, 141, columnName, definition); zephir_check_call_status(); zephir_array_append(&columns, _7, PH_SEPARATE, "phalcon/db/adapter/pdo/sqlite.zep", 287); ZEPHIR_CPY_WRT(oldColumn, columnName); @@ -51005,11 +51037,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_MySQL) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { - zephir_fcall_cache_entry *_9 = NULL; - HashTable *_6; - HashPosition _5; + zephir_fcall_cache_entry *_10 = NULL; + HashTable *_7; + HashPosition _6; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *value = NULL, *valueSql, **_7, _8 = zval_used_for_init, _10 = zval_used_for_init, *_11; + zval *column, *columnSql, *size = NULL, *scale = NULL, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *value = NULL, *valueSql, **_8, _9 = zval_used_for_init, _11 = zval_used_for_init, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -51083,6 +51115,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHAR") TSRMLS_CC); @@ -51204,7 +51242,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized MySQL data type", "phalcon/db/dialect/mysql.zep", 191); + ZEPHIR_INIT_VAR(_5); + object_init_ex(_5, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized MySQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_5, "phalcon/db/dialect/mysql.zep", 197 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -51213,36 +51260,36 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_6, &_5, 0, 0, "phalcon/db/dialect/mysql.zep", 202); + zephir_is_iterable(typeValues, &_7, &_6, 0, 0, "phalcon/db/dialect/mysql.zep", 208); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zephir_hash_move_forward_ex(_7, &_6) ) { - ZEPHIR_GET_HVALUE(value, _7); - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_9, 142, value, &_8); + ZEPHIR_GET_HVALUE(value, _8); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_10, 143, value, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_4); + ZEPHIR_CONCAT_SVS(_4, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _4 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_8); - ZVAL_LONG(&_8, 0); - ZEPHIR_SINIT_VAR(_10); - ZVAL_LONG(&_10, -2); - ZEPHIR_INIT_VAR(_11); - zephir_substr(_11, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(", _11, ")"); - zephir_concat_self(&columnSql, _4 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_LONG(&_9, 0); + ZEPHIR_SINIT_VAR(_11); + ZVAL_LONG(&_11, -2); + ZEPHIR_INIT_NVAR(_5); + zephir_substr(_5, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(", _5, ")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_9, 142, typeValues, &_10); + ZEPHIR_SINIT_NVAR(_11); + ZVAL_STRING(&_11, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_3, "addcslashes", &_10, 143, typeValues, &_11); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_4); - ZEPHIR_CONCAT_SVS(_4, "(\"", _2, "\")"); + ZEPHIR_CONCAT_SVS(_4, "(\"", _3, "\")"); zephir_concat_self(&columnSql, _4 TSRMLS_CC); } } @@ -51255,7 +51302,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51293,33 +51340,41 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " ADD `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 229)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_4, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_8)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); zephir_check_call_status(); if (zephir_is_true(afterPosition)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SV(_5, " AFTER ", afterPosition); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_7); + ZEPHIR_CONCAT_SV(_7, " AFTER ", afterPosition); + zephir_concat_self(&sql, _7 TSRMLS_CC); } } RETURN_CCTOR(sql); @@ -51329,7 +51384,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, _3, *_4 = NULL, *_5; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51370,20 +51425,28 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVSVSV(sql, "ALTER TABLE ", _0, " MODIFY `", _1, "` ", _2); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_3); - ZVAL_STRING(&_3, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_4, "addcslashes", NULL, 142, defaultValue, &_3); + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SVS(_5, " DEFAULT \"", _4, "\""); - zephir_concat_self(&sql, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_4, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -51759,12 +51822,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL, *_13 = NULL; - HashTable *_1, *_11, *_17; - HashPosition _0, _10, _16; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL, *_17 = NULL; + HashTable *_1, *_15, *_19; + HashPosition _0, _14, _18; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, **_12, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, **_16, **_20, *_21; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51798,7 +51861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 354); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -51818,7 +51881,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 413); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -51830,42 +51893,50 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { zephir_concat_self_str(&columnLine, SL(" AUTO_INCREMENT") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 407); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_11, &_10, 0, 0, "phalcon/db/dialect/mysql.zep", 435); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(index, _12); + ZEPHIR_GET_HVALUE(index, _16); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -51873,79 +51944,79 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_13, 44, _4); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_17, 44, _4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); ZEPHIR_CONCAT_SVS(indexSql, "PRIMARY KEY (", _3, ")"); } else { ZEPHIR_INIT_NVAR(indexSql); if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_14, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", &_13, 44, _14); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_17, 44, _9); zephir_check_call_status(); - ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _7, ")"); + ZEPHIR_CONCAT_VSVSVS(indexSql, indexType, " KEY `", indexName, "` (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_15, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", &_13, 44, _15); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _14, ")"); + ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 433); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_17, &_16, 0, 0, "phalcon/db/dialect/mysql.zep", 457); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); for ( - ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS - ; zephir_hash_move_forward_ex(_17, &_16) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(reference, _18); + ZEPHIR_GET_HVALUE(reference, _20); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_13, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_17, 44, _6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", &_13, 44, _19); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "getcolumnlist", &_17, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _14, "`(", _15, ")"); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _9, "`(", _12, ")"); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 455); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); } } - ZEPHIR_INIT_VAR(_21); - zephir_fast_join_str(_21, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _21, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_SV(_20, " ", _3); - zephir_concat_self(&sql, _20 TSRMLS_CC); + ZEPHIR_INIT_VAR(_21); + ZEPHIR_CONCAT_SV(_21, " ", _3); + zephir_concat_self(&sql, _21 TSRMLS_CC); } RETURN_CCTOR(sql); @@ -52035,7 +52106,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 493); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -52397,7 +52468,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 633); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -52405,7 +52476,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 642); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(tableCollation); @@ -52413,13 +52484,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 652 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 652); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 653); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { @@ -52518,7 +52589,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL; + zval *column, *columnSql = NULL, *size = NULL, *scale = NULL, *type = NULL, *_0, *_1 = NULL, *_2; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -52557,6 +52628,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TIMESTAMP", 1); break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { ZEPHIR_INIT_NVAR(columnSql); ZEPHIR_CONCAT_SVS(columnSql, "CHAR(", size, ")"); @@ -52579,7 +52656,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition) { ZVAL_STRING(columnSql, "TINYINT(1)", 1); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized Oracle data type", "phalcon/db/dialect/oracle.zep", 119); + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "Unrecognized Oracle data type at column ", _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _2); + zephir_check_call_status(); + zephir_throw_exception_debug(_0, "phalcon/db/dialect/oracle.zep", 125 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } while(0); @@ -52619,7 +52705,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 130); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 136); return; } @@ -52659,7 +52745,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 138); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 144); return; } @@ -52697,7 +52783,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_get_strval(columnName, columnName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 146); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 152); return; } @@ -52734,7 +52820,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 154); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 160); return; } @@ -52782,7 +52868,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 163); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 169); return; } @@ -52799,7 +52885,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addPrimaryKey) { zephir_get_strval(schemaName, schemaName_param); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 171); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 177); return; } @@ -52836,7 +52922,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 179); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 185); return; } @@ -52873,7 +52959,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 187); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 193); return; } @@ -52921,7 +53007,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 195); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 201); return; } @@ -52961,7 +53047,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 203); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; } @@ -53054,7 +53140,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 230); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/oracle.zep", 236); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -53144,14 +53230,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "' AND OWNER='", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, viewName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, viewName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_VIEWS WHERE VIEW_NAME='", _0, "'"); RETURN_MM(); @@ -53177,7 +53263,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, listViews) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT VIEW_NAME FROM ALL_VIEWS WHERE OWNER='", _0, "' ORDER BY VIEW_NAME"); RETURN_MM(); @@ -53216,14 +53302,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "' AND OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, tableName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, tableName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END RET FROM ALL_TABLES WHERE TABLE_NAME='", _0, "'"); RETURN_MM(); @@ -53260,14 +53346,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' AND TC.OWNER = '", _2, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TC.COLUMN_NAME, TC.DATA_TYPE, TC.DATA_LENGTH, TC.DATA_PRECISION, TC.DATA_SCALE, TC.NULLABLE, C.CONSTRAINT_TYPE, TC.DATA_DEFAULT, CC.POSITION FROM ALL_TAB_COLUMNS TC LEFT JOIN (ALL_CONS_COLUMNS CC JOIN ALL_CONSTRAINTS C ON (CC.CONSTRAINT_NAME = C.CONSTRAINT_NAME AND CC.TABLE_NAME = C.TABLE_NAME AND CC.OWNER = C.OWNER AND C.CONSTRAINT_TYPE = 'P')) ON TC.TABLE_NAME = CC.TABLE_NAME AND TC.COLUMN_NAME = CC.COLUMN_NAME WHERE TC.TABLE_NAME = '", _0, "' ORDER BY TC.COLUMN_ID"); RETURN_MM(); @@ -53293,7 +53379,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, listTables) { if (!ZEPHIR_IS_STRING(schemaName, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schemaName); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schemaName); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT TABLE_NAME, OWNER FROM ALL_TABLES WHERE OWNER='", _0, "' ORDER BY OWNER, TABLE_NAME"); RETURN_MM(); @@ -53332,14 +53418,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "' AND IC.INDEX_OWNER = '", _2, "'"); RETURN_MM(); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "SELECT I.TABLE_NAME, 0 AS C0, I.INDEX_NAME, IC.COLUMN_POSITION, IC.COLUMN_NAME FROM ALL_INDEXES I JOIN ALL_IND_COLUMNS IC ON I.INDEX_NAME = IC.INDEX_NAME WHERE I.TABLE_NAME = '", _0, "'"); RETURN_MM(); @@ -53378,15 +53464,15 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { ZEPHIR_INIT_VAR(sql); ZVAL_STRING(sql, "SELECT AC.TABLE_NAME, CC.COLUMN_NAME, AC.CONSTRAINT_NAME, AC.R_OWNER, RCC.TABLE_NAME R_TABLE_NAME, RCC.COLUMN_NAME R_COLUMN_NAME FROM ALL_CONSTRAINTS AC JOIN ALL_CONS_COLUMNS CC ON AC.CONSTRAINT_NAME = CC.CONSTRAINT_NAME JOIN ALL_CONS_COLUMNS RCC ON AC.R_OWNER = RCC.OWNER AND AC.R_CONSTRAINT_NAME = RCC.CONSTRAINT_NAME WHERE AC.CONSTRAINT_TYPE='R' ", 1); if (!ZEPHIR_IS_STRING(schema, "")) { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, schema); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_2, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSVS(_3, "AND AC.OWNER='", _0, "' AND AC.TABLE_NAME = '", _2, "'"); zephir_concat_self(&sql, _3 TSRMLS_CC); } else { - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 143, table); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_text_ce, "upper", &_1, 144, table); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVS(_3, "AND AC.TABLE_NAME = '", _0, "'"); @@ -53482,11 +53568,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { } - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 143, table); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_text_ce, "upper", &_2, 144, table); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 143, schema); + ZEPHIR_CALL_CE_STATIC(&_3, phalcon_text_ce, "upper", &_2, 144, schema); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 144, _1, _3, alias, escapeChar); + ZEPHIR_RETURN_CALL_PARENT(phalcon_db_dialect_oracle_ce, this_ptr, "preparetable", &_0, 145, _1, _3, alias, escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -53518,11 +53604,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Postgresql) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { - zephir_fcall_cache_entry *_6 = NULL; - HashTable *_3; - HashPosition _2; + zephir_fcall_cache_entry *_7 = NULL; + HashTable *_4; + HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *value = NULL, *valueSql, **_4, _5 = zval_used_for_init, _7 = zval_used_for_init, *_8, *_9 = NULL, *_10 = NULL; + zval *column, *size = NULL, *columnType = NULL, *columnSql, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, *_8 = NULL, _9 = zval_used_for_init, *_10 = NULL, *_11; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -53585,6 +53671,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(columnType, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(columnType, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -53638,7 +53730,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized PostgreSQL data type", "phalcon/db/dialect/postgresql.zep", 143); + ZEPHIR_INIT_VAR(_2); + object_init_ex(_2, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -53647,37 +53748,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_3, &_2, 0, 0, "phalcon/db/dialect/postgresql.zep", 154); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zephir_hash_move_forward_ex(_4, &_3) ) { - ZEPHIR_GET_HVALUE(value, _4); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_6, 142, value, &_5); + ZEPHIR_GET_HVALUE(value, _5); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 143, value, &_6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "\"", _0, "\", "); + zephir_concat_self(&valueSql, _8 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, 0); - ZEPHIR_SINIT_VAR(_7); - ZVAL_LONG(&_7, -2); - ZEPHIR_INIT_VAR(_8); - zephir_substr(_8, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(", _8, ")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_6); + ZVAL_LONG(&_6, 0); + ZEPHIR_SINIT_VAR(_9); + ZVAL_LONG(&_9, -2); + ZEPHIR_INIT_NVAR(_2); + zephir_substr(_2, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "(", _2, ")"); + zephir_concat_self(&columnSql, _8 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_7); - ZVAL_STRING(&_7, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_6, 142, typeValues, &_7); + ZEPHIR_SINIT_NVAR(_9); + ZVAL_STRING(&_9, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_10, "addcslashes", &_7, 143, typeValues, &_9); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "(\"", _10, "\")"); - zephir_concat_self(&columnSql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + ZEPHIR_CONCAT_SVS(_11, "(\"", _10, "\")"); + zephir_concat_self(&columnSql, _11 TSRMLS_CC); } } } while(0); @@ -53689,7 +53790,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53733,17 +53834,23 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_4); + zephir_fast_strtoupper(_4, defaultValue); + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_5); + ZVAL_STRING(&_5, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -53754,7 +53861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zend_bool _10; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _11, *_12 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53845,9 +53952,9 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CALL_METHOD(&_4, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); if (!ZEPHIR_IS_EQUAL(_3, _4)) { - ZEPHIR_CALL_METHOD(&_6, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = ZEPHIR_IS_EMPTY(_6); + _10 = !zephir_is_true(_6); if (_10) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); @@ -53860,18 +53967,30 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); - zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_11); - ZVAL_STRING(&_11, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_12, "addcslashes", NULL, 142, defaultValue, &_11); + if (zephir_is_true(_8)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" SET DEFAULT \"", _12, "\""); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else { + ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_13); + ZVAL_STRING(&_13, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_15); + ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); + zephir_concat_self(&sql, _15 TSRMLS_CC); + } } } RETURN_CCTOR(sql); @@ -54248,12 +54367,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_8 = NULL; - HashTable *_1, *_13, *_21; - HashPosition _0, _12, _20; + zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; + HashTable *_1, *_16, *_21; + HashPosition _0, _15, _20; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, _6 = zval_used_for_init, *_7 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, **_14, *_15 = NULL, *_16 = NULL, *_17 = NULL, *_18 = NULL, *_19 = NULL, **_22, *_23, *_24 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -54287,7 +54406,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 327); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -54309,7 +54428,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 383); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -54321,52 +54440,60 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", &_8, 142, defaultValue, &_6); + if (zephir_is_true(_6)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " DEFAULT \"", _7, "\""); - zephir_concat_self(&columnLine, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_strtoupper(_7, defaultValue); + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); + zephir_concat_self(&columnLine, _11 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_7, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_7)) { + if (zephir_is_true(_12)) { } - ZEPHIR_CALL_METHOD(&_10, column, "isprimary", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_10)) { - ZEPHIR_CALL_METHOD(&_11, column, "getname", NULL, 0); + if (zephir_is_true(_13)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 378); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 381); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _9, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 384); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_13, &_12, 0, 0, "phalcon/db/dialect/postgresql.zep", 418); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS + ; zephir_hash_move_forward_ex(_16, &_15) ) { - ZEPHIR_GET_HVALUE(index, _14); + ZEPHIR_GET_HVALUE(index, _17); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); @@ -54382,37 +54509,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_10, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 44, _10); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _7, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); } else { - ZEPHIR_CALL_METHOD(&_11, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "preparetable", NULL, 144, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SVSV(_16, "CREATE INDEX \"", _11, "\" ON ", _15); - zephir_concat_self(&indexSqlAfterCreate, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); + zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _17, ");"); + ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 415); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 443); + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -54420,56 +54547,56 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_GET_HVALUE(reference, _22); ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _7); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_11, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "preparetable", NULL, 144, _11, schemaName); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _10 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_17, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "getcolumnlist", NULL, 44, _17); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVS(_9, " (", _15, ")"); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_16); - ZEPHIR_CONCAT_SV(_16, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _16 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _19 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 441); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); } } - ZEPHIR_INIT_VAR(_23); - zephir_fast_join_str(_23, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VS(_9, _23, "\n)"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_7); + zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_VS(_11, _7, "\n)"); + zephir_concat_self(&sql, _11 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_24); - ZEPHIR_CONCAT_SV(_24, " ", _3); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_VAR(_23); + ZEPHIR_CONCAT_SV(_23, " ", _3); + zephir_concat_self(&sql, _23 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_24); - ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _24 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_23); + ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _23 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -54558,7 +54685,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 480); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -54916,11 +55043,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Dialect_Sqlite) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { - zephir_fcall_cache_entry *_7 = NULL; - HashTable *_4; - HashPosition _3; + zephir_fcall_cache_entry *_8 = NULL; + HashTable *_5; + HashPosition _4; int ZEPHIR_LAST_CALL_STATUS; - zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *value = NULL, *valueSql, **_5, _6 = zval_used_for_init, _8 = zval_used_for_init, *_9, *_10 = NULL; + zval *column, *columnSql, *type = NULL, *typeValues = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *value = NULL, *valueSql, **_6, _7 = zval_used_for_init, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &column); @@ -54979,6 +55106,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } break; } + if (ZEPHIR_IS_LONG(type, 17)) { + if (ZEPHIR_IS_EMPTY(columnSql)) { + zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + } + break; + } if (ZEPHIR_IS_LONG(type, 5)) { if (ZEPHIR_IS_EMPTY(columnSql)) { zephir_concat_self_str(&columnSql, SL("CHARACTER") TSRMLS_CC); @@ -55003,7 +55136,16 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { break; } if (ZEPHIR_IS_EMPTY(columnSql)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Unrecognized SQLite data type", "phalcon/db/dialect/sqlite.zep", 112); + ZEPHIR_INIT_VAR(_3); + object_init_ex(_3, phalcon_db_exception_ce); + ZEPHIR_CALL_METHOD(&_0, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_1); + ZEPHIR_CONCAT_SV(_1, "Unrecognized SQLite data type at column ", _0); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _1); + zephir_check_call_status(); + zephir_throw_exception_debug(_3, "phalcon/db/dialect/sqlite.zep", 118 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&typeValues, column, "gettypevalues", NULL, 0); @@ -55012,37 +55154,37 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/sqlite.zep", 123); + zephir_is_iterable(typeValues, &_5, &_4, 0, 0, "phalcon/db/dialect/sqlite.zep", 129); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zephir_hash_move_forward_ex(_5, &_4) ) { - ZEPHIR_GET_HVALUE(value, _5); - ZEPHIR_SINIT_NVAR(_6); - ZVAL_STRING(&_6, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_0, "addcslashes", &_7, 142, value, &_6); + ZEPHIR_GET_HVALUE(value, _6); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_STRING(&_7, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_8, 143, value, &_7); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "\"", _0, "\", "); - zephir_concat_self(&valueSql, _1 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "\"", _2, "\", "); + zephir_concat_self(&valueSql, _9 TSRMLS_CC); } - ZEPHIR_SINIT_NVAR(_6); - ZVAL_LONG(&_6, 0); - ZEPHIR_SINIT_VAR(_8); - ZVAL_LONG(&_8, -2); - ZEPHIR_INIT_VAR(_9); - zephir_substr(_9, valueSql, 0 , -2 , 0); - ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(", _9, ")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_SINIT_NVAR(_7); + ZVAL_LONG(&_7, 0); + ZEPHIR_SINIT_VAR(_10); + ZVAL_LONG(&_10, -2); + ZEPHIR_INIT_NVAR(_3); + zephir_substr(_3, valueSql, 0 , -2 , 0); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, "(", _3, ")"); + zephir_concat_self(&columnSql, _9 TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_2, "addcslashes", &_7, 142, typeValues, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_8, 143, typeValues, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "(\"", _2, "\")"); - zephir_concat_self(&columnSql, _10 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "(\"", _11, "\")"); + zephir_concat_self(&columnSql, _12 TSRMLS_CC); } } } while(0); @@ -55054,7 +55196,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, _4, *_5 = NULL, *_6; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4 = NULL, *_5, _6, *_7 = NULL, *_8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -55095,25 +55237,33 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_4, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { - ZEPHIR_SINIT_VAR(_4); - ZVAL_STRING(&_4, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_5, "addcslashes", NULL, 142, defaultValue, &_4); + if (zephir_is_true(_4)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_6); - ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _5, "\""); - zephir_concat_self(&sql, _6 TSRMLS_CC); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 152)) { + zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_VAR(_6); + ZVAL_STRING(&_6, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_7, "addcslashes", NULL, 143, defaultValue, &_6); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _7, "\""); + zephir_concat_self(&sql, _8 TSRMLS_CC); + } } - ZEPHIR_CALL_METHOD(&_5, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_7)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_5, column, "isautoincrement", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_5)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" PRIMARY KEY AUTOINCREMENT") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -55155,7 +55305,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 165); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Altering a DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 175); return; } @@ -55203,7 +55353,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 173); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping DB column is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 183); return; } @@ -55357,7 +55507,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 217); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 227); return; } @@ -55394,7 +55544,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Removing a primary key after table has been created is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 235); return; } @@ -55431,7 +55581,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 233); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Adding a foreign key constraint to an existing table is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 243); return; } @@ -55479,7 +55629,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 241); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Dropping a foreign key constraint is not supported by SQLite", "phalcon/db/dialect/sqlite.zep", 251); return; } @@ -55519,7 +55669,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 249); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); return; } @@ -55608,7 +55758,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 278); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -55969,17 +56119,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -55992,17 +56138,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56015,17 +56157,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56038,17 +56176,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } @@ -56061,17 +56195,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } @@ -56224,7 +56354,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchArray) { static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { int ZEPHIR_LAST_CALL_STATUS; - zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *_0, *_1; + zval *fetchStyle = NULL, *fetchArgument = NULL, *ctorArgs = NULL, *pdoStatement; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 3, &fetchStyle, &fetchArgument, &ctorArgs); @@ -56240,32 +56370,29 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, fetchAll) { } + ZEPHIR_OBS_VAR(pdoStatement); + zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); if (Z_TYPE_P(fetchStyle) == IS_LONG) { - if ((((int) (zephir_get_numberval(fetchStyle)) & 8)) == 8) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); + if (ZEPHIR_IS_LONG(fetchStyle, 8)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument, ctorArgs); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 7)) == 7) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 7)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - if ((((int) (zephir_get_numberval(fetchStyle)) & 10)) == 10) { - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle, fetchArgument); + if (ZEPHIR_IS_LONG(fetchStyle, 10)) { + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle, fetchArgument); zephir_check_call_status(); RETURN_MM(); } - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, "fetchall", NULL, 0, fetchStyle); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0, fetchStyle); zephir_check_call_status(); RETURN_MM(); } - _1 = zephir_fetch_nproperty_this(this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_1, "fetchall", NULL, 0); + ZEPHIR_RETURN_CALL_METHOD(pdoStatement, "fetchall", NULL, 0); zephir_check_call_status(); RETURN_MM(); @@ -56307,7 +56434,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZVAL_STRING(&_2, "/^SELECT\\s+(.*)/i", 0); zephir_preg_match(_1, &_2, sqlStatement, matches, 0, 0 , 0 TSRMLS_CC); if (zephir_is_true(_1)) { - zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 213 TSRMLS_CC); + zephir_array_fetch_long(&_3, matches, 1, PH_NOISY | PH_READONLY, "phalcon/db/result/pdo.zep", 217 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "SELECT COUNT(*) \"numrows\" FROM (SELECT ", _3, ")"); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); @@ -56317,7 +56444,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, numRows) { ZEPHIR_CALL_METHOD(&row, result, "fetch", NULL, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(rowCount); - zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 215 TSRMLS_CC); + zephir_array_fetch_string(&rowCount, row, SL("numrows"), PH_NOISY, "phalcon/db/result/pdo.zep", 219 TSRMLS_CC); } } else { ZEPHIR_INIT_NVAR(rowCount); @@ -56411,10 +56538,10 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { ZEPHIR_OBS_VAR(pdoStatement); zephir_read_property_this(&pdoStatement, this_ptr, SL("_pdoStatement"), PH_NOISY_CC); - if (((fetchMode & 7)) == 7) { + if (fetchMode == 8) { ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -56424,10 +56551,10 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 8)) == 8) { + if (fetchMode == 9) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); - ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject, ctorargs); + ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); zephir_check_call_status(); if (zephir_is_true(_0)) { ZEPHIR_INIT_ZVAL_NREF(_2); @@ -56437,7 +56564,7 @@ static PHP_METHOD(Phalcon_Db_Result_Pdo, setFetchMode) { } RETURN_MM_BOOL(0); } - if (((fetchMode & 9)) == 9) { + if (fetchMode == 7) { ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, fetchMode); ZEPHIR_CALL_METHOD(&_0, pdoStatement, "setfetchmode", NULL, 0, _1, colNoOrClassNameOrObject); @@ -56573,7 +56700,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -56736,7 +56863,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -56773,7 +56900,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56783,7 +56910,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -56805,7 +56932,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -56816,7 +56943,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 169, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -56839,7 +56966,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_GET_HVALUE(value, _25); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56862,7 +56989,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56872,7 +56999,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { do { Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 170, variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); Z_UNSET_ISREF_P(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { @@ -56888,9 +57015,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 132, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 130, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -56907,7 +57034,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56918,7 +57045,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 171, key); + ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); Z_UNSET_ISREF_P(key); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); @@ -56934,7 +57061,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 168, value, _3, &_5); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); @@ -56942,11 +57069,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _20 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 3, 0 TSRMLS_CC); @@ -56973,7 +57100,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); @@ -56991,7 +57118,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -57012,7 +57139,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); @@ -57034,7 +57161,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); - ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_20); ZEPHIR_CONCAT_VS(_20, _18, ")\n"); @@ -57042,7 +57169,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 131, space, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, output, _10, ")"); RETURN_MM(); @@ -57064,7 +57191,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -57115,9 +57242,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, 4); ZEPHIR_SINIT_VAR(_40); ZVAL_STRING(&_40, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 152, variable, &_5, &_40); + ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 174, _2); + ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); zephir_check_call_status(); zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -57235,7 +57362,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( @@ -57344,7 +57471,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 75); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 76); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 21, 0 TSRMLS_CC); @@ -57356,7 +57483,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57369,7 +57496,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57382,7 +57509,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57395,7 +57522,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57408,7 +57535,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57421,7 +57548,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57434,7 +57561,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57447,7 +57574,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57460,7 +57587,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57473,7 +57600,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57486,7 +57613,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57499,7 +57626,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57512,7 +57639,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57525,7 +57652,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57538,7 +57665,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57551,7 +57678,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57564,7 +57691,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57575,7 +57702,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "sessionBag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Bag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57588,7 +57715,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57601,7 +57728,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57614,7 +57741,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57994,7 +58121,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, 176, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 177, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -58117,7 +58244,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, 63, name, definition, shared); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 64, name, definition, shared); zephir_check_call_status(); RETURN_MM(); @@ -58192,7 +58319,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, 175); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -58201,10 +58328,10 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Router", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_VAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58214,10 +58341,10 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); - ZVAL_STRING(_4, "Phalcon\\CLI\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); + ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58230,7 +58357,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58243,7 +58370,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58256,7 +58383,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58269,7 +58396,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58282,7 +58409,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58295,7 +58422,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58308,7 +58435,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58321,7 +58448,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_SINIT_NVAR(_5); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 63, _3, _4, &_5); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58494,7 +58621,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -58539,7 +58666,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -58609,7 +58736,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -58673,7 +58800,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } @@ -58738,17 +58865,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -58981,7 +59104,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -58991,7 +59114,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -59040,7 +59163,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -59062,13 +59185,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _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, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -59224,7 +59347,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -59437,9 +59560,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } @@ -59453,10 +59576,10 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); zephir_check_call_status(); } } @@ -59669,7 +59792,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -59942,7 +60065,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -59960,7 +60083,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, 197); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 198); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60567,7 +60690,7 @@ static PHP_METHOD(Phalcon_Forms_Element, setMessages) { static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages, *_0; + zval *message, *messages = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); @@ -60582,6 +60705,8 @@ static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); + ZEPHIR_OBS_NVAR(messages); + zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); } ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); zephir_check_call_status(); @@ -61086,7 +61211,7 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -61094,10 +61219,10 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -61160,7 +61285,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); zephir_check_call_status(); } } @@ -61630,7 +61755,7 @@ static PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -61722,7 +61847,7 @@ static PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); @@ -61831,7 +61956,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); @@ -61876,7 +62001,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); @@ -61921,7 +62046,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); @@ -61966,7 +62091,7 @@ static PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); @@ -62011,7 +62136,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); @@ -62056,7 +62181,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); @@ -62101,7 +62226,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); @@ -62148,7 +62273,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); zephir_check_call_status(); RETURN_MM(); @@ -62199,7 +62324,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -62270,7 +62395,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -62315,7 +62440,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); @@ -62360,7 +62485,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); @@ -62405,7 +62530,7 @@ static PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); zephir_check_call_status(); RETURN_MM(); @@ -62717,7 +62842,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -62813,7 +62938,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -63224,7 +63349,7 @@ static PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63275,7 +63400,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63333,12 +63458,12 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); Z_UNSET_ISREF_P(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63389,7 +63514,7 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -63826,7 +63951,7 @@ static PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); zephir_check_call_status(); RETURN_MM(); @@ -64017,7 +64142,7 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -64089,7 +64214,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -64102,7 +64227,7 @@ static PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -64115,7 +64240,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -64128,7 +64253,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -64141,7 +64266,7 @@ static PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -64154,7 +64279,7 @@ static PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -64167,7 +64292,7 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -64215,7 +64340,7 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64259,7 +64384,7 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 222, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64308,7 +64433,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -64342,7 +64467,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -64356,7 +64481,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -64429,7 +64554,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -64483,7 +64608,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -64502,7 +64627,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -64577,7 +64702,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -64595,7 +64720,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -64726,7 +64851,7 @@ static PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64745,7 +64870,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -64763,7 +64888,7 @@ static PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64782,7 +64907,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -64800,7 +64925,7 @@ static PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -64819,7 +64944,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65139,7 +65264,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -65566,7 +65691,7 @@ static PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -65786,7 +65911,7 @@ static PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); zephir_check_call_status(); } } @@ -66026,12 +66151,12 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, name, &_0); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, name, &_0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_extension"), _2 TSRMLS_CC); } @@ -66092,15 +66217,15 @@ static PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -66118,7 +66243,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -66149,7 +66274,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); zephir_check_call_status(); RETURN_MM(); @@ -66739,10 +66864,10 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -66803,7 +66928,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); zephir_check_call_status(); } } @@ -67092,7 +67217,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_8, &_9, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_10); ZVAL_LONG(_10, 1); - ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 68, _8, _10); + ZEPHIR_CALL_FUNCTION(&_11, "max", &_12, 69, _8, _10); zephir_check_call_status(); width = zephir_get_intval(_11); ZEPHIR_INIT_NVAR(_10); @@ -67101,7 +67226,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, resize) { zephir_round(_10, &_13, NULL, NULL TSRMLS_CC); ZEPHIR_INIT_VAR(_14); ZVAL_LONG(_14, 1); - ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 68, _10, _14); + ZEPHIR_CALL_FUNCTION(&_15, "max", &_12, 69, _10, _14); zephir_check_call_status(); height = zephir_get_intval(_15); ZEPHIR_INIT_NVAR(_14); @@ -67502,11 +67627,11 @@ static PHP_METHOD(Phalcon_Image_Adapter, text) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 335 TSRMLS_CC); @@ -67585,11 +67710,11 @@ static PHP_METHOD(Phalcon_Image_Adapter, background) { } ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 2); - ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 69, color, &_4); + ZEPHIR_CALL_FUNCTION(&_7, "str_split", NULL, 70, color, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "hexdec", 0); - ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 70, &_4, _7); + ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 71, &_4, _7); zephir_check_call_status(); zephir_array_fetch_long(&_8, colors, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); zephir_array_fetch_long(&_9, colors, 1, PH_NOISY | PH_READONLY, "phalcon/image/adapter.zep", 366 TSRMLS_CC); @@ -67715,7 +67840,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, render) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 71, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "pathinfo", NULL, 72, _0, &_1); zephir_check_call_status(); zephir_get_strval(_3, _2); ZEPHIR_CPY_WRT(ext, _3); @@ -67851,13 +67976,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -67875,7 +68000,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -67937,11 +68062,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_1 TSRMLS_CC) == SUCCESS)) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 62, _2); + ZEPHIR_CALL_FUNCTION(&_3, "realpath", NULL, 63, _2); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -67957,35 +68082,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -68010,7 +68135,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -68033,14 +68158,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -68079,7 +68204,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -68127,11 +68252,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -68155,17 +68280,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -68175,16 +68300,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -68211,7 +68336,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -68237,17 +68362,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -68267,16 +68392,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -68304,20 +68429,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68330,11 +68455,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -68360,7 +68485,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -68388,7 +68513,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -68412,18 +68537,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -68431,13 +68556,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); zephir_check_call_status(); } } @@ -68460,7 +68585,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -68509,15 +68634,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -68543,7 +68668,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68569,7 +68694,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -68610,7 +68735,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -68622,7 +68747,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -68635,18 +68760,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -68668,21 +68793,21 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -68694,11 +68819,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -68708,11 +68833,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -68727,10 +68852,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -68762,7 +68887,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68771,7 +68896,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -68805,12 +68930,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -68830,7 +68955,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -68842,17 +68967,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -68872,7 +68997,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68881,7 +69006,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -68902,22 +69027,22 @@ 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, 264, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 265, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -68927,13 +69052,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -68944,7 +69069,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -68960,9 +69085,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -68982,9 +69107,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -68997,10 +69122,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -69010,22 +69135,22 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -69059,9 +69184,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -69074,11 +69199,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -69106,7 +69231,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); zephir_check_call_status(); i++; } @@ -69145,7 +69270,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -69158,7 +69283,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -69185,11 +69310,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -69197,30 +69322,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -69229,64 +69354,64 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -69320,29 +69445,29 @@ 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, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -69350,45 +69475,45 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); zephir_check_call_status(); RETURN_MM(); } @@ -69420,11 +69545,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -69440,7 +69565,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69493,12 +69618,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } @@ -69549,15 +69674,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 62, _3); + ZEPHIR_CALL_FUNCTION(&_4, "realpath", NULL, 63, _3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _4 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -69583,7 +69706,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -69621,13 +69744,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -69845,10 +69966,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70037,10 +70156,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70055,7 +70172,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70069,11 +70186,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -70089,16 +70206,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70116,7 +70229,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -70133,7 +70246,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70163,7 +70276,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -70224,10 +70337,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70245,7 +70356,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -70297,10 +70408,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70309,14 +70418,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70350,24 +70457,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70383,13 +70490,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70400,13 +70507,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70425,13 +70532,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70442,13 +70549,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70464,13 +70571,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } else { @@ -70481,13 +70588,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); zephir_check_call_status(); } } @@ -70535,10 +70642,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -70557,7 +70662,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -70607,30 +70712,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -70646,7 +70745,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -70655,11 +70754,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -70673,7 +70772,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -70799,7 +70898,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 71, file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 72, file, &_0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _1, "setformat", NULL, 0, ext); @@ -70827,7 +70926,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -70851,7 +70950,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -70923,7 +71022,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); @@ -71148,6 +71247,13 @@ static PHP_METHOD(Phalcon_Logger_Adapter, rollback) { } +static PHP_METHOD(Phalcon_Logger_Adapter, isTransaction) { + + + RETURN_MEMBER(this_ptr, "_transaction"); + +} + static PHP_METHOD(Phalcon_Logger_Adapter, critical) { int ZEPHIR_LAST_CALL_STATUS; @@ -72322,7 +72428,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -72354,7 +72460,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72434,7 +72540,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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -72519,15 +72625,15 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); } @@ -72541,7 +72647,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 4500); - ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 69, format, &_2); + ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 70, format, &_2); zephir_check_call_status(); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 102); for ( @@ -72557,7 +72663,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", &_3, 237, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); @@ -72635,7 +72741,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -72665,7 +72771,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72767,7 +72873,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } @@ -72827,7 +72933,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", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -72842,7 +72948,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -72999,15 +73105,15 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 151, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); Z_UNSET_ISREF_P(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { @@ -73178,17 +73284,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73201,17 +73303,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73262,7 +73360,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); @@ -74316,7 +74414,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -74779,7 +74877,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -74808,7 +74906,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); zephir_check_call_status(); RETURN_MM(); @@ -75258,7 +75356,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, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -75289,7 +75387,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); @@ -76137,7 +76235,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -76286,11 +76384,11 @@ 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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); RETURN_MM(); @@ -76323,11 +76421,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76360,11 +76458,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76385,11 +76483,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, 175); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 176); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -77310,10 +77408,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getDirtyState) { static PHP_METHOD(Phalcon_Mvc_Model, getReadConnection) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0; + zval *transaction = NULL, *_0; ZEPHIR_MM_GROW(); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_transaction"), PH_NOISY_CC); + ZEPHIR_CPY_WRT(transaction, _0); + if (Z_TYPE_P(transaction) == IS_OBJECT) { + ZEPHIR_RETURN_CALL_METHOD(transaction, "getconnection", NULL, 0); + zephir_check_call_status(); + RETURN_MM(); + } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); ZEPHIR_RETURN_CALL_METHOD(_0, "getreadconnection", NULL, 0, this_ptr); zephir_check_call_status(); @@ -77367,7 +77472,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { if (Z_TYPE_P(dataColumnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(dataMapped); array_init(dataMapped); - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 436); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 443); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77396,7 +77501,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { } 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", 488); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 495); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -77412,7 +77517,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(_8, "Column '", attribute, "' doesn\\'t make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _7, "__construct", &_9, 9, _8); zephir_check_call_status(); - zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 458 TSRMLS_CC); + zephir_throw_exception_debug(_7, "phalcon/mvc/model.zep", 465 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77480,7 +77585,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 588); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 595); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -77501,7 +77606,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 531 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/model.zep", 538 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77517,7 +77622,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _6 = Z_TYPE_P(value) != IS_NULL; } if (_6) { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 543 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 550 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0)) { ZEPHIR_SINIT_NVAR(_8); @@ -77541,7 +77646,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 564 TSRMLS_CC); + zephir_array_fetch_long(&_7, attribute, 1, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 571 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(_7, 0) || ZEPHIR_IS_LONG(_7, 9) || ZEPHIR_IS_LONG(_7, 3) || ZEPHIR_IS_LONG(_7, 7) || ZEPHIR_IS_LONG(_7, 8)) { ZEPHIR_INIT_NVAR(castValue); @@ -77554,7 +77659,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(attributeName); - zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 580 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, attribute, 0, PH_NOISY, "phalcon/mvc/model.zep", 587 TSRMLS_CC); zephir_update_property_zval_zval(instance, attributeName, castValue TSRMLS_CC); } } @@ -77599,7 +77704,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_VAR(hydrateObject); object_init(hydrateObject); } - zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 662); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 669); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77617,7 +77722,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 641 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 648 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -77673,7 +77778,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZVAL_LONG(_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, instance, "setdirtystate", NULL, 0, _0); zephir_check_call_status(); - zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 709); + zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 716); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -77681,7 +77786,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); if (Z_TYPE_P(key) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 701); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/mvc/model.zep", 708); return; } zephir_update_property_zval_zval(instance, key, value TSRMLS_CC); @@ -77720,7 +77825,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, find) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 755); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 762); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -77795,7 +77900,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, findFirst) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 842); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 849); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -77879,12 +77984,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, 302, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 303, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -77938,7 +78043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueParams); ZEPHIR_INIT_NVAR(uniqueTypes); array_init(uniqueTypes); - zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1013); + zephir_is_iterable(primaryKeys, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 1020); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -77953,7 +78058,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 977 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 984 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -77971,9 +78076,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_6) { numberEmpty++; } - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 995); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1002); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 998); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 1005); numberEmpty++; } ZEPHIR_OBS_NVAR(type); @@ -77984,16 +78089,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1003 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 1010 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1006); + zephir_array_append(&uniqueTypes, type, PH_SEPARATE, "phalcon/mvc/model.zep", 1013); ZEPHIR_CALL_METHOD(&_7, connection, "escapeidentifier", &_8, 0, field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9); ZEPHIR_CONCAT_VS(_9, _7, " = ?"); - zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1007); + zephir_array_append(&wherePk, _9, PH_SEPARATE, "phalcon/mvc/model.zep", 1014); } if (numberPrimary == numberEmpty) { RETURN_MM_BOOL(0); @@ -78041,7 +78146,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZVAL_NULL(_3); ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, _9, _3, uniqueParams, uniqueTypes); zephir_check_call_status(); - zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1063 TSRMLS_CC); + zephir_array_fetch_string(&_11, num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1070 TSRMLS_CC); if (zephir_is_true(_11)) { ZEPHIR_INIT_ZVAL_NREF(_12); ZVAL_LONG(_12, 0); @@ -78102,7 +78207,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_INIT_VAR(params); array_init(params); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1093); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/mvc/model.zep", 1100); } } else { ZEPHIR_CPY_WRT(params, parameters); @@ -78418,7 +78523,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, validate) { if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { ZEPHIR_CALL_METHOD(&_1, validator, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1393); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1400); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -78470,7 +78575,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_INIT_VAR(filtered); array_init(filtered); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1459); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 1466); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -78479,7 +78584,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_5, message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(_5, filter)) { - zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1456); + zephir_array_append(&filtered, message, PH_SEPARATE, "phalcon/mvc/model.zep", 1463); } } RETURN_CCTOR(filtered); @@ -78506,7 +78611,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(belongsTo TSRMLS_CC)) { error = 0; - zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1602); + zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1609); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78519,7 +78624,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1503 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1510 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78538,7 +78643,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1539); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1546); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -78547,11 +78652,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1532 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1539 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1532); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1533); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1539); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1540); if (Z_TYPE_P(value) == IS_NULL) { numberNull++; } @@ -78562,15 +78667,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1544); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1545); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1551); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1552); if (Z_TYPE_P(value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1556); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1563); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(allowNulls); @@ -78652,7 +78757,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_CALL_METHOD(&relations, manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1716); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1723); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78665,7 +78770,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1655 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1662 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78683,7 +78788,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1683); + zephir_is_iterable(fields, &_8, &_7, 0, 0, "phalcon/mvc/model.zep", 1690); for ( ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS ; zephir_hash_move_forward_ex(_8, &_7) @@ -78692,23 +78797,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_GET_HVALUE(field, _9); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1680 TSRMLS_CC); + zephir_array_fetch(&_10, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1687 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVSV(_11, "[", _10, "] = ?", position); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1680); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1681); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1687); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1688); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_11); ZEPHIR_CONCAT_SVS(_11, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1685); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1686); + zephir_array_append(&conditions, _11, PH_SEPARATE, "phalcon/mvc/model.zep", 1692); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1693); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1700); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -78749,7 +78854,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); if (zephir_fast_count_int(relations TSRMLS_CC)) { error = 0; - zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1835); + zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1842); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -78762,7 +78867,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(foreignKey) == IS_ARRAY) { if (zephir_array_isset_string(foreignKey, SS("action"))) { ZEPHIR_OBS_NVAR(_4); - zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1763 TSRMLS_CC); + zephir_array_fetch_string(&_4, foreignKey, SL("action"), PH_NOISY, "phalcon/mvc/model.zep", 1770 TSRMLS_CC); action = zephir_get_intval(_4); } } @@ -78780,7 +78885,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(bindParams); array_init(bindParams); if (Z_TYPE_P(fields) == IS_ARRAY) { - zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1795); + zephir_is_iterable(fields, &_7, &_6, 0, 0, "phalcon/mvc/model.zep", 1802); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -78789,23 +78894,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_GET_HVALUE(field, _8); ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, field, PH_SILENT_CC); - zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1791 TSRMLS_CC); + zephir_array_fetch(&_9, referencedFields, position, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 1798 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVSV(_10, "[", _9, "] = ?", position); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1791); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1792); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1799); } } else { ZEPHIR_OBS_NVAR(value); zephir_fetch_property_zval(&value, this_ptr, fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_10); ZEPHIR_CONCAT_SVS(_10, "[", referencedFields, "] = ?0"); - zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1797); - zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1798); + zephir_array_append(&conditions, _10, PH_SEPARATE, "phalcon/mvc/model.zep", 1804); + zephir_array_append(&bindParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); } ZEPHIR_OBS_NVAR(extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, foreignKey, SS("conditions"), 0 TSRMLS_CC)) { - zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1805); + zephir_array_append(&conditions, extraConditions, PH_SEPARATE, "phalcon/mvc/model.zep", 1812); } ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); @@ -78929,7 +79034,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2001); + zephir_is_iterable(notNull, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 2008); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -78946,7 +79051,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(_7, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1937 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 1944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79166,7 +79271,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2185); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -79182,7 +79287,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2139 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2146 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79208,23 +79313,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2163 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2170 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2166); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); } else { if (zephir_array_isset(defaultValues, field)) { ZEPHIR_CALL_METHOD(&_8, connection, "getdefaultvalue", &_9, 0); zephir_check_call_status(); - zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2171); + zephir_array_append(&values, _8, PH_SEPARATE, "phalcon/mvc/model.zep", 2178); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2173); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2180); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2176); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2183); } } } @@ -79236,7 +79341,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); useExplicitIdentity = zephir_get_boolval(_8); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2194); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2201); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); @@ -79247,7 +79352,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2202 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2209 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79262,12 +79367,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } if (_6) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2215); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2222); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2223); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2230); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { @@ -79277,17 +79382,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(_4, "Identity column '", identityField, "' isn\\'t part of the table columns"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2230 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 2237 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2233); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2240); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2237); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2244); } } } @@ -79377,7 +79482,7 @@ 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", 2437); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2444); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -79392,7 +79497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2336 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2343 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79405,7 +79510,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2351 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79415,9 +79520,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", 2360); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2360); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2361); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2368); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -79439,9 +79544,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -79459,15 +79564,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2423); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2424); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2430); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2431); } } } else { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2429); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2429); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2436); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2436); } } } @@ -79484,12 +79589,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", 2456); + 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", 2463); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2479); + zephir_is_iterable(primaryKeys, &_13, &_12, 0, 0, "phalcon/mvc/model.zep", 2486); for ( ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS ; zephir_hash_move_forward_ex(_13, &_12) @@ -79504,7 +79609,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", &_7, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2467 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/model.zep", 2474 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79513,9 +79618,9 @@ 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_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2474); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2481); } else { - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2476); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2483); } } } @@ -79552,7 +79657,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { 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", 2585); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2592); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -79569,7 +79674,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(record) != IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2534); + 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", 2541); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -79581,7 +79686,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2543); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); @@ -79589,7 +79694,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_0))) { ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2572); + zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); for ( ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS ; zephir_hash_move_forward_ex(_9, &_8) @@ -79636,7 +79741,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, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2773); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2780); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -79659,7 +79764,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (_5) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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", 2624); + 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", 2631); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -79671,7 +79776,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (Z_TYPE_P(columns) == IS_ARRAY) { ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -79691,7 +79796,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2647 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79706,7 +79811,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2762); + zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); for ( ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS ; zephir_hash_move_forward_ex(_14, &_13) @@ -79721,7 +79826,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_12))) { ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2704); + zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); for ( ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS ; zephir_hash_move_forward_ex(_18, &_17) @@ -79754,7 +79859,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_16))) { ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); for ( ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS ; zephir_hash_move_forward_ex(_25, &_24) @@ -79783,7 +79888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2765 TSRMLS_CC); + zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -79878,9 +79983,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2878 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80072,10 +80177,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", 3062); + 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", 3069); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3103); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3110); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -80089,7 +80194,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3074 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3081 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80102,7 +80207,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3082 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3089 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80117,17 +80222,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3092 TSRMLS_CC); + zephir_throw_exception_debug(_6, "phalcon/mvc/model.zep", 3099 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3098); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3105); ZEPHIR_CALL_METHOD(&_2, writeConnection, "escapeidentifier", &_9, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_VS(_7, _2, " = ?"); - zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3099); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3100); + zephir_array_append(&conditions, _7, PH_SEPARATE, "phalcon/mvc/model.zep", 3106); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -80203,7 +80308,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", 3178); + 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", 3185); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80228,7 +80333,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_1))) { - 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", 3200); + 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", 3207); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -80237,14 +80342,14 @@ 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", 3208); + 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", 3215); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_1, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3222); + zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3229); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -80253,7 +80358,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(_5); zephir_create_array(_5, 1, 0 TSRMLS_CC); zephir_array_fast_append(_5, attribute); - zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3216); + zephir_array_append(&fields, _5, PH_SEPARATE, "phalcon/mvc/model.zep", 3223); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -80368,7 +80473,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3303); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80403,7 +80508,7 @@ 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", 3334); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80436,7 +80541,7 @@ 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", 3363); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80469,7 +80574,7 @@ 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", 3392); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80682,7 +80787,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, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3606); + zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3615); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -80701,7 +80806,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3587 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3596 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -80718,7 +80823,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_5, 9, _4); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3596 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/model.zep", 3605 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -80771,12 +80876,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { 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", 3645); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3654); 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", 3652); + 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", 3661); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80798,7 +80903,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3684 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3693 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80810,7 +80915,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not part of the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3688 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3697 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80823,7 +80928,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_2, "The field '", fieldName, "' is not defined on the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3696 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3705 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -80835,14 +80940,14 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasChanged) { ZEPHIR_CONCAT_SVS(_3, "The field '", fieldName, "' was not found in the snapshot"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3703 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3712 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(!ZEPHIR_IS_EQUAL(value, originalValue)); } ZEPHIR_INIT_NVAR(_1); - zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3739); + zephir_is_iterable(allAttributes, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3748); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -80877,12 +80982,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", 3752); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3761); 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", 3759); + 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", 3768); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -80898,7 +81003,7 @@ 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", 3813); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3822); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -80906,17 +81011,17 @@ static 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", 3792); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3801); 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", 3800); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3809); continue; } - zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3807 TSRMLS_CC); + zephir_array_fetch(&_5, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3816 TSRMLS_CC); if (!ZEPHIR_IS_EQUAL(value, _5)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3808); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3817); continue; } } @@ -80973,7 +81078,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3855 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 3865 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -81080,55 +81185,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { } -static PHP_METHOD(Phalcon_Mvc_Model, __call) { - - int ZEPHIR_LAST_CALL_STATUS; - zval *method_param = NULL, *arguments, *modelName, *status = NULL, *records = NULL, *_0, *_1, *_2; - zval *method = NULL; - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &method_param, &arguments); - - zephir_get_strval(method, method_param); - - - ZEPHIR_INIT_VAR(modelName); - zephir_get_class(modelName, this_ptr, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 0, modelName, method, arguments); - zephir_check_call_status(); - if (Z_TYPE_P(records) != IS_NULL) { - RETURN_CCTOR(records); - } - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&status, _0, "missingmethod", NULL, 0, this_ptr, method, arguments); - zephir_check_call_status(); - if (Z_TYPE_P(status) != IS_NULL) { - RETURN_CCTOR(status); - } - ZEPHIR_INIT_VAR(_1); - object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_2); - ZEPHIR_CONCAT_SVSVS(_2, "The method '", method, "' doesn't exist on model '", modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); - zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3947 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - -} - -static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { +static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { - zval *_6, *_7; - zend_class_entry *_5, *_8; + zval *_5, *_6; + zend_class_entry *_4, *_7; int ZEPHIR_LAST_CALL_STATUS; - zval *method_param = NULL, *arguments, *extraMethod = NULL, *type = NULL, *modelName, *value, *model, *attributes = NULL, *field = NULL, *extraMethodFirst = NULL, *metaData = NULL, _0 = zval_used_for_init, *_1 = NULL, *_2 = NULL, *_4 = NULL; - zval *method = NULL, *_3; + zval *method, *arguments, *extraMethod = NULL, *type = NULL, *modelName, *value, *model, *attributes = NULL, *field = NULL, *extraMethodFirst = NULL, *metaData = NULL, _0 = zval_used_for_init, *_1 = NULL, *_2 = NULL, *_3 = NULL; ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &method_param, &arguments); + zephir_fetch_params(1, 2, 0, &method, &arguments); - zephir_get_strval(method, method_param); ZEPHIR_INIT_VAR(extraMethod); @@ -81164,32 +81230,24 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_INIT_VAR(modelName); zephir_get_called_class(modelName TSRMLS_CC); if (!(zephir_is_true(extraMethod))) { - ZEPHIR_INIT_VAR(_1); - object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_2); - ZEPHIR_CONCAT_SVSVS(_2, "The static method '", method, "' doesn't exist on model '", modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); - zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3998 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; + RETURN_MM_NULL(); } ZEPHIR_OBS_VAR(value); if (!(zephir_array_isset_long_fetch(&value, arguments, 0, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(_1); + ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_3); - ZEPHIR_CONCAT_SVS(_3, "The static method '", method, "' requires one argument"); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _3); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVS(_2, "The static method '", method, "' requires one argument"); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4002 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 3977 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_VAR(model); - zephir_fetch_safe_class(_4, modelName); - _5 = zend_fetch_class(Z_STRVAL_P(_4), Z_STRLEN_P(_4), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); - object_init_ex(model, _5); + zephir_fetch_safe_class(_3, modelName); + _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + object_init_ex(model, _4); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); zephir_check_call_status(); @@ -81205,7 +81263,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { if (zephir_array_isset(attributes, extraMethod)) { ZEPHIR_CPY_WRT(field, extraMethod); } else { - ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 67, extraMethod); + ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 68, extraMethod); zephir_check_call_status(); if (zephir_array_isset(attributes, extraMethodFirst)) { ZEPHIR_CPY_WRT(field, extraMethodFirst); @@ -81219,28 +81277,101 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4036 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4011 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - ZEPHIR_INIT_VAR(_6); - zephir_create_array(_6, 2, 0 TSRMLS_CC); + ZEPHIR_INIT_VAR(_5); + zephir_create_array(_5, 2, 0 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, field, " = ?0"); - zephir_array_update_string(&_6, SL("conditions"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(_7); - zephir_create_array(_7, 1, 0 TSRMLS_CC); - zephir_array_fast_append(_7, value); - zephir_array_update_string(&_6, SL("bind"), &_7, PH_COPY | PH_SEPARATE); - _8 = zephir_fetch_class(modelName TSRMLS_CC); - ZEPHIR_RETURN_CALL_CE_STATIC_ZVAL(_8, type, NULL, 0, _6); + zephir_array_update_string(&_5, SL("conditions"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_INIT_VAR(_6); + zephir_create_array(_6, 1, 0 TSRMLS_CC); + zephir_array_fast_append(_6, value); + zephir_array_update_string(&_5, SL("bind"), &_6, PH_COPY | PH_SEPARATE); + _7 = zephir_fetch_class(modelName TSRMLS_CC); + ZEPHIR_RETURN_CALL_CE_STATIC_ZVAL(_7, type, NULL, 0, _5); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Mvc_Model, __call) { + + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_0 = NULL; + zval *method_param = NULL, *arguments, *modelName, *status = NULL, *records = NULL, *_1, *_2, *_3; + zval *method = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &method_param, &arguments); + + zephir_get_strval(method, method_param); + + + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) != IS_NULL) { + RETURN_CCTOR(records); + } + ZEPHIR_INIT_VAR(modelName); + zephir_get_class(modelName, this_ptr, 0 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 0, modelName, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) != IS_NULL) { + RETURN_CCTOR(records); + } + _1 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(&status, _1, "missingmethod", NULL, 0, this_ptr, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(status) != IS_NULL) { + RETURN_CCTOR(status); + } + ZEPHIR_INIT_VAR(_2); + 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_check_call_status(); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4062 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + +} + +static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { + + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_0 = NULL; + zval *method_param = NULL, *arguments, *records = NULL, *_1; + zval *method = NULL, *_2; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &method_param, &arguments); + + zephir_get_strval(method, method_param); + + + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + zephir_check_call_status(); + if (Z_TYPE_P(records) == IS_NULL) { + ZEPHIR_INIT_VAR(_1); + object_init_ex(_1, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVS(_2, "The static method '", method, "' doesn't exist"); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); + zephir_check_call_status(); + zephir_throw_exception_debug(_1, "phalcon/mvc/model.zep", 4078 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + RETURN_CCTOR(records); + +} + static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_fcall_cache_entry *_5 = NULL, *_6 = NULL; @@ -81278,7 +81409,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4100); + zephir_is_iterable(value, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4134); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -81287,7 +81418,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_GET_HVALUE(item, _3); 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", 4087); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4121); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -81437,7 +81568,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, serialize) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -81468,13 +81599,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(attributes) == IS_ARRAY) { 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", 4224); + 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", 4258); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -81485,13 +81616,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); 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", 4237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4271); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, manager, "initialize", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4256); + zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 4290); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -81541,7 +81672,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, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4320); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4354); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -81557,7 +81688,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_6, 9, _5); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4298 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 4332 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -81869,7 +82000,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_1, SS("controller"), 1); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "#^/([\\w0-9\\_\\-]+)[/]{0,1}$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 76, _2, _1); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_3, 77, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); zephir_array_append(&routes, _0, PH_SEPARATE, "phalcon/mvc/router.zep", 120); @@ -81882,7 +82013,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(_4, SS("params"), 3); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "#^/([\\w0-9\\_\\-]+)/([\\w0-9\\.\\_]+)(/.*)*$#u", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 76, _5, _4); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_3, 77, _5, _4); zephir_check_temp_parameter(_5); zephir_check_call_status(); zephir_array_append(&routes, _2, PH_SEPARATE, "phalcon/mvc/router.zep", 126); @@ -82407,7 +82538,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { ZEPHIR_OBS_VAR(notFoundPaths); zephir_read_property_this(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(notFoundPaths) != IS_NULL) { - ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 77, notFoundPaths); + ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_20, 78, notFoundPaths); zephir_check_call_status(); ZEPHIR_INIT_NVAR(routeFound); ZVAL_BOOL(routeFound, 1); @@ -82520,7 +82651,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, 76, pattern, paths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, pattern, paths, httpMethods); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(position, 1)) { @@ -83454,7 +83585,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 362, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 364, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { @@ -84076,7 +84207,7 @@ static PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); RETURN_THIS(); @@ -84105,7 +84236,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 363, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 365, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -84413,7 +84544,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_disabled"), PH_NOISY_CC); if (!ZEPHIR_IS_FALSE(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); RETURN_MM_BOOL(0); @@ -84473,7 +84604,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 119); + ZEPHIR_CALL_FUNCTION(&_1, "ob_get_contents", &_2, 120); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_content"), _1 TSRMLS_CC); mustClean = 1; @@ -84652,11 +84783,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); 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, 284); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 285); zephir_check_call_status(); RETURN_MM(); @@ -84781,7 +84912,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, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(view, "getcontent", NULL, 0); zephir_check_call_status(); @@ -84795,7 +84926,7 @@ static PHP_METHOD(Phalcon_Mvc_View, finish) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); RETURN_THIS(); @@ -86237,7 +86368,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -88293,12 +88424,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 306, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 308, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 307, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 309, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -89318,7 +89449,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89395,7 +89526,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89473,7 +89604,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89570,9 +89701,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 308, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 309, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 311, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -90033,7 +90164,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", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 310, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 312, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -90098,10 +90229,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 310, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 312, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 310, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 312, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); @@ -92540,7 +92671,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SS("type"), SL("all"), 1); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 316, argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 318, argument); zephir_check_call_status(); RETURN_MM(); @@ -92576,11 +92707,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("when"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 354 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_8, whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 355 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _8); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _8); zephir_check_call_status(); zephir_array_update_string(&_4, SL("then"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 356); @@ -92589,7 +92720,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("else"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 360 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 361); @@ -92598,7 +92729,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("case"), 1); zephir_array_fetch_string(&_6, expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 367 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 316, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); zephir_check_call_status(); zephir_array_update_string(&return_value, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -92638,13 +92769,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, argument); zephir_check_call_status(); zephir_array_append(&functionArgs, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 391); } } else { zephir_create_array(functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 317, arguments); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, arguments); zephir_check_call_status(); zephir_array_fast_append(functionArgs, _3); } @@ -92707,12 +92838,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { if (!ZEPHIR_IS_LONG(exprType, 409)) { ZEPHIR_OBS_VAR(exprLeft); if (zephir_array_isset_string_fetch(&exprLeft, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 316, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 318, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } ZEPHIR_OBS_VAR(exprRight); if (zephir_array_isset_string_fetch(&exprRight, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 316, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 318, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); } } @@ -92790,7 +92921,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 320, expr); zephir_check_call_status(); break; } @@ -93235,12 +93366,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 319, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 321, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 320, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 322, expr); zephir_check_call_status(); break; } @@ -93250,7 +93381,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { add_assoc_stringl_ex(exprReturn, SS("type"), SL("select"), 1); ZEPHIR_INIT_NVAR(_3); ZVAL_BOOL(_3, 1); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 321, expr, _3); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 323, expr, _3); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_12, PH_COPY | PH_SEPARATE); break; @@ -93269,7 +93400,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SS("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 318, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 320, expr); zephir_check_call_status(); RETURN_MM(); } @@ -93282,7 +93413,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ; zephir_hash_move_forward_ex(_14, &_13) ) { ZEPHIR_GET_HVALUE(exprListItem, _15); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 316, exprListItem); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 318, exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, _12, PH_SEPARATE, "phalcon/mvc/model/query.zep", 745); } @@ -93335,7 +93466,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("object"), 1); 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, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&_4, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); zephir_array_update_string(&sqlColumn, SL("balias"), &_4, PH_COPY | PH_SEPARATE); if (Z_TYPE_P(eager) != IS_NULL) { @@ -93378,7 +93509,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_array_fetch(&modelName, sqlAliasesModels, columnDomain, PH_NOISY, "phalcon/mvc/model/query.zep", 828 TSRMLS_CC); if (Z_TYPE_P(preparedAlias) != IS_STRING) { if (ZEPHIR_IS_EQUAL(columnDomain, modelName)) { - ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 67, modelName); + ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 68, modelName); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(preparedAlias, columnDomain); @@ -93404,7 +93535,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("scalar"), 1); ZEPHIR_OBS_VAR(columnData); zephir_array_fetch_string(&columnData, column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 871 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 316, columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 318, columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(balias); if (zephir_array_isset_string_fetch(&balias, sqlExprColumn, SS("balias"), 0 TSRMLS_CC)) { @@ -93602,7 +93733,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_4); @@ -93610,7 +93741,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_fast_append(sqlJoinConditions, _0); @@ -93646,7 +93777,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_4); @@ -93654,7 +93785,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 318, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, _0, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1076); @@ -93737,7 +93868,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_8, SS("type"), 355); zephir_array_update_string(&_8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _8); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_10); @@ -93745,7 +93876,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_10, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_10, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _10); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _10); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7, PH_COPY | PH_SEPARATE); } @@ -93767,7 +93898,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_12, SS("type"), 355); zephir_array_update_string(&_12, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _12); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _12); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_13); @@ -93775,7 +93906,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_13, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_13, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_13, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _13); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _13); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -93796,7 +93927,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_14, SS("type"), 355); zephir_array_update_string(&_14, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _14); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _14); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_15); @@ -93804,7 +93935,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_15, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_15, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 318, _15); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _15); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -93880,7 +94011,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 322, manager, joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 324, 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", 1315 TSRMLS_CC); @@ -93894,7 +94025,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", &_4, 323, joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 325, joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, joinItem, SS("alias"), 0 TSRMLS_CC)) { @@ -93962,7 +94093,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_GET_HVALUE(joinItem, _11); ZEPHIR_OBS_NVAR(joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, joinItem, SS("conditions"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 316, joinExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 318, joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, joinAliasName, &_12, PH_COPY | PH_SEPARATE); } @@ -94059,10 +94190,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 324, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 326, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 325, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 327, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } if (zephir_array_isset_long(sqlJoin, 0)) { @@ -94133,7 +94264,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1625 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 316, _3); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 318, _3); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, orderItem, SS("sort"), 1 TSRMLS_CC)) { ZEPHIR_INIT_NVAR(orderPartSort); @@ -94186,13 +94317,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(groupItem, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, groupItem); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1659); } } else { zephir_create_array(groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 316, group); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, group); zephir_check_call_status(); zephir_array_fast_append(groupParts, _3); } @@ -94218,13 +94349,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { ZEPHIR_OBS_VAR(number); if (zephir_array_isset_string_fetch(&number, limitClause, SS("number"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, number); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(offset); if (zephir_array_isset_string_fetch(&offset, limitClause, SS("offset"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 316, offset); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_0, PH_COPY | PH_SEPARATE); } @@ -94547,12 +94678,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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 328, 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", &_32, 326, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 328, select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(sqlJoins); @@ -94568,7 +94699,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { ; zephir_hash_move_forward_ex(_34, &_33) ) { ZEPHIR_GET_HVALUE(column, _35); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 327, column); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 329, column); zephir_check_call_status(); zephir_is_iterable(_3, &_38, &_37, 0, 0, "phalcon/mvc/model/query.zep", 1997); for ( @@ -94617,31 +94748,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 316, where); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 318, where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SS("groupBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 328, groupBy); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 330, groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(having); if (zephir_array_isset_string_fetch(&having, ast, SS("having"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 316, having); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 318, having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(order); if (zephir_array_isset_string_fetch(&order, ast, SS("orderBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 329, order); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 331, order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_41, PH_COPY | PH_SEPARATE); } @@ -94733,7 +94864,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_OBS_NVAR(_8); zephir_array_fetch_string(&_8, exprValue, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2110 TSRMLS_CC); zephir_array_update_string(&_7, SL("type"), &_8, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 316, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 318, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_7, SL("value"), &_0, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, _7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2112); @@ -94908,7 +95039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_4, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2260 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 316, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 318, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_append(&sqlFields, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2260); ZEPHIR_OBS_NVAR(exprColumn); @@ -94918,7 +95049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_NVAR(_14); zephir_array_fetch_string(&_14, exprColumn, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2263 TSRMLS_CC); zephir_array_update_string(&_13, SL("type"), &_14, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_array_update_string(&_13, SL("value"), &_15, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, _13, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2265); @@ -94933,13 +95064,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_16); ZVAL_BOOL(&_16, 1); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 316, where, &_16); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, where, &_16); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_15, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_15, PH_COPY | PH_SEPARATE); } @@ -95058,13 +95189,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { ZEPHIR_SINIT_VAR(_9); ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 316, where, &_9); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 318, where, &_9); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 330, limit); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 332, limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_10, PH_COPY | PH_SEPARATE); } @@ -95112,22 +95243,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 321); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 323); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 331); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 333); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 332); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 334); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 333); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 335); zephir_check_call_status(); break; } @@ -95514,12 +95645,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { isKeepingSnapshots = zephir_get_boolval(_40); } object_init_ex(return_value, phalcon_mvc_model_resultset_simple_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 334, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); 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, 335, columns1, resultData, cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 337, columns1, resultData, cache); zephir_check_call_status(); RETURN_MM(); @@ -95679,7 +95810,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_15, insertModel, "create", NULL, 0, insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, _15, insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 338, _15, insertModel); zephir_check_call_status(); RETURN_MM(); @@ -95810,13 +95941,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_array_update_zval(&updateValues, fieldName, &updateValue, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, selectBindParams, selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, 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); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); zephir_check_call_status(); RETURN_MM(); } @@ -95849,7 +95980,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11, record); zephir_check_call_status(); RETURN_MM(); } @@ -95860,7 +95991,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 336, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); zephir_check_call_status(); RETURN_MM(); @@ -95893,13 +96024,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, _1, "load", NULL, 0, modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 337, model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, 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); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); zephir_check_call_status(); RETURN_MM(); } @@ -95932,7 +96063,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2, record); zephir_check_call_status(); RETURN_MM(); } @@ -95943,7 +96074,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 336, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); zephir_check_call_status(); RETURN_MM(); @@ -95991,18 +96122,18 @@ 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, 338); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 340); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 339, _5); + ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 341, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 309); - ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 340, _2); + ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 342, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 341, selectIr); + ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 343, selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 344, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -96123,22 +96254,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property_this(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 343, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 345, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 344, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 346, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 345, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 347, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 346, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 348, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } @@ -96193,7 +96324,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 342, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 344, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -96365,7 +96496,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_3); ZVAL_BOOL(&_3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 343, intermediate, _1, _2, &_3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 345, intermediate, _1, _2, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -96878,7 +97009,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pointer"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (zephir_get_numberval(_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -96918,7 +97049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97045,7 +97176,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { if (ZEPHIR_GT_LONG(_0, index)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97115,7 +97246,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97137,7 +97268,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (zephir_get_numberval(count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 72, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97755,7 +97886,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 353, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 355, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -97774,7 +97905,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 354); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 356); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); @@ -98344,7 +98475,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -98460,7 +98591,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 81, _1); + ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 82, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -98495,7 +98626,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 82, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 83, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -98700,9 +98831,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -98801,7 +98932,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -98886,9 +99017,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -98987,7 +99118,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -99164,9 +99295,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 317, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -99265,7 +99396,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 313); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 315); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -99481,7 +99612,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); - ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 83, _1); + ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 84, _1); zephir_check_call_status(); if (Z_TYPE_P(data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -99516,7 +99647,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_INIT_VAR(_1); ZEPHIR_CONCAT_SVV(_1, "$PMM$", _0, key); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 84, _1, data, _2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 85, _1, data, _2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -101605,21 +101736,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_INIT_VAR(query); object_init_ex(query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 347); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getphql", NULL, 349); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 338, _0, _1); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 340, _0, _1); zephir_check_call_status(); ZEPHIR_OBS_VAR(bindParams); zephir_read_property_this(&bindParams, this_ptr, SL("_bindParams"), PH_NOISY_CC); if (Z_TYPE_P(bindParams) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 348, bindParams); + ZEPHIR_CALL_METHOD(NULL, query, "setbindparams", NULL, 350, bindParams); zephir_check_call_status(); } ZEPHIR_OBS_VAR(bindTypes); zephir_read_property_this(&bindTypes, this_ptr, SL("_bindTypes"), PH_NOISY_CC); if (Z_TYPE_P(bindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 349, bindTypes); + ZEPHIR_CALL_METHOD(NULL, query, "setbindtypes", NULL, 351, bindTypes); zephir_check_call_status(); } RETURN_CCTOR(query); @@ -111569,7 +111700,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_this(this_ptr, SL("_columnTypes"), columnTypes TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 352, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111783,7 +111914,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, 73, _0); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_CCTOR(serialized); @@ -111812,7 +111943,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { zephir_update_property_this(this_ptr, SL("_disableHydration"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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", 304); @@ -111887,7 +112018,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_this(this_ptr, SL("_model"), model TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_columnMap"), columnMap TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_keepSnapshots"), keepSnapshots TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 350, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 352, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111942,12 +112073,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 351, _2, row, columnMap, _3, _6); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 353, _2, row, columnMap, _3, _6); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 352, row, columnMap, hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 354, row, columnMap, hydrateMode); zephir_check_call_status(); break; } while(0); @@ -112079,7 +112210,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, serialize) { ZEPHIR_OBS_NVAR(_1); zephir_read_property_this(&_1, this_ptr, SL("_hydrateMode"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("hydrateMode"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 73, _0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 74, _0); zephir_check_call_status(); RETURN_MM(); @@ -112107,7 +112238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 74, data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, 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); @@ -112414,7 +112545,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "rollbackPendent", 1); zephir_array_fast_append(_2, _3); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 355, _2); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 357, _2); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_initialized"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); @@ -112473,9 +112604,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) ZEPHIR_INIT_VAR(transaction); object_init_ex(transaction, phalcon_mvc_model_transaction_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_service"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 356, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); + ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 358, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 357, this_ptr); + ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 359, 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)); @@ -112763,7 +112894,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); @@ -113036,7 +113167,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { zephir_check_temp_parameter(_0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 360, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_5))) { ZEPHIR_INIT_NVAR(_0); @@ -113182,7 +113313,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_array_update_string(&options, SL("flags"), &_6, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 275); - ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 192, value, &_5, options); + ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 193, value, &_5, options); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_0); @@ -113652,7 +113783,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -114085,7 +114216,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); @@ -114420,7 +114551,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } zephir_update_property_this(this_ptr, SL("_processed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 360, realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 362, realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -115252,7 +115383,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property_this(&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, 77, paths); + ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 78, paths); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(processedPaths, paths); @@ -115271,10 +115402,10 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_VV(_2, _1, pattern); - ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 76, _2, mergedPaths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, _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, 361, this_ptr); + ZEPHIR_CALL_METHOD(NULL, route, "setgroup", NULL, 363, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); @@ -116783,7 +116914,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 363, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 365, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_0, PH_COPY | PH_SEPARATE); } else { @@ -117022,7 +117153,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, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); ZEPHIR_OBS_VAR(viewParams); zephir_read_property_this(&viewParams, this_ptr, SL("_viewParams"), PH_NOISY_CC); @@ -117036,7 +117167,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { } else { ZEPHIR_CPY_WRT(mergedParams, viewParams); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 382, path, mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 384, path, mergedParams); zephir_check_call_status(); if (Z_TYPE_P(cache) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_0, cache, "isstarted", NULL, 0); @@ -117056,7 +117187,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { zephir_check_call_status(); } } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_content"); @@ -117087,7 +117218,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 118); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 119); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { ZEPHIR_OBS_VAR(viewParams); @@ -117104,12 +117235,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } else { ZEPHIR_CPY_WRT(mergedParams, params); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 382, partialPath, mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 384, partialPath, mergedParams); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_update_property_this(this_ptr, SL("_viewParams"), viewParams TSRMLS_CC); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 120); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_content"), PH_NOISY_CC); zend_print_zval(_1, 0); @@ -117488,7 +117619,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -117510,7 +117641,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean == 1) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); @@ -117583,18 +117714,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); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 365, _0); + ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 367, _0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _1); if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 366, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 368, dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(options); zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 367, options); + ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 369, options); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_compiler"), compiler TSRMLS_CC); @@ -117634,7 +117765,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 364); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -117662,7 +117793,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 119); + ZEPHIR_CALL_FUNCTION(&_5, "ob_get_contents", NULL, 120); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _4, "setcontent", NULL, 0, _5); zephir_check_call_status(); @@ -117693,7 +117824,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { ZVAL_LONG(length, zephir_fast_count_int(item TSRMLS_CC)); } else { if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, item); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, item); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -117719,7 +117850,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SS("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 368, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 370, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(_0)); } @@ -117772,7 +117903,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, 369, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 371, text); zephir_check_call_status(); RETURN_MM(); } @@ -117781,17 +117912,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, 370, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 372, text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, text, from, to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, text, from, to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 371, from, to, text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 373, from, to, text); zephir_check_call_status(); RETURN_MM(); } @@ -117862,7 +117993,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 372, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 374, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } @@ -117870,13 +118001,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(length) != IS_NULL) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 373, value, &_5); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5); zephir_check_call_status(); RETURN_MM(); } @@ -117906,7 +118037,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { Z_SET_ISREF_P(value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 374, value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 376, value); Z_UNSET_ISREF_P(value); zephir_check_call_status(); RETURN_CTOR(value); @@ -117950,7 +118081,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 375, macro, arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 377, macro, arguments); zephir_check_call_status(); RETURN_MM(); @@ -118413,7 +118544,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 378, 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", 339 TSRMLS_CC); @@ -118435,7 +118566,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_7, right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 352 TSRMLS_CC); zephir_concat_self(&exprCode, _7 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 376, right); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 378, right); zephir_check_call_status(); zephir_concat_self(&exprCode, _1 TSRMLS_CC); } @@ -118464,7 +118595,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, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 378, funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(arguments); @@ -118487,7 +118618,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(_1, funcArguments); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "compileFunction", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _2, _1); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -118549,7 +118680,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(exprLevel); zephir_read_property_this(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 378, block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 380, block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(exprLevel, 1)) { ZEPHIR_CPY_WRT(escapedCode, code); @@ -118576,7 +118707,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { } ZEPHIR_INIT_NVAR(_2); zephir_camelize(_2, name); - ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 67, _2); + ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 68, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); ZVAL_STRING(className, "Phalcon\\Tag", 1); @@ -118645,7 +118776,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 376, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -118705,28 +118836,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 376, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -118798,11 +118929,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, funcArguments, _4); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); Z_UNSET_ISREF_P(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 376, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -118817,7 +118948,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 377, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -119015,7 +119146,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 377, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -119033,7 +119164,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -119055,7 +119186,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 376, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -119066,13 +119197,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 380, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 376, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -119248,7 +119379,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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 376, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -119256,7 +119387,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 376, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -119348,7 +119479,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 376, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -119421,7 +119552,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 381, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); zephir_check_call_status(); RETURN_MM(); } @@ -119469,7 +119600,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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, 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", 1369 TSRMLS_CC); @@ -119499,7 +119630,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -119547,7 +119678,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, statement, SS("if_expr"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 376, ifExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "expression", &_0, 378, ifExpr); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_SVS(_5, "if (", _12, ") { ?>"); @@ -119645,16 +119776,16 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 381, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SV(_5, "", _4); @@ -119683,7 +119814,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", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119715,9 +119846,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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 376, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -119747,7 +119878,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 381, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); @@ -119806,10 +119937,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 376, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 376, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -119867,7 +119998,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", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119892,7 +120023,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", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -119923,7 +120054,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 381, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -119948,7 +120079,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", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 376, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -120022,14 +120153,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 376, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 376, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -120110,7 +120241,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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 376, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -120126,7 +120257,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, ""); - zephir_concat_self(&code, _2 TSRMLS_CC); + if (!(zephir_is_php_version(50300))) { + ZEPHIR_INIT_LNVAR(_2); + ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); + zephir_concat_self(&code, _2 TSRMLS_CC); + } RETURN_CCTOR(code); } @@ -120198,26 +120331,26 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2188); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1988); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1995 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120227,7 +120360,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { zephir_array_fast_append(_9, statement); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "compileStatement", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_10, 377, _4, _9); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_10, 379, _4, _9); zephir_check_temp_parameter(_4); zephir_check_call_status(); if (Z_TYPE_P(tempCompilation) == IS_STRING) { @@ -120236,10 +120369,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2016 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2024 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -120275,7 +120408,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2052 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -120286,7 +120419,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2067); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -120294,7 +120427,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { zephir_update_property_this(this_ptr, SL("_blocks"), blocks TSRMLS_CC); } else { if (Z_TYPE_P(blockStatements) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_11, this_ptr, "_statementlist", &_17, 381, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "_statementlist", &_17, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); zephir_concat_self(&compilation, _11 TSRMLS_CC); } @@ -120303,18 +120436,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2089 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -120396,13 +120529,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2180 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -120461,7 +120594,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2225); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -120471,10 +120604,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2237); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); return; } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 381, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 383, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); ZEPHIR_OBS_VAR(extended); zephir_read_property_this(&extended, this_ptr, SL("_extended"), PH_NOISY_CC); @@ -120489,7 +120622,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2303); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -120499,13 +120632,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2271 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 381, localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 381, block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(blockCompilation, block); @@ -120518,7 +120651,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2296); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -120610,7 +120743,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2345); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -120620,7 +120753,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2352 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120633,7 +120766,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2360 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120641,7 +120774,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_compilesource", NULL, 0, viewCode, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (Z_TYPE_P(compilation) == IS_ARRAY) { - ZEPHIR_CALL_FUNCTION(&finalCompilation, "serialize", NULL, 73, compilation); + ZEPHIR_CALL_FUNCTION(&finalCompilation, "serialize", NULL, 74, compilation); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(finalCompilation, compilation); @@ -120649,7 +120782,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2379); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); return; } RETURN_CCTOR(compilation); @@ -120720,54 +120853,54 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2426 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2428); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2436 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2438); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2446 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2449); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2458 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2460); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2468 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2470); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2478 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { if (!(ZEPHIR_IS_EMPTY(compiledPath))) { - ZEPHIR_CALL_FUNCTION(&_1, "realpath", NULL, 62, templatePath); + ZEPHIR_CALL_FUNCTION(&_1, "realpath", NULL, 63, templatePath); zephir_check_call_status(); ZEPHIR_INIT_VAR(templateSepPath); zephir_prepare_virtual_path(templateSepPath, _1, compiledSeparator TSRMLS_CC); @@ -120794,11 +120927,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2523); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2526); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); return; } } @@ -120825,12 +120958,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2560 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } if (zephir_is_true(blocksCode)) { - ZEPHIR_CALL_FUNCTION(&compilation, "unserialize", NULL, 74, blocksCode); + ZEPHIR_CALL_FUNCTION(&compilation, "unserialize", NULL, 75, blocksCode); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(compilation); @@ -120850,7 +120983,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2586 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -130756,7 +130889,7 @@ static PHP_METHOD(Phalcon_Paginator_Adapter_NativeArray, getPaginate) { number = zephir_fast_count_int(items TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, show); - ZEPHIR_CALL_FUNCTION(&_3, "floatval", NULL, 304, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "floatval", NULL, 305, &_2); zephir_check_call_status(); roundedTotal = zephir_safe_div_long_zval(number, _3 TSRMLS_CC); totalPages = (int) (roundedTotal); @@ -130767,7 +130900,7 @@ static PHP_METHOD(Phalcon_Paginator_Adapter_NativeArray, getPaginate) { ZVAL_LONG(&_2, (show * ((pageNumber - 1)))); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, show); - ZEPHIR_CALL_FUNCTION(&_5, "array_slice", NULL, 372, items, &_2, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "array_slice", NULL, 374, items, &_2, &_4); zephir_check_call_status(); ZEPHIR_CPY_WRT(items, _5); if (pageNumber < totalPages) { @@ -131077,7 +131210,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, connect) { ZEPHIR_INIT_VAR(_3); ZVAL_NULL(_3); Z_SET_ISREF_P(_2); - ZEPHIR_CALL_FUNCTION(&connection, "fsockopen", NULL, 383, _0, _1, _2, _3); + ZEPHIR_CALL_FUNCTION(&connection, "fsockopen", NULL, 385, _0, _1, _2, _3); Z_UNSET_ISREF_P(_2); zephir_check_call_status(); if (Z_TYPE_P(connection) != IS_RESOURCE) { @@ -131086,7 +131219,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, connect) { } ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, -1); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_timeout", NULL, 384, connection, &_4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_timeout", NULL, 386, connection, &_4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_connection"), connection TSRMLS_CC); RETURN_CCTOR(connection); @@ -131123,7 +131256,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, put) { ZEPHIR_INIT_NVAR(ttr); ZVAL_LONG(ttr, 86400); } - ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 73, data); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 74, data); zephir_check_call_status(); ZEPHIR_INIT_VAR(length); ZVAL_LONG(length, zephir_fast_strlen_ev(serialized)); @@ -131133,7 +131266,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, put) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", &_1, 0, serialized); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&status, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 128 TSRMLS_CC); _2 = !ZEPHIR_IS_STRING(status, "INSERTED"); @@ -131169,7 +131302,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, reserve) { } ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, command); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_0, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 153 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_0, "RESERVED")) { @@ -131180,9 +131313,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, reserve) { zephir_array_fetch_long(&_3, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 163 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_2, this_ptr, "read", NULL, 0, _3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "unserialize", NULL, 74, _2); + ZEPHIR_CALL_FUNCTION(&_4, "unserialize", NULL, 75, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _1, _4); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _1, _4); zephir_check_call_status(); RETURN_MM(); @@ -131214,7 +131347,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, choose) { ZEPHIR_CONCAT_SV(_0, "use ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 176 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "USING")) { @@ -131251,7 +131384,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, watch) { ZEPHIR_CONCAT_SV(_0, "watch ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 193 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "WATCHING")) { @@ -131274,7 +131407,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, stats) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 210 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131311,7 +131444,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, statsTube) { ZEPHIR_CONCAT_SV(_0, "stats-tube ", tube); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 227 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131334,7 +131467,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, listTubes) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 387); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readyaml", NULL, 389); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 244 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "OK")) { @@ -131357,7 +131490,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 261 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "FOUND")) { @@ -131368,9 +131501,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady) { zephir_array_fetch_long(&_4, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 265 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_3, this_ptr, "read", NULL, 0, _4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 74, _3); + ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 75, _3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _2, _5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _2, _5); zephir_check_call_status(); RETURN_MM(); @@ -131388,7 +131521,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekBuried) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, _0); zephir_check_temp_parameter(_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); zephir_array_fetch_long(&_1, response, 0, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 278 TSRMLS_CC); if (!ZEPHIR_IS_STRING(_1, "FOUND")) { @@ -131399,9 +131532,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, peekBuried) { zephir_array_fetch_long(&_4, response, 2, PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 282 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_3, this_ptr, "read", NULL, 0, _4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 74, _3); + ZEPHIR_CALL_FUNCTION(&_5, "unserialize", NULL, 75, _3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 386, this_ptr, _2, _5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 388, this_ptr, _2, _5); zephir_check_call_status(); RETURN_MM(); @@ -131432,7 +131565,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 385); + ZEPHIR_CALL_METHOD(&response, this_ptr, "readstatus", NULL, 387); zephir_check_call_status(); ZEPHIR_OBS_VAR(status); zephir_array_fetch_long(&status, response, 0, PH_NOISY, "phalcon/queue/beanstalk.zep", 307 TSRMLS_CC); @@ -131487,9 +131620,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 388, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 389, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131505,7 +131638,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 390, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131537,7 +131670,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 391, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -131876,7 +132009,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 400, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -131887,26 +132020,26 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { ZVAL_STRING(&_2, "/dev/urandom", 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "rb", 0); - ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 285, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 286, &_2, &_3); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 403, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 388, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 117); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unexpected partial read from random device", "phalcon/security/random.zep", 123); return; } RETURN_CCTOR(ret); } } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 124); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "No random device", "phalcon/security/random.zep", 130); return; } @@ -131932,16 +132065,67 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); - ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 121, _3); + ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); Z_UNSET_ISREF_P(_3); zephir_check_call_status(); RETURN_MM(); } +static PHP_METHOD(Phalcon_Security_Random, base58) { + + unsigned char _8; + zephir_fcall_cache_entry *_7 = NULL; + double _5; + HashTable *_3; + HashPosition _2; + int ZEPHIR_LAST_CALL_STATUS; + zval *byteString, *alphabet; + zval *n = NULL, *bytes = NULL, *idx = NULL, *_0 = NULL, _1, **_4, *_6 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 1, &n); + + if (!n) { + n = ZEPHIR_GLOBAL(global_null); + } + ZEPHIR_INIT_VAR(byteString); + ZVAL_STRING(byteString, "", 1); + ZEPHIR_INIT_VAR(alphabet); + ZVAL_STRING(alphabet, "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", 1); + + + ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, n); + zephir_check_call_status(); + ZEPHIR_SINIT_VAR(_1); + ZVAL_STRING(&_1, "C*", 0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + zephir_check_call_status(); + zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); + for ( + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) + ) { + ZEPHIR_GET_HVALUE(idx, _4); + _5 = zephir_safe_mod_zval_long(idx, 64 TSRMLS_CC); + ZEPHIR_INIT_NVAR(idx); + ZVAL_DOUBLE(idx, _5); + if (ZEPHIR_GE_LONG(idx, 58)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, 57); + ZEPHIR_CALL_METHOD(&idx, this_ptr, "number", &_7, 0, _6); + zephir_check_call_status(); + } + _8 = ZEPHIR_STRING_OFFSET(alphabet, zephir_get_intval(idx)); + zephir_concat_self_char(&byteString, _8 TSRMLS_CC); + } + RETURN_CTOR(byteString); + +} + static PHP_METHOD(Phalcon_Security_Random, base64) { zval *len_param = NULL, *_0 = NULL, *_1; @@ -131961,7 +132145,7 @@ static PHP_METHOD(Phalcon_Security_Random, base64) { ZVAL_LONG(_1, len); ZEPHIR_CALL_METHOD(&_0, this_ptr, "bytes", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 114, _0); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 115, _0); zephir_check_call_status(); RETURN_MM(); @@ -132023,22 +132207,22 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 404, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 215, _3); + ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); - zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 222 TSRMLS_CC); + zephir_array_fetch_long(&_4, ary, 2, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 268 TSRMLS_CC); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, ((((int) (zephir_get_numberval(_4)) & 0x0fff)) | 0x4000)); - zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 222); - zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 223 TSRMLS_CC); + zephir_array_update_long(&ary, 2, &_1, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 268); + zephir_array_fetch_long(&_5, ary, 3, PH_NOISY | PH_READONLY, "phalcon/security/random.zep", 269 TSRMLS_CC); ZEPHIR_INIT_VAR(_6); ZVAL_LONG(_6, ((((int) (zephir_get_numberval(_5)) & 0x3fff)) | 0x8000)); - zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 223); + zephir_array_update_long(&ary, 3, &_6, PH_COPY | PH_SEPARATE, "phalcon/security/random.zep", 269); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "%08x-%04x-%04x-%04x-%04x%08x", ZEPHIR_TEMP_PARAM_COPY); Z_SET_ISREF_P(ary); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, ary, _7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, ary, _7); zephir_check_temp_parameter(_7); Z_UNSET_ISREF_P(ary); zephir_check_call_status(); @@ -132052,86 +132236,95 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { static PHP_METHOD(Phalcon_Security_Random, number) { - zephir_fcall_cache_entry *_4 = NULL, *_9 = NULL, *_14 = NULL, *_18 = NULL; - zval *len_param = NULL, *hex = NULL, *bin = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *first = NULL, _0 = zval_used_for_init, *_1, _2, *_3, *_8 = NULL, _10 = zval_used_for_init, _11 = zval_used_for_init, _12 = zval_used_for_init, *_13 = NULL, _15 = zval_used_for_init, _16 = zval_used_for_init, *_17 = NULL; - int len, ZEPHIR_LAST_CALL_STATUS, _5, _6, _7; + zephir_fcall_cache_entry *_5 = NULL, *_9 = NULL, *_13 = NULL, *_17 = NULL; + unsigned char _4; + zval *bin; + zval *len_param = NULL, *hex = NULL, *mask = NULL, *rnd = NULL, *ret = NULL, *_0 = NULL, _1 = zval_used_for_init, *_2, *_3 = NULL, _10 = zval_used_for_init, *_11 = NULL, _12 = zval_used_for_init, _14 = zval_used_for_init, _15 = zval_used_for_init, *_16 = NULL; + int len, ZEPHIR_LAST_CALL_STATUS, _6, _7, _8; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &len_param); len = zephir_get_intval(len_param); + ZEPHIR_INIT_VAR(bin); + ZVAL_STRING(bin, "", 1); - if (len > 0) { - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 405, &_0); + if (len <= 0) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 294); + return; + } + if ((zephir_function_exists_ex(SS("\\sodium\\randombytes_uniform") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, len); + ZEPHIR_RETURN_CALL_FUNCTION("\\sodium\\randombytes_uniform", NULL, 0, _0); zephir_check_call_status(); - if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { - ZEPHIR_INIT_VAR(_1); - ZEPHIR_CONCAT_SV(_1, "0", hex); - ZEPHIR_CPY_WRT(hex, _1); - } - ZEPHIR_SINIT_NVAR(_0); - ZVAL_STRING(&_0, "H*", 0); - ZEPHIR_CALL_FUNCTION(&bin, "pack", NULL, 406, &_0, hex); + RETURN_MM(); + } + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, len); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + zephir_check_call_status(); + if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "0", hex); + ZEPHIR_CPY_WRT(hex, _2); + } + ZEPHIR_SINIT_NVAR(_1); + ZVAL_STRING(&_1, "H*", 0); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + zephir_check_call_status(); + zephir_concat_self(&bin, _3 TSRMLS_CC); + _4 = ZEPHIR_STRING_OFFSET(bin, 0); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, _4); + ZEPHIR_CALL_FUNCTION(&mask, "ord", &_5, 133, &_1); + zephir_check_call_status(); + _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _6); + _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _7); + _8 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); + ZEPHIR_INIT_NVAR(mask); + ZVAL_LONG(mask, _8); + do { + ZEPHIR_INIT_NVAR(_0); + ZVAL_LONG(_0, zephir_fast_strlen_ev(bin)); + ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _0); zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_SINIT_VAR(_2); - ZVAL_LONG(&_2, 1); - ZEPHIR_INIT_VAR(_3); - zephir_substr(_3, bin, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&mask, "ord", &_4, 132, _3); - zephir_check_call_status(); - _5 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 1))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _5); - _6 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 2))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _6); - _7 = ((int) (zephir_get_numberval(mask)) | (((int) (zephir_get_numberval(mask)) >> 4))); - ZEPHIR_INIT_NVAR(mask); - ZVAL_LONG(mask, _7); - do { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, zephir_fast_strlen_ev(bin)); - ZEPHIR_CALL_METHOD(&rnd, this_ptr, "bytes", &_9, 0, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_10); - ZVAL_LONG(&_10, 0); - ZEPHIR_SINIT_NVAR(_11); - ZVAL_LONG(&_11, 1); - ZEPHIR_INIT_NVAR(_8); - zephir_substr(_8, rnd, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&first, "ord", &_4, 132, _8); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_12); - zephir_bitwise_and_function(&_12, first, mask TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_14, 130, &_12); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_15); - ZVAL_LONG(&_15, 0); - ZEPHIR_SINIT_NVAR(_16); - ZVAL_LONG(&_16, 1); - ZEPHIR_CALL_FUNCTION(&_17, "substr_replace", &_18, 407, rnd, _13, &_15, &_16); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(rnd, _17); - } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_1); + ZVAL_LONG(&_1, 0); ZEPHIR_SINIT_NVAR(_10); - ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 404, &_10, rnd); + ZVAL_LONG(&_10, 1); + ZEPHIR_INIT_NVAR(_0); + zephir_substr(_0, rnd, 0 , 1 , 0); + ZEPHIR_CALL_FUNCTION(&_11, "ord", &_5, 133, _0); zephir_check_call_status(); - Z_SET_ISREF_P(ret); - ZEPHIR_CALL_FUNCTION(&_13, "array_shift", NULL, 121, ret); - Z_UNSET_ISREF_P(ret); + ZEPHIR_SINIT_NVAR(_12); + zephir_bitwise_and_function(&_12, _11, mask TSRMLS_CC); + ZEPHIR_CALL_FUNCTION(&_11, "chr", &_13, 131, &_12); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 408, _13); + ZEPHIR_SINIT_NVAR(_14); + ZVAL_LONG(&_14, 0); + ZEPHIR_SINIT_NVAR(_15); + ZVAL_LONG(&_15, 1); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); - RETURN_MM(); - } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Require a positive integer > 0", "phalcon/security/random.zep", 269); - return; + ZEPHIR_CPY_WRT(rnd, _16); + } while (ZEPHIR_LT(bin, rnd)); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "H*", 0); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + zephir_check_call_status(); + Z_SET_ISREF_P(ret); + ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); + Z_UNSET_ISREF_P(ret); + zephir_check_call_status(); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + zephir_check_call_status(); + RETURN_MM(); } @@ -132597,6 +132790,23 @@ static PHP_METHOD(Phalcon_Session_Adapter, __unset) { } +static PHP_METHOD(Phalcon_Session_Adapter, __destruct) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *_0; + + ZEPHIR_MM_GROW(); + + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_started"), PH_NOISY_CC); + if (zephir_is_true(_0)) { + ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 62); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_started"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + ZEPHIR_MM_RESTORE(); + +} + @@ -132639,6 +132849,10 @@ ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, destroy); ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, regenerateId); +ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, setName); + +ZEPHIR_DOC_METHOD(Phalcon_Session_AdapterInterface, getName); + @@ -133073,7 +133287,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 411, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); @@ -133361,7 +133575,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_create_array(_4, 4, 0 TSRMLS_CC); @@ -133369,7 +133583,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { zephir_array_update_string(&_4, SL("client"), &client, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("prefix"), &prefix, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("statsKey"), &statsKey, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 312, _1, _4); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, _4); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_libmemcached"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_5); @@ -133408,9 +133622,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133586,9 +133800,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 314, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 316, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_memcache"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -133627,9 +133841,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133803,9 +134017,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_OBS_VAR(_3); zephir_read_property_this(&_3, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_2, SL("lifetime"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 311, _2); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 313, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 315, _1, options); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 317, _1, options); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_redis"), _0 TSRMLS_CC); ZEPHIR_INIT_VAR(_4); @@ -133844,9 +134058,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 409, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 410, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134087,7 +134301,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 415, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134096,7 +134310,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 416, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134234,12 +134448,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 416, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134633,7 +134847,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -134646,7 +134860,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, 426, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -134668,7 +134882,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -134682,7 +134896,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 427, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -134840,7 +135054,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -134873,22 +135087,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 420); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 419, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 428, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 429, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -134986,12 +135200,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 430, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 431, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135022,7 +135236,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 432, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -135037,7 +135251,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, 432, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -135099,14 +135313,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 433, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135149,7 +135363,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -135162,12 +135376,12 @@ 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", NULL, 434, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 414, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135280,7 +135494,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 425, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135486,7 +135700,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde } if (_0) { Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 379, placeholders, translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, placeholders, translation); Z_UNSET_ISREF_P(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); @@ -135545,6 +135759,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Message) { zend_declare_property_null(phalcon_validation_message_ce, SL("_field"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_validation_message_ce, SL("_code"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_class_implements(phalcon_validation_message_ce TSRMLS_CC, 1, phalcon_validation_messageinterface_ce); return SUCCESS; @@ -135552,11 +135768,12 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Message) { static PHP_METHOD(Phalcon_Validation_Message, __construct) { - zval *message_param = NULL, *field = NULL, *type = NULL; - zval *message = NULL; + int code; + zval *message_param = NULL, *field_param = NULL, *type_param = NULL, *code_param = NULL, *_0; + zval *message = NULL, *field = NULL, *type = NULL; ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 2, &message_param, &field, &type); + zephir_fetch_params(1, 1, 3, &message_param, &field_param, &type_param, &code_param); if (unlikely(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); @@ -135569,17 +135786,31 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_INIT_VAR(message); ZVAL_EMPTY_STRING(message); } - if (!field) { - field = ZEPHIR_GLOBAL(global_null); + if (!field_param) { + ZEPHIR_INIT_VAR(field); + ZVAL_EMPTY_STRING(field); + } else { + zephir_get_strval(field, field_param); } - if (!type) { - type = ZEPHIR_GLOBAL(global_null); + if (!type_param) { + ZEPHIR_INIT_VAR(type); + ZVAL_EMPTY_STRING(type); + } else { + zephir_get_strval(type, type_param); + } + if (!code_param) { + code = 0; + } else { + code = zephir_get_intval(code_param); } zephir_update_property_this(this_ptr, SL("_message"), message TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_field"), field TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_LONG(_0, code); + zephir_update_property_this(this_ptr, SL("_code"), _0 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } @@ -135683,6 +135914,30 @@ static PHP_METHOD(Phalcon_Validation_Message, getField) { } +static PHP_METHOD(Phalcon_Validation_Message, setCode) { + + zval *code_param = NULL, *_0; + int code; + + zephir_fetch_params(0, 1, 0, &code_param); + + code = zephir_get_intval(code_param); + + + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_LONG(_0, code); + zephir_update_property_this(this_ptr, SL("_code"), _0 TSRMLS_CC); + RETURN_THISW(); + +} + +static PHP_METHOD(Phalcon_Validation_Message, getCode) { + + + RETURN_MEMBER(this_ptr, "_code"); + +} + static PHP_METHOD(Phalcon_Validation_Message, __toString) { @@ -135704,10 +135959,10 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { object_init_ex(return_value, phalcon_validation_message_ce); - zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 435, _0, _1, _2); + 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, 437, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136321,7 +136576,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 436, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136354,7 +136609,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136424,7 +136679,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 437, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136457,7 +136712,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136574,7 +136829,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136638,7 +136893,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(&_1, this_ptr, "compare", NULL, 438, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -136681,7 +136936,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136720,12 +136975,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } @@ -136792,7 +137047,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136825,7 +137080,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136897,7 +137152,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -136930,7 +137185,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137043,7 +137298,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137159,7 +137414,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 435, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137199,7 +137454,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -137225,7 +137480,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137262,7 +137517,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137308,7 +137563,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -137318,9 +137573,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -137345,7 +137600,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 435, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137371,12 +137626,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -137407,7 +137662,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137431,7 +137686,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -137492,7 +137747,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 435, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137548,7 +137803,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 435, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -137666,7 +137921,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137763,7 +138018,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 358, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 360, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -137799,7 +138054,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137905,7 +138160,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -137998,7 +138253,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138114,7 +138369,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138213,7 +138468,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 359, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -138248,7 +138503,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 435, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138285,7 +138540,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 435, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138426,7 +138681,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 435, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138498,7 +138753,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -138531,7 +138786,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 435, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/safe/phalcon.zep.h b/build/safe/phalcon.zep.h index c72569af8a9..607167ec9eb 100644 --- a/build/safe/phalcon.zep.h +++ b/build/safe/phalcon.zep.h @@ -2385,6 +2385,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); static PHP_METHOD(Phalcon_Logger_Adapter, begin); static PHP_METHOD(Phalcon_Logger_Adapter, commit); static PHP_METHOD(Phalcon_Logger_Adapter, rollback); +static PHP_METHOD(Phalcon_Logger_Adapter, isTransaction); static PHP_METHOD(Phalcon_Logger_Adapter, critical); static PHP_METHOD(Phalcon_Logger_Adapter, emergency); static PHP_METHOD(Phalcon_Logger_Adapter, debug); @@ -2456,6 +2457,7 @@ ZEPHIR_INIT_FUNCS(phalcon_logger_adapter_method_entry) { PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, isTransaction, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, critical, arginfo_phalcon_logger_adapter_critical, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, emergency, arginfo_phalcon_logger_adapter_emergency, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) @@ -2641,6 +2643,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, __get); static PHP_METHOD(Phalcon_Session_Adapter, __set); static PHP_METHOD(Phalcon_Session_Adapter, __isset); static PHP_METHOD(Phalcon_Session_Adapter, __unset); +static PHP_METHOD(Phalcon_Session_Adapter, __destruct); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapter___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) @@ -2723,6 +2726,7 @@ ZEPHIR_INIT_FUNCS(phalcon_session_adapter_method_entry) { PHP_ME(Phalcon_Session_Adapter, __set, arginfo_phalcon_session_adapter___set, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __isset, arginfo_phalcon_session_adapter___isset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Adapter, __unset, arginfo_phalcon_session_adapter___unset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Adapter, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR) PHP_FE_END }; @@ -2760,6 +2764,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_regenerateid, 0, ZEND_ARG_INFO(0, deleteOldSession) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setname, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + ZEPHIR_INIT_FUNCS(phalcon_session_adapterinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) @@ -2772,6 +2780,8 @@ ZEPHIR_INIT_FUNCS(phalcon_session_adapterinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, arginfo_phalcon_session_adapterinterface_destroy) PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, regenerateId, arginfo_phalcon_session_adapterinterface_regenerateid) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setName, arginfo_phalcon_session_adapterinterface_setname) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getName, NULL) PHP_FE_END }; @@ -4492,6 +4502,7 @@ ZEPHIR_INIT_FUNCS(phalcon_db_columninterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getAfterPosition, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getBindType, NULL) PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, getDefault, NULL) + PHP_ABSTRACT_ME(Phalcon_Db_ColumnInterface, hasDefault, NULL) ZEND_FENTRY(__set_state, NULL, arginfo_phalcon_db_columninterface___set_state, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -8919,6 +8930,7 @@ static PHP_METHOD(Phalcon_Db_Column, isFirst); static PHP_METHOD(Phalcon_Db_Column, getAfterPosition); static PHP_METHOD(Phalcon_Db_Column, getBindType); static PHP_METHOD(Phalcon_Db_Column, __set_state); +static PHP_METHOD(Phalcon_Db_Column, hasDefault); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_column___construct, 0, 0, 2) ZEND_ARG_INFO(0, name) @@ -8948,6 +8960,7 @@ ZEPHIR_INIT_FUNCS(phalcon_db_column_method_entry) { PHP_ME(Phalcon_Db_Column, getAfterPosition, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, getBindType, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Column, __set_state, arginfo_phalcon_db_column___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Phalcon_Db_Column, hasDefault, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -9765,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) @@ -13338,6 +13351,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields); static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate); static PHP_METHOD(Phalcon_Mvc_Model, getRelated); static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords); +static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder); static PHP_METHOD(Phalcon_Mvc_Model, __call); static PHP_METHOD(Phalcon_Mvc_Model, __callStatic); static PHP_METHOD(Phalcon_Mvc_Model, __set); @@ -13622,6 +13636,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model__getrelatedrecords, 0, 0, 3) ZEND_ARG_INFO(0, arguments) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model__invokefinder, 0, 0, 2) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, arguments) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model___call, 0, 0, 2) ZEND_ARG_INFO(0, method) ZEND_ARG_INFO(0, arguments) @@ -13736,6 +13755,7 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, useDynamicUpdate, arginfo_phalcon_mvc_model_usedynamicupdate, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Mvc_Model, getRelated, arginfo_phalcon_mvc_model_getrelated, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, _getRelatedRecords, arginfo_phalcon_mvc_model__getrelatedrecords, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_Model, _invokeFinder, arginfo_phalcon_mvc_model__invokefinder, ZEND_ACC_PROTECTED|ZEND_ACC_FINAL|ZEND_ACC_STATIC) PHP_ME(Phalcon_Mvc_Model, __call, arginfo_phalcon_mvc_model___call, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, __callStatic, arginfo_phalcon_mvc_model___callstatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_ME(Phalcon_Mvc_Model, __set, arginfo_phalcon_mvc_model___set, ZEND_ACC_PUBLIC) @@ -17230,6 +17250,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Security_Random); static PHP_METHOD(Phalcon_Security_Random, bytes); static PHP_METHOD(Phalcon_Security_Random, hex); +static PHP_METHOD(Phalcon_Security_Random, base58); static PHP_METHOD(Phalcon_Security_Random, base64); static PHP_METHOD(Phalcon_Security_Random, base64Safe); static PHP_METHOD(Phalcon_Security_Random, uuid); @@ -17243,6 +17264,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_hex, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base58, 0, 0, 0) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_random_base64, 0, 0, 0) ZEND_ARG_INFO(0, len) ZEND_END_ARG_INFO() @@ -17259,6 +17284,7 @@ ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_security_random_method_entry) { PHP_ME(Phalcon_Security_Random, bytes, arginfo_phalcon_security_random_bytes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, hex, arginfo_phalcon_security_random_hex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security_Random, base58, arginfo_phalcon_security_random_base58, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64, arginfo_phalcon_security_random_base64, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, base64Safe, arginfo_phalcon_security_random_base64safe, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security_Random, uuid, NULL, ZEND_ACC_PUBLIC) @@ -18300,6 +18326,8 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage); static PHP_METHOD(Phalcon_Validation_Message, getMessage); static PHP_METHOD(Phalcon_Validation_Message, setField); static PHP_METHOD(Phalcon_Validation_Message, getField); +static PHP_METHOD(Phalcon_Validation_Message, setCode); +static PHP_METHOD(Phalcon_Validation_Message, getCode); static PHP_METHOD(Phalcon_Validation_Message, __toString); static PHP_METHOD(Phalcon_Validation_Message, __set_state); @@ -18307,6 +18335,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___construct, 0, 0, 1) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, field) ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, code) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_settype, 0, 0, 1) @@ -18321,6 +18350,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_setfield, 0, 0, 1) ZEND_ARG_INFO(0, field) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_setcode, 0, 0, 1) + ZEND_ARG_INFO(0, code) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___set_state, 0, 0, 1) ZEND_ARG_ARRAY_INFO(0, message, 0) ZEND_END_ARG_INFO() @@ -18333,6 +18366,8 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_message_method_entry) { PHP_ME(Phalcon_Validation_Message, getMessage, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, setField, arginfo_phalcon_validation_message_setfield, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, getField, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message, setCode, arginfo_phalcon_validation_message_setcode, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message, getCode, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, __toString, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message, __set_state, arginfo_phalcon_validation_message___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_FE_END diff --git a/build/safe/php_phalcon.h b/build/safe/php_phalcon.h index 34511ce576f..07c26e8d906 100644 --- a/build/safe/php_phalcon.h +++ b/build/safe/php_phalcon.h @@ -196,7 +196,7 @@ typedef zend_function zephir_fcall_cache_entry; #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "2.0.7" +#define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" #define PHP_PHALCON_ZEPVERSION "0.7.1b" From 1d4886a41aa42be3bd1fb0b9ca4ceaba1ec51986 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Mon, 14 Sep 2015 07:50:44 -0500 Subject: [PATCH 53/60] Latest Zephir + Regenerating build [ci skip] --- build/32bits/phalcon.zep.c | 974 +++++++++++------- build/32bits/phalcon.zep.h | 26 +- build/64bits/phalcon.zep.c | 974 +++++++++++------- build/64bits/phalcon.zep.h | 26 +- build/safe/phalcon.zep.c | 974 +++++++++++------- build/safe/phalcon.zep.h | 26 +- ext/config.m4 | 1 + ext/config.w32 | 2 +- ext/phalcon.c | 2 + ext/phalcon.h | 1 + ext/phalcon/0__closure.zep.c | 2 +- ext/phalcon/acl/adapter.zep.c | 3 - ext/phalcon/acl/adapter/memory.zep.c | 4 +- ext/phalcon/acl/resource.zep.c | 3 - ext/phalcon/acl/role.zep.c | 3 - ext/phalcon/cache/backend/redis.zep.c | 6 +- ext/phalcon/db/adapter.zep.c | 6 +- ext/phalcon/db/column.zep.c | 14 - ext/phalcon/db/dialect/mysql.zep.c | 46 +- ext/phalcon/db/dialect/postgresql.zep.c | 325 +++--- ext/phalcon/db/index.zep.c | 6 - ext/phalcon/db/profiler/item.zep.c | 66 +- ext/phalcon/db/profiler/item.zep.h | 4 +- ext/phalcon/db/rawvalue.zep.c | 4 - ext/phalcon/db/reference.zep.c | 12 - ext/phalcon/events/event.zep.c | 22 +- ext/phalcon/http/cookie.zep.c | 2 +- ext/phalcon/http/request/file.zep.c | 3 - ext/phalcon/image/adapter.zep.c | 8 +- ext/phalcon/image/adapter/imagick.zep.c | 90 +- ext/phalcon/loader.zep.c | 14 +- ext/phalcon/logger/formatter/line.zep.c | 26 +- ext/phalcon/logger/item.zep.c | 6 - ext/phalcon/mvc/view.zep.c | 1 - ext/phalcon/queue/beanstalk.zep.c | 10 +- ext/phalcon/registry.zep.c | 18 +- ext/phalcon/security.zep.c | 14 +- ext/phalcon/security/random.zep.c | 22 +- .../session/adapter/libmemcached.zep.c | 4 +- ext/phalcon/session/adapter/memcache.zep.c | 4 +- ext/phalcon/session/adapter/redis.zep.c | 4 +- ext/phalcon/session/bag.zep.c | 2 +- ext/phalcon/tag.zep.c | 46 +- ext/phalcon/tag/select.zep.c | 6 +- ext/phalcon/text.zep.c | 40 +- ext/phalcon/translate/adapter/csv.zep.c | 6 +- ext/phalcon/translate/adapter/gettext.zep.c | 26 +- .../translate/adapter/nativearray.zep.c | 2 +- ext/phalcon/validation.zep.c | 17 +- ext/phalcon/validation/message.zep.c | 2 +- ext/phalcon/validation/validator/alnum.zep.c | 4 +- ext/phalcon/validation/validator/alpha.zep.c | 4 +- .../validation/validator/between.zep.c | 2 +- .../validation/validator/confirmation.zep.c | 4 +- .../validation/validator/creditcard.zep.c | 166 +++ .../validation/validator/creditcard.zep.h | 22 + ext/phalcon/validation/validator/digit.zep.c | 4 +- ext/phalcon/validation/validator/email.zep.c | 2 +- .../validation/validator/exclusionin.zep.c | 2 +- ext/phalcon/validation/validator/file.zep.c | 14 +- .../validation/validator/identical.zep.c | 2 +- .../validation/validator/inclusionin.zep.c | 2 +- .../validation/validator/numericality.zep.c | 2 +- .../validation/validator/presenceof.zep.c | 2 +- ext/phalcon/validation/validator/regex.zep.c | 2 +- .../validation/validator/stringlength.zep.c | 4 +- .../validation/validator/uniqueness.zep.c | 2 +- ext/phalcon/validation/validator/url.zep.c | 2 +- ext/phalcon/version.zep.c | 4 +- 69 files changed, 2585 insertions(+), 1566 deletions(-) create mode 100644 ext/phalcon/validation/validator/creditcard.zep.c create mode 100644 ext/phalcon/validation/validator/creditcard.zep.h diff --git a/build/32bits/phalcon.zep.c b/build/32bits/phalcon.zep.c index 10333e680e4..016731a086b 100644 --- a/build/32bits/phalcon.zep.c +++ b/build/32bits/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -23105,7 +23105,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(namespaces); zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); if (Z_TYPE_P(namespaces) == IS_ARRAY) { - zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 347); + zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 349); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -23127,7 +23127,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 344); + zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 346); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -23167,7 +23167,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(prefixes); zephir_read_property_this(&prefixes, this_ptr, SL("_prefixes"), PH_NOISY_CC); if (Z_TYPE_P(prefixes) == IS_ARRAY) { - zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 402); + zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 404); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -23198,7 +23198,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 399); + zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 401); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -23246,7 +23246,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(directories); zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); if (Z_TYPE_P(directories) == IS_ARRAY) { - zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 464); + zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 466); for ( ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS ; zephir_hash_move_forward_ex(_26, &_25) @@ -23256,7 +23256,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 463); + zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 465); for ( ; zephir_hash_get_current_data_ex(_29, (void**) &_30, &_28) == SUCCESS ; zephir_hash_move_forward_ex(_29, &_28) @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,7 +23858,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23977,7 +23977,7 @@ static PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +24081,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24123,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -26043,7 +26043,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -26112,7 +26112,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26742,17 +26742,17 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27238,7 +27238,7 @@ static PHP_METHOD(Phalcon_Validation, setDefaultMessages) { ZEPHIR_INIT_VAR(defaultMessages); - zephir_create_array(defaultMessages, 23, 0 TSRMLS_CC); + zephir_create_array(defaultMessages, 24, 0 TSRMLS_CC); add_assoc_stringl_ex(defaultMessages, SS("Alnum"), SL("Field :field must contain only letters and numbers"), 1); add_assoc_stringl_ex(defaultMessages, SS("Alpha"), SL("Field :field must contain only letters"), 1); add_assoc_stringl_ex(defaultMessages, SS("Between"), SL("Field :field must be within the range of :min to :max"), 1); @@ -27262,6 +27262,7 @@ static PHP_METHOD(Phalcon_Validation, setDefaultMessages) { add_assoc_stringl_ex(defaultMessages, SS("TooShort"), SL("Field :field must be at least :min characters long"), 1); add_assoc_stringl_ex(defaultMessages, SS("Uniqueness"), SL("Field :field must be unique"), 1); add_assoc_stringl_ex(defaultMessages, SS("Url"), SL("Field :field must be a url"), 1); + add_assoc_stringl_ex(defaultMessages, SS("CreditCard"), SL("Field :field is not valid for a credit card number"), 1); ZEPHIR_INIT_VAR(_0); zephir_fast_array_merge(_0, &(defaultMessages), &(messages) TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_defaultMessages"), _0 TSRMLS_CC); @@ -27295,7 +27296,7 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultMessages"), PH_NOISY_CC); - zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 278 TSRMLS_CC); + zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 279 TSRMLS_CC); RETURN_CTOR(_2); } @@ -27380,7 +27381,7 @@ static PHP_METHOD(Phalcon_Validation, bind) { if (Z_TYPE_P(entity) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 335); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 336); return; } _0 = Z_TYPE_P(data) != IS_ARRAY; @@ -27388,7 +27389,7 @@ static PHP_METHOD(Phalcon_Validation, bind) { _0 = Z_TYPE_P(data) != IS_OBJECT; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 339); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 340); return; } zephir_update_property_this(this_ptr, SL("_entity"), entity TSRMLS_CC); @@ -27442,7 +27443,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { _1 = Z_TYPE_P(data) != IS_OBJECT; } if (_1) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 386); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 387); return; } ZEPHIR_OBS_VAR(values); @@ -27456,7 +27457,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(data) == IS_ARRAY) { if (zephir_array_isset(data, field)) { ZEPHIR_OBS_NVAR(value); - zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 400 TSRMLS_CC); + zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 401 TSRMLS_CC); } } else if (Z_TYPE_P(data) == IS_OBJECT) { if (zephir_isset_property_zval(data, field TSRMLS_CC)) { @@ -27479,7 +27480,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_2, 1); 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", 423); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "A dependency injector is required to obtain the 'filter' service", "phalcon/validation.zep", 424); return; } } @@ -27489,7 +27490,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { zephir_check_temp_parameter(_3); zephir_check_call_status(); if (Z_TYPE_P(filterService) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 429); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 430); return; } ZEPHIR_RETURN_CALL_METHOD(filterService, "sanitize", NULL, 0, value, fieldFilters); @@ -27618,7 +27619,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27685,7 +27686,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); zephir_check_call_status(); break; } @@ -28518,7 +28519,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKeyAll, _2); - if (zephir_array_isset(accessList, accessKeyAll)) { + if (zephir_array_isset(internalAccess, accessKeyAll)) { zephir_update_property_array(this_ptr, SL("_access"), accessKeyAll, defaultAccess TSRMLS_CC); } } @@ -28546,7 +28547,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKey, _2); - if (!(zephir_array_isset(accessList, accessKey))) { + if (!(zephir_array_isset(internalAccess, accessKey))) { _11 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultAccess"), PH_NOISY_CC); zephir_update_property_array(this_ptr, SL("_access"), accessKey, _11 TSRMLS_CC); } @@ -39201,8 +39202,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)) { @@ -51302,7 +51305,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51364,9 +51367,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_9, column, "isfirst", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); @@ -51384,7 +51392,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51432,7 +51440,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 266)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_VAR(_5); @@ -51449,6 +51457,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } RETURN_CCTOR(sql); } @@ -51861,7 +51874,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 377); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -51881,7 +51894,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 440); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -51900,7 +51913,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 406)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_NVAR(_8); @@ -51927,11 +51940,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 434); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -51964,12 +51977,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 460); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 484); for ( ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS ; zephir_hash_move_forward_ex(_19, &_18) @@ -52003,7 +52016,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 482); } } ZEPHIR_INIT_NVAR(_7); @@ -52106,7 +52119,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 520); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -52468,7 +52481,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -52476,7 +52489,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 669); } } ZEPHIR_OBS_VAR(tableCollation); @@ -52484,13 +52497,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 679 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 679); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 680); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { @@ -53700,14 +53713,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 14)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); - } - if (zephir_is_true(size)) { - ZEPHIR_CALL_METHOD(&_0, column, "getsize", NULL, 0); + ZEPHIR_CALL_METHOD(&_0, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "(", _0, ")"); - zephir_concat_self(&columnSql, _1 TSRMLS_CC); + if (zephir_is_true(_0)) { + zephir_concat_self_str(&columnSql, SL("BIGSERIAL") TSRMLS_CC); + } else { + zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); + } } break; } @@ -53725,7 +53737,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 8)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("SMALLINT(1)") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("BOOLEAN") TSRMLS_CC); } break; } @@ -53738,7 +53750,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -53748,7 +53760,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 161); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -53790,7 +53802,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2, *_3 = NULL, *_4, *_5, *_6 = NULL, *_7, _8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53820,37 +53832,53 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { } + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVS(sql, "ALTER TABLE ", _0, " ADD COLUMN "); ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); - zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVSV(_2, "\"", _1, "\" ", columnDefinition); + zephir_concat_self(&sql, _2 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); - zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_fast_strtoupper(_4, columnDefinition); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_4, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 185)) { + ZEPHIR_INIT_VAR(_6); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "false", 1); + } + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, " DEFAULT ", _6); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } else if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 187)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_VAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + ZEPHIR_SINIT_VAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", NULL, 143, defaultValue, &_8); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_7); - ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); - zephir_concat_self(&sql, _7 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _9, "\""); + zephir_concat_self(&sql, _6 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -53859,9 +53887,9 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { - zend_bool _10; + zend_bool _9; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_10 = NULL, *_11, *_12, *_13 = NULL, *_14 = NULL, _15, *_16 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53896,6 +53924,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZVAL_STRING(sql, "", 1); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sqlAlterTable); @@ -53920,10 +53950,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", _7, ";"); + ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", columnDefinition, ";"); zephir_concat_self(&sql, _5 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_3, column, "isnotnull", NULL, 0); @@ -53940,11 +53968,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _7, "\" SET NOT NULL;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP NOT NULL;"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_VSVS(_8, sqlAlterTable, " ALTER COLUMN \"", _7, "\" DROP NOT NULL;"); + zephir_concat_self(&sql, _8 TSRMLS_CC); } } ZEPHIR_CALL_METHOD(&_3, column, "getdefault", NULL, 0); @@ -53954,42 +53982,58 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = !zephir_is_true(_6); - if (_10) { + _9 = !zephir_is_true(_6); + if (_9) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); - _10 = !(ZEPHIR_IS_EMPTY(_7)); + _9 = !(ZEPHIR_IS_EMPTY(_7)); } - if (_10) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + if (_9) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); + ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _10, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_8)) { + if (zephir_is_true(_7)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); - zephir_fast_strtoupper(_11, defaultValue); - if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_fast_strtoupper(_11, columnDefinition); + ZEPHIR_INIT_VAR(_12); + zephir_fast_strtoupper(_12, defaultValue); + if (zephir_memnstr_str(_11, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 238)) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_VAR(_13); + ZEPHIR_CONCAT_SVSV(_13, " ALTER COLUMN \"", _10, "\" SET DEFAULT ", _8); + zephir_concat_self(&sql, _13 TSRMLS_CC); + } else if (zephir_memnstr_str(_12, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 240)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _13 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_13); - ZVAL_STRING(&_13, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + ZEPHIR_SINIT_VAR(_15); + ZVAL_STRING(&_15, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_16, "addcslashes", NULL, 143, defaultValue, &_15); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_15); - ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); - zephir_concat_self(&sql, _15 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT \"", _16, "\""); + zephir_concat_self(&sql, _13 TSRMLS_CC); } } } @@ -54367,12 +54411,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; - HashTable *_1, *_16, *_21; - HashPosition _0, _15, _20; + zephir_fcall_cache_entry *_3 = NULL, *_12 = NULL; + HashTable *_1, *_16, *_22; + HashPosition _0, _15, _21; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, *columnDefinition = NULL, **_2, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, *_20 = NULL, **_23, *_24; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -54406,7 +54450,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -54428,67 +54472,77 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 406); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); - ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", &_3, 0, column); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + ZEPHIR_CALL_METHOD(&_4, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); - ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); + ZEPHIR_CONCAT_SVSV(columnLine, "\"", _4, "\" ", columnDefinition); + ZEPHIR_CALL_METHOD(&_5, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_5)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_strtoupper(_6, columnDefinition); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + if (zephir_memnstr_str(_6, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 381)) { + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " DEFAULT ", _8); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 383)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_12, 143, defaultValue, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); - zephir_concat_self(&columnLine, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _11, "\""); + zephir_concat_self(&columnLine, _8 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_9)) { + if (zephir_is_true(_11)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); - zephir_check_call_status(); - if (zephir_is_true(_12)) { - } ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 401); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 404); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "PRIMARY KEY (", _4, ")"); + zephir_array_append(&createLines, _8, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 407); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 441); for ( ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS ; zephir_hash_move_forward_ex(_16, &_15) @@ -54501,102 +54555,102 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_INIT_NVAR(indexSql); ZVAL_STRING(indexSql, "", 1); if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { - ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_5, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, _4); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); + ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _4, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "getcolumnlist", NULL, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _11, ")"); } else { - ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); - zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "CREATE INDEX \"", _14, "\" ON ", _18); + zephir_concat_self(&indexSqlAfterCreate, _8 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_20, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_19, this_ptr, "getcolumnlist", NULL, 44, _20); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); - zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, " (", _19, ");"); + zephir_concat_self(&indexSqlAfterCreate, _9 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 438); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); + zephir_is_iterable(references, &_22, &_21, 0, 0, "phalcon/db/dialect/postgresql.zep", 466); for ( - ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS - ; zephir_hash_move_forward_ex(_21, &_20) + ; zephir_hash_get_current_data_ex(_22, (void**) &_23, &_21) == SUCCESS + ; zephir_hash_move_forward_ex(_22, &_21) ) { - ZEPHIR_GET_HVALUE(reference, _22); - ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + ZEPHIR_GET_HVALUE(reference, _23); + ZEPHIR_CALL_METHOD(&_4, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 44, _11); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _4, "\" FOREIGN KEY (", _5, ") REFERENCES "); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, _14, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _13 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "getcolumnlist", NULL, 44, _19); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " (", _18, ")"); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SV(_8, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 464); } } - ZEPHIR_INIT_NVAR(_7); - zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_VS(_11, _7, "\n)"); - zephir_concat_self(&sql, _11 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_join_str(_6, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_VS(_8, _6, "\n)"); + zephir_concat_self(&sql, _8 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_23); - ZEPHIR_CONCAT_SV(_23, " ", _3); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ", _4); + zephir_concat_self(&sql, _9 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_23); - ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_VAR(_24); + ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _24 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -54685,7 +54739,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 503); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -56119,13 +56173,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56138,13 +56196,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56157,13 +56219,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56176,13 +56242,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } @@ -56195,13 +56265,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } @@ -58865,13 +58939,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -62917,7 +62995,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_read_property_this(&httpOnly, this_ptr, SL("_httpOnly"), PH_NOISY_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); - if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { + if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_1, dependencyInjector, "getshared", NULL, 0, _2); @@ -69674,8 +69752,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -69744,11 +69824,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); + if (zephir_has_constructor(_8 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); + } ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -69966,8 +70048,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(SS("imagickpixel") TSRMLS_CC)); - 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) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70156,8 +70240,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70206,12 +70292,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(SS("imagick") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - 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(); + } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70337,8 +70427,10 @@ 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(SS("imagick") TSRMLS_CC)); - 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_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70408,8 +70500,10 @@ 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(SS("imagickdraw") TSRMLS_CC)); - 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_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70422,8 +70516,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); + if (zephir_has_constructor(_4 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70642,8 +70738,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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); @@ -70716,20 +70814,26 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); + if (zephir_has_constructor(pixel2 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(); + } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -73284,13 +73388,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73303,13 +73411,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -131574,7 +131686,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -131620,9 +131732,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131638,7 +131750,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131670,7 +131782,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -132009,7 +132121,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); RETURN_MM(); } @@ -132025,11 +132137,11 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -132065,7 +132177,7 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -132102,7 +132214,7 @@ static PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -132207,7 +132319,7 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -132263,7 +132375,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -132272,7 +132384,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -132310,19 +132422,19 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); zephir_check_call_status(); RETURN_MM(); @@ -133287,7 +133399,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); zephir_check_call_status(); RETURN_MM(); @@ -133622,9 +133734,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133841,9 +133953,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134058,9 +134170,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134301,7 +134413,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134310,7 +134422,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134453,7 +134565,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134847,7 +134959,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, 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", 43); @@ -134860,7 +134972,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 429, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -134896,7 +135008,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135054,7 +135166,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135087,22 +135199,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135200,12 +135312,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135236,7 +135348,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); zephir_check_call_status(); RETURN_MM(); @@ -135251,7 +135363,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, _0); zephir_check_call_status(); RETURN_MM(); @@ -135313,14 +135425,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135376,12 +135488,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 437, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135494,7 +135606,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135962,7 +136074,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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 438, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136576,7 +136688,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136609,7 +136721,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136679,7 +136791,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136712,7 +136824,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136829,7 +136941,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136893,7 +137005,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 441, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -136936,7 +137048,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136991,6 +137103,142 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { +#ifdef HAVE_CONFIG_H +#endif + +#include + +#include +#include +#include + + + +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard) { + + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, CreditCard, phalcon, validation_validator_creditcard, phalcon_validation_validator_ce, phalcon_validation_validator_creditcard_method_entry, 0); + + return SUCCESS; + +} + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *field = NULL; + zval *validation, *field_param = NULL, *message = NULL, *label = NULL, *replacePairs, *value = NULL, *valid = NULL, *_0 = NULL, *_1 = NULL, *_2; + + 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)) { + 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)) { + zephir_get_strval(field, field_param); + } else { + ZEPHIR_INIT_VAR(field); + ZVAL_EMPTY_STRING(field); + } + + + ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 442, value); + zephir_check_call_status(); + if (!(zephir_is_true(valid))) { + ZEPHIR_INIT_VAR(_0); + ZVAL_STRING(_0, "label", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&label, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + if (ZEPHIR_IS_EMPTY(label)) { + ZEPHIR_CALL_METHOD(&label, validation, "getlabel", NULL, 0, field); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "message", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(replacePairs); + zephir_create_array(replacePairs, 1, 0 TSRMLS_CC); + zephir_array_update_string(&replacePairs, SL(":field"), &label, PH_COPY | PH_SEPARATE); + if (ZEPHIR_IS_EMPTY(message)) { + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, validation, "getdefaultmessage", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + object_init_ex(_0, phalcon_validation_message_ce); + ZEPHIR_CALL_FUNCTION(&_1, "strtr", NULL, 54, message, replacePairs); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + zephir_check_temp_parameter(_2); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); + zephir_check_call_status(); + RETURN_MM_BOOL(0); + } + RETURN_MM_BOOL(1); + +} + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { + + HashTable *_6; + HashPosition _5; + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_1 = NULL; + zval *digits = NULL, *_2 = NULL; + zval *number, *_0 = NULL, *digit = NULL, *position = NULL, *hash, *_3 = NULL, *_4 = NULL, **_7, *_8 = NULL, *result = NULL, *_9 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &number); + + ZEPHIR_INIT_VAR(hash); + ZVAL_STRING(hash, "", 1); + + + ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 70, number); + zephir_check_call_status(); + zephir_get_arrval(_2, _0); + ZEPHIR_CPY_WRT(digits, _2); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + zephir_check_call_status(); + zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); + for ( + ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zephir_hash_move_forward_ex(_6, &_5) + ) { + ZEPHIR_GET_HMKEY(position, _6, _5); + ZEPHIR_GET_HVALUE(digit, _7); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_safe_mod_zval_long(position, 2 TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_LONG(_8, (zephir_get_numberval(digit) * 2)); + } else { + ZEPHIR_CPY_WRT(_8, digit); + } + zephir_concat_self(&hash, _8 TSRMLS_CC); + } + ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); + zephir_check_call_status(); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _9); + zephir_check_call_status(); + RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); + +} + + + + #ifdef HAVE_CONFIG_H #endif @@ -137047,7 +137295,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137080,7 +137328,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137185,7 +137433,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137298,7 +137546,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137414,7 +137662,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137480,7 +137728,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137517,7 +137765,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137600,7 +137848,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137662,7 +137910,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137747,7 +137995,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137803,7 +138051,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -137921,7 +138169,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138054,7 +138302,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138160,7 +138408,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138253,7 +138501,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138369,7 +138617,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138503,7 +138751,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138540,7 +138788,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138681,7 +138929,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138786,7 +139034,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -139164,6 +139412,7 @@ zend_class_entry *phalcon_validation_validator_alnum_ce; zend_class_entry *phalcon_validation_validator_alpha_ce; zend_class_entry *phalcon_validation_validator_between_ce; zend_class_entry *phalcon_validation_validator_confirmation_ce; +zend_class_entry *phalcon_validation_validator_creditcard_ce; zend_class_entry *phalcon_validation_validator_digit_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; @@ -139560,6 +139809,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Validation_Validator_Alpha); ZEPHIR_INIT(Phalcon_Validation_Validator_Between); ZEPHIR_INIT(Phalcon_Validation_Validator_Confirmation); + ZEPHIR_INIT(Phalcon_Validation_Validator_CreditCard); ZEPHIR_INIT(Phalcon_Validation_Validator_Digit); ZEPHIR_INIT(Phalcon_Validation_Validator_Email); ZEPHIR_INIT(Phalcon_Validation_Validator_ExclusionIn); diff --git a/build/32bits/phalcon.zep.h b/build/32bits/phalcon.zep.h index 607167ec9eb..41c7cc4a29f 100644 --- a/build/32bits/phalcon.zep.h +++ b/build/32bits/phalcon.zep.h @@ -9778,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_INFO(0, sqlVariables) + ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_INFO(0, sqlBindTypes) + ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) @@ -18520,6 +18520,28 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_validator_confirmation_method_entry) { PHP_FE_END }; +zend_class_entry *phalcon_validation_validator_creditcard_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard); + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate); +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_validate, 0, 0, 2) + ZEND_ARG_OBJ_INFO(0, validation, Phalcon\\Validation, 0) + ZEND_ARG_INFO(0, field) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, 0, 0, 1) + ZEND_ARG_INFO(0, number) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_validation_validator_creditcard_method_entry) { + PHP_ME(Phalcon_Validation_Validator_CreditCard, validate, arginfo_phalcon_validation_validator_creditcard_validate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm, arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, ZEND_ACC_PRIVATE) + PHP_FE_END +}; + zend_class_entry *phalcon_validation_validator_digit_ce; ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_Digit); diff --git a/build/64bits/phalcon.zep.c b/build/64bits/phalcon.zep.c index 10333e680e4..016731a086b 100644 --- a/build/64bits/phalcon.zep.c +++ b/build/64bits/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -23105,7 +23105,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(namespaces); zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); if (Z_TYPE_P(namespaces) == IS_ARRAY) { - zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 347); + zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 349); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -23127,7 +23127,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 344); + zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 346); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -23167,7 +23167,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(prefixes); zephir_read_property_this(&prefixes, this_ptr, SL("_prefixes"), PH_NOISY_CC); if (Z_TYPE_P(prefixes) == IS_ARRAY) { - zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 402); + zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 404); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -23198,7 +23198,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 399); + zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 401); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -23246,7 +23246,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(directories); zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); if (Z_TYPE_P(directories) == IS_ARRAY) { - zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 464); + zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 466); for ( ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS ; zephir_hash_move_forward_ex(_26, &_25) @@ -23256,7 +23256,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 463); + zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 465); for ( ; zephir_hash_get_current_data_ex(_29, (void**) &_30, &_28) == SUCCESS ; zephir_hash_move_forward_ex(_29, &_28) @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,7 +23858,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23977,7 +23977,7 @@ static PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +24081,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24123,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -26043,7 +26043,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -26112,7 +26112,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26742,17 +26742,17 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27238,7 +27238,7 @@ static PHP_METHOD(Phalcon_Validation, setDefaultMessages) { ZEPHIR_INIT_VAR(defaultMessages); - zephir_create_array(defaultMessages, 23, 0 TSRMLS_CC); + zephir_create_array(defaultMessages, 24, 0 TSRMLS_CC); add_assoc_stringl_ex(defaultMessages, SS("Alnum"), SL("Field :field must contain only letters and numbers"), 1); add_assoc_stringl_ex(defaultMessages, SS("Alpha"), SL("Field :field must contain only letters"), 1); add_assoc_stringl_ex(defaultMessages, SS("Between"), SL("Field :field must be within the range of :min to :max"), 1); @@ -27262,6 +27262,7 @@ static PHP_METHOD(Phalcon_Validation, setDefaultMessages) { add_assoc_stringl_ex(defaultMessages, SS("TooShort"), SL("Field :field must be at least :min characters long"), 1); add_assoc_stringl_ex(defaultMessages, SS("Uniqueness"), SL("Field :field must be unique"), 1); add_assoc_stringl_ex(defaultMessages, SS("Url"), SL("Field :field must be a url"), 1); + add_assoc_stringl_ex(defaultMessages, SS("CreditCard"), SL("Field :field is not valid for a credit card number"), 1); ZEPHIR_INIT_VAR(_0); zephir_fast_array_merge(_0, &(defaultMessages), &(messages) TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_defaultMessages"), _0 TSRMLS_CC); @@ -27295,7 +27296,7 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultMessages"), PH_NOISY_CC); - zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 278 TSRMLS_CC); + zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 279 TSRMLS_CC); RETURN_CTOR(_2); } @@ -27380,7 +27381,7 @@ static PHP_METHOD(Phalcon_Validation, bind) { if (Z_TYPE_P(entity) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 335); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 336); return; } _0 = Z_TYPE_P(data) != IS_ARRAY; @@ -27388,7 +27389,7 @@ static PHP_METHOD(Phalcon_Validation, bind) { _0 = Z_TYPE_P(data) != IS_OBJECT; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 339); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 340); return; } zephir_update_property_this(this_ptr, SL("_entity"), entity TSRMLS_CC); @@ -27442,7 +27443,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { _1 = Z_TYPE_P(data) != IS_OBJECT; } if (_1) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 386); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 387); return; } ZEPHIR_OBS_VAR(values); @@ -27456,7 +27457,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(data) == IS_ARRAY) { if (zephir_array_isset(data, field)) { ZEPHIR_OBS_NVAR(value); - zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 400 TSRMLS_CC); + zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 401 TSRMLS_CC); } } else if (Z_TYPE_P(data) == IS_OBJECT) { if (zephir_isset_property_zval(data, field TSRMLS_CC)) { @@ -27479,7 +27480,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_2, 1); 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", 423); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "A dependency injector is required to obtain the 'filter' service", "phalcon/validation.zep", 424); return; } } @@ -27489,7 +27490,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { zephir_check_temp_parameter(_3); zephir_check_call_status(); if (Z_TYPE_P(filterService) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 429); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 430); return; } ZEPHIR_RETURN_CALL_METHOD(filterService, "sanitize", NULL, 0, value, fieldFilters); @@ -27618,7 +27619,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27685,7 +27686,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); zephir_check_call_status(); break; } @@ -28518,7 +28519,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKeyAll, _2); - if (zephir_array_isset(accessList, accessKeyAll)) { + if (zephir_array_isset(internalAccess, accessKeyAll)) { zephir_update_property_array(this_ptr, SL("_access"), accessKeyAll, defaultAccess TSRMLS_CC); } } @@ -28546,7 +28547,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKey, _2); - if (!(zephir_array_isset(accessList, accessKey))) { + if (!(zephir_array_isset(internalAccess, accessKey))) { _11 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultAccess"), PH_NOISY_CC); zephir_update_property_array(this_ptr, SL("_access"), accessKey, _11 TSRMLS_CC); } @@ -39201,8 +39202,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)) { @@ -51302,7 +51305,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51364,9 +51367,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_9, column, "isfirst", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); @@ -51384,7 +51392,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51432,7 +51440,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 266)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_VAR(_5); @@ -51449,6 +51457,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } RETURN_CCTOR(sql); } @@ -51861,7 +51874,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 377); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -51881,7 +51894,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 440); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -51900,7 +51913,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 406)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_NVAR(_8); @@ -51927,11 +51940,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 434); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -51964,12 +51977,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 460); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 484); for ( ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS ; zephir_hash_move_forward_ex(_19, &_18) @@ -52003,7 +52016,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 482); } } ZEPHIR_INIT_NVAR(_7); @@ -52106,7 +52119,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 520); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -52468,7 +52481,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -52476,7 +52489,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 669); } } ZEPHIR_OBS_VAR(tableCollation); @@ -52484,13 +52497,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 679 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 679); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 680); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { @@ -53700,14 +53713,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 14)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); - } - if (zephir_is_true(size)) { - ZEPHIR_CALL_METHOD(&_0, column, "getsize", NULL, 0); + ZEPHIR_CALL_METHOD(&_0, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "(", _0, ")"); - zephir_concat_self(&columnSql, _1 TSRMLS_CC); + if (zephir_is_true(_0)) { + zephir_concat_self_str(&columnSql, SL("BIGSERIAL") TSRMLS_CC); + } else { + zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); + } } break; } @@ -53725,7 +53737,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 8)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("SMALLINT(1)") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("BOOLEAN") TSRMLS_CC); } break; } @@ -53738,7 +53750,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -53748,7 +53760,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 161); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -53790,7 +53802,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2, *_3 = NULL, *_4, *_5, *_6 = NULL, *_7, _8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53820,37 +53832,53 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { } + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVS(sql, "ALTER TABLE ", _0, " ADD COLUMN "); ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); - zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVSV(_2, "\"", _1, "\" ", columnDefinition); + zephir_concat_self(&sql, _2 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); - zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_fast_strtoupper(_4, columnDefinition); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_4, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 185)) { + ZEPHIR_INIT_VAR(_6); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "false", 1); + } + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, " DEFAULT ", _6); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } else if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 187)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_VAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + ZEPHIR_SINIT_VAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", NULL, 143, defaultValue, &_8); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_7); - ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); - zephir_concat_self(&sql, _7 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _9, "\""); + zephir_concat_self(&sql, _6 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -53859,9 +53887,9 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { - zend_bool _10; + zend_bool _9; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_10 = NULL, *_11, *_12, *_13 = NULL, *_14 = NULL, _15, *_16 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53896,6 +53924,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZVAL_STRING(sql, "", 1); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sqlAlterTable); @@ -53920,10 +53950,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", _7, ";"); + ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", columnDefinition, ";"); zephir_concat_self(&sql, _5 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_3, column, "isnotnull", NULL, 0); @@ -53940,11 +53968,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _7, "\" SET NOT NULL;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP NOT NULL;"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_VSVS(_8, sqlAlterTable, " ALTER COLUMN \"", _7, "\" DROP NOT NULL;"); + zephir_concat_self(&sql, _8 TSRMLS_CC); } } ZEPHIR_CALL_METHOD(&_3, column, "getdefault", NULL, 0); @@ -53954,42 +53982,58 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = !zephir_is_true(_6); - if (_10) { + _9 = !zephir_is_true(_6); + if (_9) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); - _10 = !(ZEPHIR_IS_EMPTY(_7)); + _9 = !(ZEPHIR_IS_EMPTY(_7)); } - if (_10) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + if (_9) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); + ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _10, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_8)) { + if (zephir_is_true(_7)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); - zephir_fast_strtoupper(_11, defaultValue); - if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_fast_strtoupper(_11, columnDefinition); + ZEPHIR_INIT_VAR(_12); + zephir_fast_strtoupper(_12, defaultValue); + if (zephir_memnstr_str(_11, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 238)) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_VAR(_13); + ZEPHIR_CONCAT_SVSV(_13, " ALTER COLUMN \"", _10, "\" SET DEFAULT ", _8); + zephir_concat_self(&sql, _13 TSRMLS_CC); + } else if (zephir_memnstr_str(_12, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 240)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _13 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_13); - ZVAL_STRING(&_13, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + ZEPHIR_SINIT_VAR(_15); + ZVAL_STRING(&_15, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_16, "addcslashes", NULL, 143, defaultValue, &_15); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_15); - ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); - zephir_concat_self(&sql, _15 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT \"", _16, "\""); + zephir_concat_self(&sql, _13 TSRMLS_CC); } } } @@ -54367,12 +54411,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; - HashTable *_1, *_16, *_21; - HashPosition _0, _15, _20; + zephir_fcall_cache_entry *_3 = NULL, *_12 = NULL; + HashTable *_1, *_16, *_22; + HashPosition _0, _15, _21; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, *columnDefinition = NULL, **_2, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, *_20 = NULL, **_23, *_24; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -54406,7 +54450,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -54428,67 +54472,77 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 406); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); - ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", &_3, 0, column); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + ZEPHIR_CALL_METHOD(&_4, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); - ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); + ZEPHIR_CONCAT_SVSV(columnLine, "\"", _4, "\" ", columnDefinition); + ZEPHIR_CALL_METHOD(&_5, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_5)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_strtoupper(_6, columnDefinition); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + if (zephir_memnstr_str(_6, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 381)) { + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " DEFAULT ", _8); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 383)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_12, 143, defaultValue, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); - zephir_concat_self(&columnLine, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _11, "\""); + zephir_concat_self(&columnLine, _8 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_9)) { + if (zephir_is_true(_11)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); - zephir_check_call_status(); - if (zephir_is_true(_12)) { - } ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 401); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 404); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "PRIMARY KEY (", _4, ")"); + zephir_array_append(&createLines, _8, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 407); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 441); for ( ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS ; zephir_hash_move_forward_ex(_16, &_15) @@ -54501,102 +54555,102 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_INIT_NVAR(indexSql); ZVAL_STRING(indexSql, "", 1); if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { - ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_5, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, _4); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); + ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _4, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "getcolumnlist", NULL, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _11, ")"); } else { - ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); - zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "CREATE INDEX \"", _14, "\" ON ", _18); + zephir_concat_self(&indexSqlAfterCreate, _8 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_20, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_19, this_ptr, "getcolumnlist", NULL, 44, _20); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); - zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, " (", _19, ");"); + zephir_concat_self(&indexSqlAfterCreate, _9 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 438); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); + zephir_is_iterable(references, &_22, &_21, 0, 0, "phalcon/db/dialect/postgresql.zep", 466); for ( - ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS - ; zephir_hash_move_forward_ex(_21, &_20) + ; zephir_hash_get_current_data_ex(_22, (void**) &_23, &_21) == SUCCESS + ; zephir_hash_move_forward_ex(_22, &_21) ) { - ZEPHIR_GET_HVALUE(reference, _22); - ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + ZEPHIR_GET_HVALUE(reference, _23); + ZEPHIR_CALL_METHOD(&_4, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 44, _11); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _4, "\" FOREIGN KEY (", _5, ") REFERENCES "); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, _14, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _13 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "getcolumnlist", NULL, 44, _19); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " (", _18, ")"); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SV(_8, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 464); } } - ZEPHIR_INIT_NVAR(_7); - zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_VS(_11, _7, "\n)"); - zephir_concat_self(&sql, _11 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_join_str(_6, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_VS(_8, _6, "\n)"); + zephir_concat_self(&sql, _8 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_23); - ZEPHIR_CONCAT_SV(_23, " ", _3); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ", _4); + zephir_concat_self(&sql, _9 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_23); - ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_VAR(_24); + ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _24 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -54685,7 +54739,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 503); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -56119,13 +56173,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56138,13 +56196,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56157,13 +56219,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56176,13 +56242,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } @@ -56195,13 +56265,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } @@ -58865,13 +58939,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -62917,7 +62995,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_read_property_this(&httpOnly, this_ptr, SL("_httpOnly"), PH_NOISY_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); - if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { + if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_1, dependencyInjector, "getshared", NULL, 0, _2); @@ -69674,8 +69752,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -69744,11 +69824,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); + if (zephir_has_constructor(_8 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); + } ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -69966,8 +70048,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(SS("imagickpixel") TSRMLS_CC)); - 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) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70156,8 +70240,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70206,12 +70292,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(SS("imagick") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - 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(); + } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70337,8 +70427,10 @@ 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(SS("imagick") TSRMLS_CC)); - 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_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70408,8 +70500,10 @@ 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(SS("imagickdraw") TSRMLS_CC)); - 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_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70422,8 +70516,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); + if (zephir_has_constructor(_4 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70642,8 +70738,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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); @@ -70716,20 +70814,26 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); + if (zephir_has_constructor(pixel2 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(); + } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -73284,13 +73388,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73303,13 +73411,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -131574,7 +131686,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -131620,9 +131732,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131638,7 +131750,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131670,7 +131782,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -132009,7 +132121,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); RETURN_MM(); } @@ -132025,11 +132137,11 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -132065,7 +132177,7 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -132102,7 +132214,7 @@ static PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -132207,7 +132319,7 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -132263,7 +132375,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -132272,7 +132384,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -132310,19 +132422,19 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); zephir_check_call_status(); RETURN_MM(); @@ -133287,7 +133399,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); zephir_check_call_status(); RETURN_MM(); @@ -133622,9 +133734,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133841,9 +133953,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134058,9 +134170,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134301,7 +134413,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134310,7 +134422,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134453,7 +134565,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134847,7 +134959,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, 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", 43); @@ -134860,7 +134972,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 429, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -134896,7 +135008,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135054,7 +135166,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135087,22 +135199,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135200,12 +135312,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135236,7 +135348,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); zephir_check_call_status(); RETURN_MM(); @@ -135251,7 +135363,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, _0); zephir_check_call_status(); RETURN_MM(); @@ -135313,14 +135425,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135376,12 +135488,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 437, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135494,7 +135606,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135962,7 +136074,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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 438, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136576,7 +136688,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136609,7 +136721,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136679,7 +136791,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136712,7 +136824,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136829,7 +136941,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136893,7 +137005,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 441, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -136936,7 +137048,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136991,6 +137103,142 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { +#ifdef HAVE_CONFIG_H +#endif + +#include + +#include +#include +#include + + + +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard) { + + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, CreditCard, phalcon, validation_validator_creditcard, phalcon_validation_validator_ce, phalcon_validation_validator_creditcard_method_entry, 0); + + return SUCCESS; + +} + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *field = NULL; + zval *validation, *field_param = NULL, *message = NULL, *label = NULL, *replacePairs, *value = NULL, *valid = NULL, *_0 = NULL, *_1 = NULL, *_2; + + 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)) { + 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)) { + zephir_get_strval(field, field_param); + } else { + ZEPHIR_INIT_VAR(field); + ZVAL_EMPTY_STRING(field); + } + + + ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 442, value); + zephir_check_call_status(); + if (!(zephir_is_true(valid))) { + ZEPHIR_INIT_VAR(_0); + ZVAL_STRING(_0, "label", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&label, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + if (ZEPHIR_IS_EMPTY(label)) { + ZEPHIR_CALL_METHOD(&label, validation, "getlabel", NULL, 0, field); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "message", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(replacePairs); + zephir_create_array(replacePairs, 1, 0 TSRMLS_CC); + zephir_array_update_string(&replacePairs, SL(":field"), &label, PH_COPY | PH_SEPARATE); + if (ZEPHIR_IS_EMPTY(message)) { + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, validation, "getdefaultmessage", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + object_init_ex(_0, phalcon_validation_message_ce); + ZEPHIR_CALL_FUNCTION(&_1, "strtr", NULL, 54, message, replacePairs); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + zephir_check_temp_parameter(_2); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); + zephir_check_call_status(); + RETURN_MM_BOOL(0); + } + RETURN_MM_BOOL(1); + +} + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { + + HashTable *_6; + HashPosition _5; + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_1 = NULL; + zval *digits = NULL, *_2 = NULL; + zval *number, *_0 = NULL, *digit = NULL, *position = NULL, *hash, *_3 = NULL, *_4 = NULL, **_7, *_8 = NULL, *result = NULL, *_9 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &number); + + ZEPHIR_INIT_VAR(hash); + ZVAL_STRING(hash, "", 1); + + + ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 70, number); + zephir_check_call_status(); + zephir_get_arrval(_2, _0); + ZEPHIR_CPY_WRT(digits, _2); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + zephir_check_call_status(); + zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); + for ( + ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zephir_hash_move_forward_ex(_6, &_5) + ) { + ZEPHIR_GET_HMKEY(position, _6, _5); + ZEPHIR_GET_HVALUE(digit, _7); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_safe_mod_zval_long(position, 2 TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_LONG(_8, (zephir_get_numberval(digit) * 2)); + } else { + ZEPHIR_CPY_WRT(_8, digit); + } + zephir_concat_self(&hash, _8 TSRMLS_CC); + } + ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); + zephir_check_call_status(); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _9); + zephir_check_call_status(); + RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); + +} + + + + #ifdef HAVE_CONFIG_H #endif @@ -137047,7 +137295,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137080,7 +137328,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137185,7 +137433,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137298,7 +137546,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137414,7 +137662,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137480,7 +137728,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137517,7 +137765,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137600,7 +137848,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137662,7 +137910,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137747,7 +137995,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137803,7 +138051,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -137921,7 +138169,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138054,7 +138302,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138160,7 +138408,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138253,7 +138501,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138369,7 +138617,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138503,7 +138751,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138540,7 +138788,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138681,7 +138929,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138786,7 +139034,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -139164,6 +139412,7 @@ zend_class_entry *phalcon_validation_validator_alnum_ce; zend_class_entry *phalcon_validation_validator_alpha_ce; zend_class_entry *phalcon_validation_validator_between_ce; zend_class_entry *phalcon_validation_validator_confirmation_ce; +zend_class_entry *phalcon_validation_validator_creditcard_ce; zend_class_entry *phalcon_validation_validator_digit_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; @@ -139560,6 +139809,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Validation_Validator_Alpha); ZEPHIR_INIT(Phalcon_Validation_Validator_Between); ZEPHIR_INIT(Phalcon_Validation_Validator_Confirmation); + ZEPHIR_INIT(Phalcon_Validation_Validator_CreditCard); ZEPHIR_INIT(Phalcon_Validation_Validator_Digit); ZEPHIR_INIT(Phalcon_Validation_Validator_Email); ZEPHIR_INIT(Phalcon_Validation_Validator_ExclusionIn); diff --git a/build/64bits/phalcon.zep.h b/build/64bits/phalcon.zep.h index 607167ec9eb..41c7cc4a29f 100644 --- a/build/64bits/phalcon.zep.h +++ b/build/64bits/phalcon.zep.h @@ -9778,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_INFO(0, sqlVariables) + ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_INFO(0, sqlBindTypes) + ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) @@ -18520,6 +18520,28 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_validator_confirmation_method_entry) { PHP_FE_END }; +zend_class_entry *phalcon_validation_validator_creditcard_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard); + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate); +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_validate, 0, 0, 2) + ZEND_ARG_OBJ_INFO(0, validation, Phalcon\\Validation, 0) + ZEND_ARG_INFO(0, field) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, 0, 0, 1) + ZEND_ARG_INFO(0, number) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_validation_validator_creditcard_method_entry) { + PHP_ME(Phalcon_Validation_Validator_CreditCard, validate, arginfo_phalcon_validation_validator_creditcard_validate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm, arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, ZEND_ACC_PRIVATE) + PHP_FE_END +}; + zend_class_entry *phalcon_validation_validator_digit_ce; ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_Digit); diff --git a/build/safe/phalcon.zep.c b/build/safe/phalcon.zep.c index 10333e680e4..016731a086b 100644 --- a/build/safe/phalcon.zep.c +++ b/build/safe/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -23105,7 +23105,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(namespaces); zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); if (Z_TYPE_P(namespaces) == IS_ARRAY) { - zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 347); + zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 349); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -23127,7 +23127,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 344); + zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 346); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -23167,7 +23167,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(prefixes); zephir_read_property_this(&prefixes, this_ptr, SL("_prefixes"), PH_NOISY_CC); if (Z_TYPE_P(prefixes) == IS_ARRAY) { - zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 402); + zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 404); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -23198,7 +23198,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 399); + zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 401); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -23246,7 +23246,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(directories); zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); if (Z_TYPE_P(directories) == IS_ARRAY) { - zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 464); + zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 466); for ( ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS ; zephir_hash_move_forward_ex(_26, &_25) @@ -23256,7 +23256,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 463); + zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 465); for ( ; zephir_hash_get_current_data_ex(_29, (void**) &_30, &_28) == SUCCESS ; zephir_hash_move_forward_ex(_29, &_28) @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,7 +23858,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23977,7 +23977,7 @@ static PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +24081,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24123,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -26043,7 +26043,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -26112,7 +26112,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26742,17 +26742,17 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27238,7 +27238,7 @@ static PHP_METHOD(Phalcon_Validation, setDefaultMessages) { ZEPHIR_INIT_VAR(defaultMessages); - zephir_create_array(defaultMessages, 23, 0 TSRMLS_CC); + zephir_create_array(defaultMessages, 24, 0 TSRMLS_CC); add_assoc_stringl_ex(defaultMessages, SS("Alnum"), SL("Field :field must contain only letters and numbers"), 1); add_assoc_stringl_ex(defaultMessages, SS("Alpha"), SL("Field :field must contain only letters"), 1); add_assoc_stringl_ex(defaultMessages, SS("Between"), SL("Field :field must be within the range of :min to :max"), 1); @@ -27262,6 +27262,7 @@ static PHP_METHOD(Phalcon_Validation, setDefaultMessages) { add_assoc_stringl_ex(defaultMessages, SS("TooShort"), SL("Field :field must be at least :min characters long"), 1); add_assoc_stringl_ex(defaultMessages, SS("Uniqueness"), SL("Field :field must be unique"), 1); add_assoc_stringl_ex(defaultMessages, SS("Url"), SL("Field :field must be a url"), 1); + add_assoc_stringl_ex(defaultMessages, SS("CreditCard"), SL("Field :field is not valid for a credit card number"), 1); ZEPHIR_INIT_VAR(_0); zephir_fast_array_merge(_0, &(defaultMessages), &(messages) TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_defaultMessages"), _0 TSRMLS_CC); @@ -27295,7 +27296,7 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultMessages"), PH_NOISY_CC); - zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 278 TSRMLS_CC); + zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 279 TSRMLS_CC); RETURN_CTOR(_2); } @@ -27380,7 +27381,7 @@ static PHP_METHOD(Phalcon_Validation, bind) { if (Z_TYPE_P(entity) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 335); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 336); return; } _0 = Z_TYPE_P(data) != IS_ARRAY; @@ -27388,7 +27389,7 @@ static PHP_METHOD(Phalcon_Validation, bind) { _0 = Z_TYPE_P(data) != IS_OBJECT; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 339); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 340); return; } zephir_update_property_this(this_ptr, SL("_entity"), entity TSRMLS_CC); @@ -27442,7 +27443,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { _1 = Z_TYPE_P(data) != IS_OBJECT; } if (_1) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 386); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 387); return; } ZEPHIR_OBS_VAR(values); @@ -27456,7 +27457,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(data) == IS_ARRAY) { if (zephir_array_isset(data, field)) { ZEPHIR_OBS_NVAR(value); - zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 400 TSRMLS_CC); + zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 401 TSRMLS_CC); } } else if (Z_TYPE_P(data) == IS_OBJECT) { if (zephir_isset_property_zval(data, field TSRMLS_CC)) { @@ -27479,7 +27480,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_2, 1); 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", 423); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "A dependency injector is required to obtain the 'filter' service", "phalcon/validation.zep", 424); return; } } @@ -27489,7 +27490,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { zephir_check_temp_parameter(_3); zephir_check_call_status(); if (Z_TYPE_P(filterService) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 429); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 430); return; } ZEPHIR_RETURN_CALL_METHOD(filterService, "sanitize", NULL, 0, value, fieldFilters); @@ -27618,7 +27619,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27685,7 +27686,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); zephir_check_call_status(); break; } @@ -28518,7 +28519,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKeyAll, _2); - if (zephir_array_isset(accessList, accessKeyAll)) { + if (zephir_array_isset(internalAccess, accessKeyAll)) { zephir_update_property_array(this_ptr, SL("_access"), accessKeyAll, defaultAccess TSRMLS_CC); } } @@ -28546,7 +28547,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKey, _2); - if (!(zephir_array_isset(accessList, accessKey))) { + if (!(zephir_array_isset(internalAccess, accessKey))) { _11 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultAccess"), PH_NOISY_CC); zephir_update_property_array(this_ptr, SL("_access"), accessKey, _11 TSRMLS_CC); } @@ -39201,8 +39202,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)) { @@ -51302,7 +51305,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51364,9 +51367,14 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_9, column, "isfirst", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); @@ -51384,7 +51392,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -51432,7 +51440,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 266)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_VAR(_5); @@ -51449,6 +51457,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } RETURN_CCTOR(sql); } @@ -51861,7 +51874,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 377); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -51881,7 +51894,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 440); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -51900,7 +51913,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 406)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_NVAR(_8); @@ -51927,11 +51940,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 434); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -51964,12 +51977,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 460); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 484); for ( ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS ; zephir_hash_move_forward_ex(_19, &_18) @@ -52003,7 +52016,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 482); } } ZEPHIR_INIT_NVAR(_7); @@ -52106,7 +52119,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 520); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -52468,7 +52481,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -52476,7 +52489,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 669); } } ZEPHIR_OBS_VAR(tableCollation); @@ -52484,13 +52497,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 679 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 679); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 680); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { @@ -53700,14 +53713,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 14)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); - } - if (zephir_is_true(size)) { - ZEPHIR_CALL_METHOD(&_0, column, "getsize", NULL, 0); + ZEPHIR_CALL_METHOD(&_0, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "(", _0, ")"); - zephir_concat_self(&columnSql, _1 TSRMLS_CC); + if (zephir_is_true(_0)) { + zephir_concat_self_str(&columnSql, SL("BIGSERIAL") TSRMLS_CC); + } else { + zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); + } } break; } @@ -53725,7 +53737,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 8)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("SMALLINT(1)") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("BOOLEAN") TSRMLS_CC); } break; } @@ -53738,7 +53750,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -53748,7 +53760,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 161); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -53790,7 +53802,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2, *_3 = NULL, *_4, *_5, *_6 = NULL, *_7, _8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53820,37 +53832,53 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { } + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVS(sql, "ALTER TABLE ", _0, " ADD COLUMN "); ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); - zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVSV(_2, "\"", _1, "\" ", columnDefinition); + zephir_concat_self(&sql, _2 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); - zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_fast_strtoupper(_4, columnDefinition); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_4, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 185)) { + ZEPHIR_INIT_VAR(_6); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "false", 1); + } + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, " DEFAULT ", _6); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } else if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 187)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_VAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + ZEPHIR_SINIT_VAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", NULL, 143, defaultValue, &_8); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_7); - ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); - zephir_concat_self(&sql, _7 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _9, "\""); + zephir_concat_self(&sql, _6 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -53859,9 +53887,9 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { - zend_bool _10; + zend_bool _9; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_10 = NULL, *_11, *_12, *_13 = NULL, *_14 = NULL, _15, *_16 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -53896,6 +53924,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZVAL_STRING(sql, "", 1); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sqlAlterTable); @@ -53920,10 +53950,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", _7, ";"); + ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", columnDefinition, ";"); zephir_concat_self(&sql, _5 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_3, column, "isnotnull", NULL, 0); @@ -53940,11 +53968,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _7, "\" SET NOT NULL;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP NOT NULL;"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_VSVS(_8, sqlAlterTable, " ALTER COLUMN \"", _7, "\" DROP NOT NULL;"); + zephir_concat_self(&sql, _8 TSRMLS_CC); } } ZEPHIR_CALL_METHOD(&_3, column, "getdefault", NULL, 0); @@ -53954,42 +53982,58 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = !zephir_is_true(_6); - if (_10) { + _9 = !zephir_is_true(_6); + if (_9) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); - _10 = !(ZEPHIR_IS_EMPTY(_7)); + _9 = !(ZEPHIR_IS_EMPTY(_7)); } - if (_10) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + if (_9) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); + ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _10, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_8)) { + if (zephir_is_true(_7)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); - zephir_fast_strtoupper(_11, defaultValue); - if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_fast_strtoupper(_11, columnDefinition); + ZEPHIR_INIT_VAR(_12); + zephir_fast_strtoupper(_12, defaultValue); + if (zephir_memnstr_str(_11, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 238)) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_VAR(_13); + ZEPHIR_CONCAT_SVSV(_13, " ALTER COLUMN \"", _10, "\" SET DEFAULT ", _8); + zephir_concat_self(&sql, _13 TSRMLS_CC); + } else if (zephir_memnstr_str(_12, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 240)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _13 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_13); - ZVAL_STRING(&_13, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + ZEPHIR_SINIT_VAR(_15); + ZVAL_STRING(&_15, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_16, "addcslashes", NULL, 143, defaultValue, &_15); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_15); - ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); - zephir_concat_self(&sql, _15 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT \"", _16, "\""); + zephir_concat_self(&sql, _13 TSRMLS_CC); } } } @@ -54367,12 +54411,12 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; - HashTable *_1, *_16, *_21; - HashPosition _0, _15, _20; + zephir_fcall_cache_entry *_3 = NULL, *_12 = NULL; + HashTable *_1, *_16, *_22; + HashPosition _0, _15, _21; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, *columnDefinition = NULL, **_2, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, *_20 = NULL, **_23, *_24; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -54406,7 +54450,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -54428,67 +54472,77 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 406); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); - ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", &_3, 0, column); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + ZEPHIR_CALL_METHOD(&_4, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); - ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); + ZEPHIR_CONCAT_SVSV(columnLine, "\"", _4, "\" ", columnDefinition); + ZEPHIR_CALL_METHOD(&_5, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_5)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_strtoupper(_6, columnDefinition); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + if (zephir_memnstr_str(_6, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 381)) { + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " DEFAULT ", _8); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 383)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_12, 143, defaultValue, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); - zephir_concat_self(&columnLine, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _11, "\""); + zephir_concat_self(&columnLine, _8 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_9)) { + if (zephir_is_true(_11)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); - zephir_check_call_status(); - if (zephir_is_true(_12)) { - } ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 401); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 404); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "PRIMARY KEY (", _4, ")"); + zephir_array_append(&createLines, _8, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 407); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 441); for ( ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS ; zephir_hash_move_forward_ex(_16, &_15) @@ -54501,102 +54555,102 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_INIT_NVAR(indexSql); ZVAL_STRING(indexSql, "", 1); if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { - ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_5, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, _4); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); + ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _4, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "getcolumnlist", NULL, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _11, ")"); } else { - ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); - zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "CREATE INDEX \"", _14, "\" ON ", _18); + zephir_concat_self(&indexSqlAfterCreate, _8 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_20, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_19, this_ptr, "getcolumnlist", NULL, 44, _20); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); - zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, " (", _19, ");"); + zephir_concat_self(&indexSqlAfterCreate, _9 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 438); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); + zephir_is_iterable(references, &_22, &_21, 0, 0, "phalcon/db/dialect/postgresql.zep", 466); for ( - ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS - ; zephir_hash_move_forward_ex(_21, &_20) + ; zephir_hash_get_current_data_ex(_22, (void**) &_23, &_21) == SUCCESS + ; zephir_hash_move_forward_ex(_22, &_21) ) { - ZEPHIR_GET_HVALUE(reference, _22); - ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + ZEPHIR_GET_HVALUE(reference, _23); + ZEPHIR_CALL_METHOD(&_4, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 44, _11); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _4, "\" FOREIGN KEY (", _5, ") REFERENCES "); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, _14, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _13 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "getcolumnlist", NULL, 44, _19); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " (", _18, ")"); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SV(_8, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 464); } } - ZEPHIR_INIT_NVAR(_7); - zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_VS(_11, _7, "\n)"); - zephir_concat_self(&sql, _11 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_join_str(_6, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_VS(_8, _6, "\n)"); + zephir_concat_self(&sql, _8 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_23); - ZEPHIR_CONCAT_SV(_23, " ", _3); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ", _4); + zephir_concat_self(&sql, _9 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_23); - ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_VAR(_24); + ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _24 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -54685,7 +54739,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 503); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -56119,13 +56173,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56138,13 +56196,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56157,13 +56219,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56176,13 +56242,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } @@ -56195,13 +56265,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } @@ -58865,13 +58939,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -62917,7 +62995,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_read_property_this(&httpOnly, this_ptr, SL("_httpOnly"), PH_NOISY_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); - if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { + if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_1, dependencyInjector, "getshared", NULL, 0, _2); @@ -69674,8 +69752,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -69744,11 +69824,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); + if (zephir_has_constructor(_8 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); + } ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -69966,8 +70048,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(SS("imagickpixel") TSRMLS_CC)); - 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) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70156,8 +70240,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70206,12 +70292,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(SS("imagick") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - 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(); + } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70337,8 +70427,10 @@ 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(SS("imagick") TSRMLS_CC)); - 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_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70408,8 +70500,10 @@ 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(SS("imagickdraw") TSRMLS_CC)); - 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_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70422,8 +70516,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); + if (zephir_has_constructor(_4 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70642,8 +70738,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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); @@ -70716,20 +70814,26 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); + if (zephir_has_constructor(pixel2 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(); + } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -73284,13 +73388,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73303,13 +73411,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -131574,7 +131686,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -131620,9 +131732,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131638,7 +131750,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131670,7 +131782,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -132009,7 +132121,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); RETURN_MM(); } @@ -132025,11 +132137,11 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -132065,7 +132177,7 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -132102,7 +132214,7 @@ static PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -132207,7 +132319,7 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -132263,7 +132375,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -132272,7 +132384,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -132310,19 +132422,19 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); zephir_check_call_status(); RETURN_MM(); @@ -133287,7 +133399,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); zephir_check_call_status(); RETURN_MM(); @@ -133622,9 +133734,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133841,9 +133953,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134058,9 +134170,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134301,7 +134413,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134310,7 +134422,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134453,7 +134565,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134847,7 +134959,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, 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", 43); @@ -134860,7 +134972,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 429, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -134896,7 +135008,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135054,7 +135166,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135087,22 +135199,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135200,12 +135312,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135236,7 +135348,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); zephir_check_call_status(); RETURN_MM(); @@ -135251,7 +135363,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, _0); zephir_check_call_status(); RETURN_MM(); @@ -135313,14 +135425,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135376,12 +135488,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 437, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135494,7 +135606,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135962,7 +136074,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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 438, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136576,7 +136688,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136609,7 +136721,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136679,7 +136791,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136712,7 +136824,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136829,7 +136941,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136893,7 +137005,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 441, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -136936,7 +137048,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -136991,6 +137103,142 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { +#ifdef HAVE_CONFIG_H +#endif + +#include + +#include +#include +#include + + + +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard) { + + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, CreditCard, phalcon, validation_validator_creditcard, phalcon_validation_validator_ce, phalcon_validation_validator_creditcard_method_entry, 0); + + return SUCCESS; + +} + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *field = NULL; + zval *validation, *field_param = NULL, *message = NULL, *label = NULL, *replacePairs, *value = NULL, *valid = NULL, *_0 = NULL, *_1 = NULL, *_2; + + 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)) { + 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)) { + zephir_get_strval(field, field_param); + } else { + ZEPHIR_INIT_VAR(field); + ZVAL_EMPTY_STRING(field); + } + + + ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 442, value); + zephir_check_call_status(); + if (!(zephir_is_true(valid))) { + ZEPHIR_INIT_VAR(_0); + ZVAL_STRING(_0, "label", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&label, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + if (ZEPHIR_IS_EMPTY(label)) { + ZEPHIR_CALL_METHOD(&label, validation, "getlabel", NULL, 0, field); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "message", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(replacePairs); + zephir_create_array(replacePairs, 1, 0 TSRMLS_CC); + zephir_array_update_string(&replacePairs, SL(":field"), &label, PH_COPY | PH_SEPARATE); + if (ZEPHIR_IS_EMPTY(message)) { + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, validation, "getdefaultmessage", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + object_init_ex(_0, phalcon_validation_message_ce); + ZEPHIR_CALL_FUNCTION(&_1, "strtr", NULL, 54, message, replacePairs); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + zephir_check_temp_parameter(_2); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); + zephir_check_call_status(); + RETURN_MM_BOOL(0); + } + RETURN_MM_BOOL(1); + +} + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { + + HashTable *_6; + HashPosition _5; + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_1 = NULL; + zval *digits = NULL, *_2 = NULL; + zval *number, *_0 = NULL, *digit = NULL, *position = NULL, *hash, *_3 = NULL, *_4 = NULL, **_7, *_8 = NULL, *result = NULL, *_9 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &number); + + ZEPHIR_INIT_VAR(hash); + ZVAL_STRING(hash, "", 1); + + + ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 70, number); + zephir_check_call_status(); + zephir_get_arrval(_2, _0); + ZEPHIR_CPY_WRT(digits, _2); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + zephir_check_call_status(); + zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); + for ( + ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zephir_hash_move_forward_ex(_6, &_5) + ) { + ZEPHIR_GET_HMKEY(position, _6, _5); + ZEPHIR_GET_HVALUE(digit, _7); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_safe_mod_zval_long(position, 2 TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_LONG(_8, (zephir_get_numberval(digit) * 2)); + } else { + ZEPHIR_CPY_WRT(_8, digit); + } + zephir_concat_self(&hash, _8 TSRMLS_CC); + } + ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); + zephir_check_call_status(); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _9); + zephir_check_call_status(); + RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); + +} + + + + #ifdef HAVE_CONFIG_H #endif @@ -137047,7 +137295,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137080,7 +137328,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137185,7 +137433,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137298,7 +137546,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137414,7 +137662,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137480,7 +137728,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137517,7 +137765,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137600,7 +137848,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137662,7 +137910,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137747,7 +137995,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137803,7 +138051,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -137921,7 +138169,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138054,7 +138302,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138160,7 +138408,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138253,7 +138501,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138369,7 +138617,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138503,7 +138751,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138540,7 +138788,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138681,7 +138929,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138786,7 +139034,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -139164,6 +139412,7 @@ zend_class_entry *phalcon_validation_validator_alnum_ce; zend_class_entry *phalcon_validation_validator_alpha_ce; zend_class_entry *phalcon_validation_validator_between_ce; zend_class_entry *phalcon_validation_validator_confirmation_ce; +zend_class_entry *phalcon_validation_validator_creditcard_ce; zend_class_entry *phalcon_validation_validator_digit_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; @@ -139560,6 +139809,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Validation_Validator_Alpha); ZEPHIR_INIT(Phalcon_Validation_Validator_Between); ZEPHIR_INIT(Phalcon_Validation_Validator_Confirmation); + ZEPHIR_INIT(Phalcon_Validation_Validator_CreditCard); ZEPHIR_INIT(Phalcon_Validation_Validator_Digit); ZEPHIR_INIT(Phalcon_Validation_Validator_Email); ZEPHIR_INIT(Phalcon_Validation_Validator_ExclusionIn); diff --git a/build/safe/phalcon.zep.h b/build/safe/phalcon.zep.h index 607167ec9eb..41c7cc4a29f 100644 --- a/build/safe/phalcon.zep.h +++ b/build/safe/phalcon.zep.h @@ -9778,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_INFO(0, sqlVariables) + ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_INFO(0, sqlBindTypes) + ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) @@ -18520,6 +18520,28 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_validator_confirmation_method_entry) { PHP_FE_END }; +zend_class_entry *phalcon_validation_validator_creditcard_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard); + +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate); +static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_validate, 0, 0, 2) + ZEND_ARG_OBJ_INFO(0, validation, Phalcon\\Validation, 0) + ZEND_ARG_INFO(0, field) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, 0, 0, 1) + ZEND_ARG_INFO(0, number) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_validation_validator_creditcard_method_entry) { + PHP_ME(Phalcon_Validation_Validator_CreditCard, validate, arginfo_phalcon_validation_validator_creditcard_validate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm, arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, ZEND_ACC_PRIVATE) + PHP_FE_END +}; + zend_class_entry *phalcon_validation_validator_digit_ce; ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_Digit); diff --git a/ext/config.m4 b/ext/config.m4 index 77b49595d3b..3219942b954 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -352,6 +352,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/validation/validator/alpha.zep.c phalcon/validation/validator/between.zep.c phalcon/validation/validator/confirmation.zep.c + phalcon/validation/validator/creditcard.zep.c phalcon/validation/validator/digit.zep.c phalcon/validation/validator/email.zep.c phalcon/validation/validator/exclusionin.zep.c diff --git a/ext/config.w32 b/ext/config.w32 index e6d5fb0a221..35982ce923a 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -94,6 +94,6 @@ if (PHP_PHALCON != "no") { 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 confirmation.zep.c digit.zep.c email.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_SOURCES(configure_module_dirname + "/phalcon/validation/validator", "alnum.zep.c alpha.zep.c between.zep.c confirmation.zep.c creditcard.zep.c digit.zep.c email.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"); } diff --git a/ext/phalcon.c b/ext/phalcon.c index 5184434f847..e1378dcb164 100644 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -371,6 +371,7 @@ zend_class_entry *phalcon_validation_validator_alnum_ce; zend_class_entry *phalcon_validation_validator_alpha_ce; zend_class_entry *phalcon_validation_validator_between_ce; zend_class_entry *phalcon_validation_validator_confirmation_ce; +zend_class_entry *phalcon_validation_validator_creditcard_ce; zend_class_entry *phalcon_validation_validator_digit_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; @@ -767,6 +768,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Validation_Validator_Alpha); ZEPHIR_INIT(Phalcon_Validation_Validator_Between); ZEPHIR_INIT(Phalcon_Validation_Validator_Confirmation); + ZEPHIR_INIT(Phalcon_Validation_Validator_CreditCard); ZEPHIR_INIT(Phalcon_Validation_Validator_Digit); ZEPHIR_INIT(Phalcon_Validation_Validator_Email); ZEPHIR_INIT(Phalcon_Validation_Validator_ExclusionIn); diff --git a/ext/phalcon.h b/ext/phalcon.h index 3b459f3cda9..a1f42ec19a6 100644 --- a/ext/phalcon.h +++ b/ext/phalcon.h @@ -347,6 +347,7 @@ #include "phalcon/validation/validator/alpha.zep.h" #include "phalcon/validation/validator/between.zep.h" #include "phalcon/validation/validator/confirmation.zep.h" +#include "phalcon/validation/validator/creditcard.zep.h" #include "phalcon/validation/validator/digit.zep.h" #include "phalcon/validation/validator/email.zep.h" #include "phalcon/validation/validator/exclusionin.zep.h" diff --git a/ext/phalcon/0__closure.zep.c b/ext/phalcon/0__closure.zep.c index e48ee4cee1c..ff1cd025ea6 100644 --- a/ext/phalcon/0__closure.zep.c +++ b/ext/phalcon/0__closure.zep.c @@ -39,7 +39,7 @@ PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 443, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); diff --git a/ext/phalcon/acl/adapter.zep.c b/ext/phalcon/acl/adapter.zep.c index 8ba37a8b253..fcf885ac71a 100644 --- a/ext/phalcon/acl/adapter.zep.c +++ b/ext/phalcon/acl/adapter.zep.c @@ -70,7 +70,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Adapter) { /** * Role which the list is checking if it's allowed to certain resource/access - * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveRole) { @@ -81,7 +80,6 @@ PHP_METHOD(Phalcon_Acl_Adapter, getActiveRole) { /** * Resource which the list is checking if some role can access it - * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveResource) { @@ -92,7 +90,6 @@ PHP_METHOD(Phalcon_Acl_Adapter, getActiveResource) { /** * Active access which the list is checking if some role can access it - * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveAccess) { diff --git a/ext/phalcon/acl/adapter/memory.zep.c b/ext/phalcon/acl/adapter/memory.zep.c index 7c0ae982e1d..68a8daa42d2 100644 --- a/ext/phalcon/acl/adapter/memory.zep.c +++ b/ext/phalcon/acl/adapter/memory.zep.c @@ -572,7 +572,7 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKeyAll, _2); - if (zephir_array_isset(accessList, accessKeyAll)) { + if (zephir_array_isset(internalAccess, accessKeyAll)) { zephir_update_property_array(this_ptr, SL("_access"), accessKeyAll, defaultAccess TSRMLS_CC); } } @@ -600,7 +600,7 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, roleName, "!", resourceName, "!*"); ZEPHIR_CPY_WRT(accessKey, _2); - if (!(zephir_array_isset(accessList, accessKey))) { + if (!(zephir_array_isset(internalAccess, accessKey))) { _11 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultAccess"), PH_NOISY_CC); zephir_update_property_array(this_ptr, SL("_access"), accessKey, _11 TSRMLS_CC); } diff --git a/ext/phalcon/acl/resource.zep.c b/ext/phalcon/acl/resource.zep.c index 4ade7a6f0b6..6b8ddb9144d 100644 --- a/ext/phalcon/acl/resource.zep.c +++ b/ext/phalcon/acl/resource.zep.c @@ -46,7 +46,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Resource) { /** * Resource name - * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getName) { @@ -57,7 +56,6 @@ PHP_METHOD(Phalcon_Acl_Resource, getName) { /** * Resource name - * @var string */ PHP_METHOD(Phalcon_Acl_Resource, __toString) { @@ -68,7 +66,6 @@ PHP_METHOD(Phalcon_Acl_Resource, __toString) { /** * Resource description - * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getDescription) { diff --git a/ext/phalcon/acl/role.zep.c b/ext/phalcon/acl/role.zep.c index 916a2ce2da5..cf40e13220e 100644 --- a/ext/phalcon/acl/role.zep.c +++ b/ext/phalcon/acl/role.zep.c @@ -47,7 +47,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Role) { /** * Role name - * @var string */ PHP_METHOD(Phalcon_Acl_Role, getName) { @@ -58,7 +57,6 @@ PHP_METHOD(Phalcon_Acl_Role, getName) { /** * Role name - * @var string */ PHP_METHOD(Phalcon_Acl_Role, __toString) { @@ -69,7 +67,6 @@ PHP_METHOD(Phalcon_Acl_Role, __toString) { /** * Role description - * @var string */ PHP_METHOD(Phalcon_Acl_Role, getDescription) { diff --git a/ext/phalcon/cache/backend/redis.zep.c b/ext/phalcon/cache/backend/redis.zep.c index e68d330c003..78b02a1f848 100644 --- a/ext/phalcon/cache/backend/redis.zep.c +++ b/ext/phalcon/cache/backend/redis.zep.c @@ -140,8 +140,10 @@ 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)) { diff --git a/ext/phalcon/db/adapter.zep.c b/ext/phalcon/db/adapter.zep.c index 06c791017af..85719e7d1f7 100644 --- a/ext/phalcon/db/adapter.zep.c +++ b/ext/phalcon/db/adapter.zep.c @@ -132,8 +132,6 @@ PHP_METHOD(Phalcon_Db_Adapter, getType) { /** * Active SQL bound parameter variables - * - * @var string */ PHP_METHOD(Phalcon_Db_Adapter, getSqlVariables) { @@ -246,11 +244,11 @@ PHP_METHOD(Phalcon_Db_Adapter, getDialect) { * * * //Getting first robot - * $robot = $connection->fecthOne("SELECT * FROM robots"); + * $robot = $connection->fetchOne("SELECT * FROM robots"); * print_r($robot); * * //Getting first robot with associative indexes only - * $robot = $connection->fecthOne("SELECT * FROM robots", Phalcon\Db::FETCH_ASSOC); + * $robot = $connection->fetchOne("SELECT * FROM robots", Phalcon\Db::FETCH_ASSOC); * print_r($robot); * */ diff --git a/ext/phalcon/db/column.zep.c b/ext/phalcon/db/column.zep.c index b04f83ebc59..7327c10f76e 100644 --- a/ext/phalcon/db/column.zep.c +++ b/ext/phalcon/db/column.zep.c @@ -284,8 +284,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Column) { /** * Column's name - * - * @var string */ PHP_METHOD(Phalcon_Db_Column, getName) { @@ -296,8 +294,6 @@ PHP_METHOD(Phalcon_Db_Column, getName) { /** * Schema which table related is - * - * @var string */ PHP_METHOD(Phalcon_Db_Column, getSchemaName) { @@ -308,8 +304,6 @@ PHP_METHOD(Phalcon_Db_Column, getSchemaName) { /** * Column data type - * - * @var int|string */ PHP_METHOD(Phalcon_Db_Column, getType) { @@ -320,8 +314,6 @@ PHP_METHOD(Phalcon_Db_Column, getType) { /** * Column data type reference - * - * @var int */ PHP_METHOD(Phalcon_Db_Column, getTypeReference) { @@ -332,8 +324,6 @@ PHP_METHOD(Phalcon_Db_Column, getTypeReference) { /** * Column data type values - * - * @var array|string */ PHP_METHOD(Phalcon_Db_Column, getTypeValues) { @@ -344,8 +334,6 @@ PHP_METHOD(Phalcon_Db_Column, getTypeValues) { /** * Integer column size - * - * @var int */ PHP_METHOD(Phalcon_Db_Column, getSize) { @@ -356,8 +344,6 @@ PHP_METHOD(Phalcon_Db_Column, getSize) { /** * Integer column number scale - * - * @var int */ PHP_METHOD(Phalcon_Db_Column, getScale) { diff --git a/ext/phalcon/db/dialect/mysql.zep.c b/ext/phalcon/db/dialect/mysql.zep.c index ba3284b96d7..a9051ded8bd 100644 --- a/ext/phalcon/db/dialect/mysql.zep.c +++ b/ext/phalcon/db/dialect/mysql.zep.c @@ -311,7 +311,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, getColumnDefinition) { PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *afterPosition = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -373,9 +373,14 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "isfirst", NULL, 0); + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_9, column, "isfirst", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" FIRST") TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&afterPosition, column, "getafterposition", NULL, 0); @@ -396,7 +401,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, addColumn) { PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4, _5, *_6 = NULL, *_7, *_8 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -444,7 +449,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 262)) { + if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 266)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_VAR(_5); @@ -461,6 +466,11 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, modifyColumn) { if (zephir_is_true(_6)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_8)) { + zephir_concat_self_str(&sql, SL(" AUTO_INCREMENT") TSRMLS_CC); + } RETURN_CCTOR(sql); } @@ -897,7 +907,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 368); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/mysql.zep", 377); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -917,7 +927,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { } ZEPHIR_INIT_VAR(createLines); array_init(createLines); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 431); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 440); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -936,7 +946,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 397)) { + if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/mysql.zep", 406)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { ZEPHIR_SINIT_NVAR(_8); @@ -963,11 +973,11 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { if (zephir_is_true(_13)) { zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 425); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 434); } ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 453); + zephir_is_iterable(indexes, &_15, &_14, 0, 0, "phalcon/db/dialect/mysql.zep", 462); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -1000,12 +1010,12 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SVSVS(indexSql, "KEY `", indexName, "` (", _12, ")"); } } - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 451); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 460); } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 475); + zephir_is_iterable(references, &_19, &_18, 0, 0, "phalcon/db/dialect/mysql.zep", 484); for ( ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS ; zephir_hash_move_forward_ex(_19, &_18) @@ -1039,7 +1049,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createTable) { ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); zephir_concat_self(&referenceSql, _11 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 473); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 482); } } ZEPHIR_INIT_NVAR(_7); @@ -1148,7 +1158,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 511); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/mysql.zep", 520); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -1553,7 +1563,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(engine)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SV(_0, "ENGINE=", engine); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 651); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); } } ZEPHIR_OBS_VAR(autoIncrement); @@ -1561,7 +1571,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(autoIncrement)) { ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "AUTO_INCREMENT=", autoIncrement); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 660); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 669); } } ZEPHIR_OBS_VAR(tableCollation); @@ -1569,13 +1579,13 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { if (zephir_is_true(tableCollation)) { ZEPHIR_INIT_VAR(collationParts); zephir_fast_explode_str(collationParts, SL("_"), tableCollation, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 670 TSRMLS_CC); + zephir_array_fetch_long(&_1, collationParts, 0, PH_NOISY | PH_READONLY, "phalcon/db/dialect/mysql.zep", 679 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_0); ZEPHIR_CONCAT_SV(_0, "DEFAULT CHARSET=", _1); - zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 670); + zephir_array_append(&tableOptions, _0, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 679); ZEPHIR_INIT_VAR(_2); ZEPHIR_CONCAT_SV(_2, "COLLATE=", tableCollation); - zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 671); + zephir_array_append(&tableOptions, _2, PH_SEPARATE, "phalcon/db/dialect/mysql.zep", 680); } } if (zephir_fast_count_int(tableOptions TSRMLS_CC)) { diff --git a/ext/phalcon/db/dialect/postgresql.zep.c b/ext/phalcon/db/dialect/postgresql.zep.c index 7a63d81225b..3a99627297d 100644 --- a/ext/phalcon/db/dialect/postgresql.zep.c +++ b/ext/phalcon/db/dialect/postgresql.zep.c @@ -139,14 +139,13 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 14)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); - } - if (zephir_is_true(size)) { - ZEPHIR_CALL_METHOD(&_0, column, "getsize", NULL, 0); + ZEPHIR_CALL_METHOD(&_0, column, "isautoincrement", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_1); - ZEPHIR_CONCAT_SVS(_1, "(", _0, ")"); - zephir_concat_self(&columnSql, _1 TSRMLS_CC); + if (zephir_is_true(_0)) { + zephir_concat_self_str(&columnSql, SL("BIGSERIAL") TSRMLS_CC); + } else { + zephir_concat_self_str(&columnSql, SL("BIGINT") TSRMLS_CC); + } } break; } @@ -164,7 +163,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } if (ZEPHIR_IS_LONG(columnType, 8)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("SMALLINT(1)") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("BOOLEAN") TSRMLS_CC); } break; } @@ -177,7 +176,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZEPHIR_CONCAT_SV(_1, "Unrecognized PostgreSQL data type at column ", _0); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 149 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/db/dialect/postgresql.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -187,7 +186,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { if (Z_TYPE_P(typeValues) == IS_ARRAY) { ZEPHIR_INIT_VAR(valueSql); ZVAL_STRING(valueSql, "", 1); - zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 160); + zephir_is_iterable(typeValues, &_4, &_3, 0, 0, "phalcon/db/dialect/postgresql.zep", 161); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -232,7 +231,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, _5, *_6 = NULL, *_7; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *sql, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2, *_3 = NULL, *_4, *_5, *_6 = NULL, *_7, _8, *_9 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -262,37 +261,53 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { } + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sql); ZEPHIR_CONCAT_SVS(sql, "ALTER TABLE ", _0, " ADD COLUMN "); ZEPHIR_CALL_METHOD(&_1, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZEPHIR_CONCAT_SVSV(_3, "\"", _1, "\" ", _2); - zephir_concat_self(&sql, _3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SVSV(_2, "\"", _1, "\" ", columnDefinition); + zephir_concat_self(&sql, _2 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_3, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(defaultValue))) { + if (zephir_is_true(_3)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); - zephir_fast_strtoupper(_4, defaultValue); - if (zephir_memnstr_str(_4, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 183)) { + zephir_fast_strtoupper(_4, columnDefinition); + ZEPHIR_INIT_VAR(_5); + zephir_fast_strtoupper(_5, defaultValue); + if (zephir_memnstr_str(_4, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 185)) { + ZEPHIR_INIT_VAR(_6); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_6); + ZVAL_STRING(_6, "false", 1); + } + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, " DEFAULT ", _6); + zephir_concat_self(&sql, _7 TSRMLS_CC); + } else if (zephir_memnstr_str(_5, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 187)) { zephir_concat_self_str(&sql, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_VAR(_5); - ZVAL_STRING(&_5, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_6, "addcslashes", NULL, 143, defaultValue, &_5); + ZEPHIR_SINIT_VAR(_8); + ZVAL_STRING(&_8, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", NULL, 143, defaultValue, &_8); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_7); - ZEPHIR_CONCAT_SVS(_7, " DEFAULT \"", _6, "\""); - zephir_concat_self(&sql, _7 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, " DEFAULT \"", _9, "\""); + zephir_concat_self(&sql, _6 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_6, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_9)) { zephir_concat_self_str(&sql, SL(" NOT NULL") TSRMLS_CC); } RETURN_CCTOR(sql); @@ -304,9 +319,9 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { */ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { - zend_bool _10; + zend_bool _9; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_11, *_12 = NULL, _13, *_14 = NULL, *_15; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql, *sqlAlterTable, *defaultValue = NULL, *columnDefinition = NULL, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_10 = NULL, *_11, *_12, *_13 = NULL, *_14 = NULL, _15, *_16 = NULL; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -341,6 +356,8 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZVAL_STRING(sql, "", 1); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", NULL, 0, column); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(sqlAlterTable); @@ -365,10 +382,8 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumndefinition", NULL, 0, column); - zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", _7, ";"); + ZEPHIR_CONCAT_VSVSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _6, "\" TYPE ", columnDefinition, ";"); zephir_concat_self(&sql, _5 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_3, column, "isnotnull", NULL, 0); @@ -385,11 +400,11 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _7, "\" SET NOT NULL;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP NOT NULL;"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_VAR(_8); + ZEPHIR_CONCAT_VSVS(_8, sqlAlterTable, " ALTER COLUMN \"", _7, "\" DROP NOT NULL;"); + zephir_concat_self(&sql, _8 TSRMLS_CC); } } ZEPHIR_CALL_METHOD(&_3, column, "getdefault", NULL, 0); @@ -399,42 +414,58 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { if (!ZEPHIR_IS_EQUAL(_3, _4)) { ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); zephir_check_call_status(); - _10 = !zephir_is_true(_6); - if (_10) { + _9 = !zephir_is_true(_6); + if (_9) { ZEPHIR_CALL_METHOD(&_7, currentColumn, "getdefault", NULL, 0); zephir_check_call_status(); - _10 = !(ZEPHIR_IS_EMPTY(_7)); + _9 = !(ZEPHIR_IS_EMPTY(_7)); } - if (_10) { - ZEPHIR_CALL_METHOD(&_8, column, "getname", NULL, 0); + if (_9) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _8, "\" DROP DEFAULT;"); + ZEPHIR_CONCAT_VSVS(_5, sqlAlterTable, " ALTER COLUMN \"", _10, "\" DROP DEFAULT;"); zephir_concat_self(&sql, _5 TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_8, column, "hasdefault", NULL, 0); + ZEPHIR_CALL_METHOD(&_7, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_8)) { + if (zephir_is_true(_7)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); - zephir_fast_strtoupper(_11, defaultValue); - if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 233)) { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + zephir_fast_strtoupper(_11, columnDefinition); + ZEPHIR_INIT_VAR(_12); + zephir_fast_strtoupper(_12, defaultValue); + if (zephir_memnstr_str(_11, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 238)) { + ZEPHIR_CALL_METHOD(&_10, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_VSVS(_9, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT CURRENT_TIMESTAMP"); - zephir_concat_self(&sql, _9 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_VAR(_13); + ZEPHIR_CONCAT_SVSV(_13, " ALTER COLUMN \"", _10, "\" SET DEFAULT ", _8); + zephir_concat_self(&sql, _13 TSRMLS_CC); + } else if (zephir_memnstr_str(_12, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 240)) { + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT CURRENT_TIMESTAMP"); + zephir_concat_self(&sql, _13 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_SINIT_VAR(_13); - ZVAL_STRING(&_13, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_14, "addcslashes", NULL, 143, defaultValue, &_13); + ZEPHIR_SINIT_VAR(_15); + ZVAL_STRING(&_15, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_16, "addcslashes", NULL, 143, defaultValue, &_15); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_15); - ZEPHIR_CONCAT_VSVSVS(_15, sqlAlterTable, " ALTER COLUMN \"", _12, "\" SET DEFAULT \"", _14, "\""); - zephir_concat_self(&sql, _15 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_13); + ZEPHIR_CONCAT_VSVSVS(_13, sqlAlterTable, " ALTER COLUMN \"", _14, "\" SET DEFAULT \"", _16, "\""); + zephir_concat_self(&sql, _13 TSRMLS_CC); } } } @@ -836,12 +867,12 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { */ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { - zephir_fcall_cache_entry *_5 = NULL, *_10 = NULL; - HashTable *_1, *_16, *_21; - HashPosition _0, _15, _20; + zephir_fcall_cache_entry *_3 = NULL, *_12 = NULL; + HashTable *_1, *_16, *_22; + HashPosition _0, _15, _21; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_7 = NULL, _8 = zval_used_for_init, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, **_22, *_23 = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *temporary = NULL, *options, *table = NULL, *createLines, *columns, *column = NULL, *indexes, *index = NULL, *reference = NULL, *references, *indexName = NULL, *indexSql = NULL, *indexSqlAfterCreate, *sql, *columnLine = NULL, *indexType = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *defaultValue = NULL, *primaryColumns, *columnDefinition = NULL, **_2, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, _10 = zval_used_for_init, *_11 = NULL, *_13 = NULL, *_14 = NULL, **_17, *_18 = NULL, *_19 = NULL, *_20 = NULL, **_23, *_24; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -875,7 +906,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 342); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); return; } ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); @@ -897,67 +928,77 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(createLines); ZEPHIR_INIT_VAR(primaryColumns); array_init(primaryColumns); - zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 402); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 406); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); - ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", &_3, 0, column); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + ZEPHIR_CALL_METHOD(&_4, column, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(columnLine); - ZEPHIR_CONCAT_SVSV(columnLine, "\"", _3, "\" ", _4); - ZEPHIR_CALL_METHOD(&_6, column, "hasdefault", NULL, 0); + ZEPHIR_CONCAT_SVSV(columnLine, "\"", _4, "\" ", columnDefinition); + ZEPHIR_CALL_METHOD(&_5, column, "hasdefault", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_6)) { + if (zephir_is_true(_5)) { ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_strtoupper(_6, columnDefinition); ZEPHIR_INIT_NVAR(_7); zephir_fast_strtoupper(_7, defaultValue); - if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 372)) { + if (zephir_memnstr_str(_6, SL("BOOLEAN"), "phalcon/db/dialect/postgresql.zep", 381)) { + ZEPHIR_INIT_LNVAR(_8); + if (zephir_is_true(defaultValue)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "true", 1); + } else { + ZEPHIR_INIT_NVAR(_8); + ZVAL_STRING(_8, "false", 1); + } + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " DEFAULT ", _8); + zephir_concat_self(&sql, _9 TSRMLS_CC); + } else if (zephir_memnstr_str(_7, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/postgresql.zep", 383)) { zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); } else { - ZEPHIR_SINIT_NVAR(_8); - ZVAL_STRING(&_8, "\"", 0); - ZEPHIR_CALL_FUNCTION(&_9, "addcslashes", &_10, 143, defaultValue, &_8); + ZEPHIR_SINIT_NVAR(_10); + ZVAL_STRING(&_10, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_11, "addcslashes", &_12, 143, defaultValue, &_10); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " DEFAULT \"", _9, "\""); - zephir_concat_self(&columnLine, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " DEFAULT \"", _11, "\""); + zephir_concat_self(&columnLine, _8 TSRMLS_CC); } } - ZEPHIR_CALL_METHOD(&_9, column, "isnotnull", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, column, "isnotnull", NULL, 0); zephir_check_call_status(); - if (zephir_is_true(_9)) { + if (zephir_is_true(_11)) { zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_12, column, "isautoincrement", NULL, 0); - zephir_check_call_status(); - if (zephir_is_true(_12)) { - } ZEPHIR_CALL_METHOD(&_13, column, "isprimary", NULL, 0); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_CALL_METHOD(&_14, column, "getname", NULL, 0); zephir_check_call_status(); - zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 397); + zephir_array_append(&primaryColumns, _14, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 401); } - zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 400); + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 404); } if (!(ZEPHIR_IS_EMPTY(primaryColumns))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, primaryColumns); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, "PRIMARY KEY (", _3, ")"); - zephir_array_append(&createLines, _11, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 403); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "PRIMARY KEY (", _4, ")"); + zephir_array_append(&createLines, _8, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 407); } ZEPHIR_INIT_VAR(indexSqlAfterCreate); ZVAL_STRING(indexSqlAfterCreate, "", 1); ZEPHIR_OBS_VAR(indexes); if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { - zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 437); + zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/dialect/postgresql.zep", 441); for ( ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS ; zephir_hash_move_forward_ex(_16, &_15) @@ -970,102 +1011,102 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_INIT_NVAR(indexSql); ZVAL_STRING(indexSql, "", 1); if (ZEPHIR_IS_STRING(indexName, "PRIMARY")) { - ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_5, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 44, _4); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _3, ")"); + ZEPHIR_CONCAT_SVS(indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", _4, ")"); } else { if (!(ZEPHIR_IS_EMPTY(indexType))) { - ZEPHIR_CALL_METHOD(&_9, index, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", NULL, 44, _9); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "getcolumnlist", NULL, 44, _13); zephir_check_call_status(); ZEPHIR_INIT_NVAR(indexSql); - ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _6, ")"); + ZEPHIR_CONCAT_SVSVSVS(indexSql, "CONSTRAINT \"", indexName, "\" ", indexType, " (", _11, ")"); } else { - ZEPHIR_CALL_METHOD(&_12, index, "getname", NULL, 0); + ZEPHIR_CALL_METHOD(&_14, index, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, tableName, schemaName); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "preparetable", NULL, 145, tableName, schemaName); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVSV(_11, "CREATE INDEX \"", _12, "\" ON ", _13); - zephir_concat_self(&indexSqlAfterCreate, _11 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18, index, "getcolumns", NULL, 0); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "CREATE INDEX \"", _14, "\" ON ", _18); + zephir_concat_self(&indexSqlAfterCreate, _8 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_20, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14, this_ptr, "getcolumnlist", NULL, 44, _18); + ZEPHIR_CALL_METHOD(&_19, this_ptr, "getcolumnlist", NULL, 44, _20); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SVS(_19, " (", _14, ");"); - zephir_concat_self(&indexSqlAfterCreate, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SVS(_9, " (", _19, ");"); + zephir_concat_self(&indexSqlAfterCreate, _9 TSRMLS_CC); } } if (!(ZEPHIR_IS_EMPTY(indexSql))) { - zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 434); + zephir_array_append(&createLines, indexSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 438); } } } ZEPHIR_OBS_VAR(references); if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { - zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/postgresql.zep", 462); + zephir_is_iterable(references, &_22, &_21, 0, 0, "phalcon/db/dialect/postgresql.zep", 466); for ( - ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS - ; zephir_hash_move_forward_ex(_21, &_20) + ; zephir_hash_get_current_data_ex(_22, (void**) &_23, &_21) == SUCCESS + ; zephir_hash_move_forward_ex(_22, &_21) ) { - ZEPHIR_GET_HVALUE(reference, _22); - ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + ZEPHIR_GET_HVALUE(reference, _23); + ZEPHIR_CALL_METHOD(&_4, reference, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + ZEPHIR_CALL_METHOD(&_11, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 44, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 44, _11); zephir_check_call_status(); ZEPHIR_INIT_NVAR(referenceSql); - ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _3, "\" FOREIGN KEY (", _4, ") REFERENCES "); - ZEPHIR_CALL_METHOD(&_12, reference, "getreferencedtable", NULL, 0); + ZEPHIR_CONCAT_SVSVS(referenceSql, "CONSTRAINT \"", _4, "\" FOREIGN KEY (", _5, ") REFERENCES "); + ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9, this_ptr, "preparetable", NULL, 145, _12, schemaName); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "preparetable", NULL, 145, _14, schemaName); zephir_check_call_status(); - zephir_concat_self(&referenceSql, _9 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_14, reference, "getreferencedcolumns", NULL, 0); + zephir_concat_self(&referenceSql, _13 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_19, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getcolumnlist", NULL, 44, _14); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "getcolumnlist", NULL, 44, _19); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SVS(_11, " (", _13, ")"); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, " (", _18, ")"); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onDelete))) { - ZEPHIR_INIT_LNVAR(_19); - ZEPHIR_CONCAT_SV(_19, " ON DELETE ", onDelete); - zephir_concat_self(&referenceSql, _19 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _9 TSRMLS_CC); } ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(onUpdate))) { - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_SV(_11, " ON UPDATE ", onUpdate); - zephir_concat_self(&referenceSql, _11 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SV(_8, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _8 TSRMLS_CC); } - zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 460); + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/postgresql.zep", 464); } } - ZEPHIR_INIT_NVAR(_7); - zephir_fast_join_str(_7, SL(",\n\t"), createLines TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_11); - ZEPHIR_CONCAT_VS(_11, _7, "\n)"); - zephir_concat_self(&sql, _11 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_6); + zephir_fast_join_str(_6, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_VS(_8, _6, "\n)"); + zephir_concat_self(&sql, _8 TSRMLS_CC); if (zephir_array_isset_string(definition, SS("options"))) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_gettableoptions", NULL, 0, definition); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_gettableoptions", NULL, 0, definition); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_23); - ZEPHIR_CONCAT_SV(_23, " ", _3); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_9); + ZEPHIR_CONCAT_SV(_9, " ", _4); + zephir_concat_self(&sql, _9 TSRMLS_CC); } - ZEPHIR_INIT_LNVAR(_23); - ZEPHIR_CONCAT_SV(_23, ";", indexSqlAfterCreate); - zephir_concat_self(&sql, _23 TSRMLS_CC); + ZEPHIR_INIT_VAR(_24); + ZEPHIR_CONCAT_SV(_24, ";", indexSqlAfterCreate); + zephir_concat_self(&sql, _24 TSRMLS_CC); RETURN_CCTOR(sql); } @@ -1160,7 +1201,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 499); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 503); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); diff --git a/ext/phalcon/db/index.zep.c b/ext/phalcon/db/index.zep.c index 1e155418faa..c5f4648876d 100644 --- a/ext/phalcon/db/index.zep.c +++ b/ext/phalcon/db/index.zep.c @@ -60,8 +60,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Index) { /** * Index name - * - * @var string */ PHP_METHOD(Phalcon_Db_Index, getName) { @@ -72,8 +70,6 @@ PHP_METHOD(Phalcon_Db_Index, getName) { /** * Index columns - * - * @var array */ PHP_METHOD(Phalcon_Db_Index, getColumns) { @@ -84,8 +80,6 @@ PHP_METHOD(Phalcon_Db_Index, getColumns) { /** * Index type - * - * @var string */ PHP_METHOD(Phalcon_Db_Index, getType) { diff --git a/ext/phalcon/db/profiler/item.zep.c b/ext/phalcon/db/profiler/item.zep.c index af0142a85f5..0145f4b87ea 100644 --- a/ext/phalcon/db/profiler/item.zep.c +++ b/ext/phalcon/db/profiler/item.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/operators.h" +#include "kernel/memory.h" /** @@ -68,25 +68,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { /** * SQL statement related to the profile - * - * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * SQL statement related to the profile - * - * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { @@ -97,25 +97,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { /** * SQL variables related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * SQL variables related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { @@ -126,25 +126,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { /** * SQL bind types related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * SQL bind types related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { @@ -155,25 +155,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { /** * Timestamp when the profile started - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } /** * Timestamp when the profile started - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { @@ -184,25 +184,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { /** * Timestamp when the profile ended - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } /** * Timestamp when the profile ended - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getFinalTime) { diff --git a/ext/phalcon/db/profiler/item.zep.h b/ext/phalcon/db/profiler/item.zep.h index dccba4e6d5b..8e21ab80b61 100644 --- a/ext/phalcon/db/profiler/item.zep.h +++ b/ext/phalcon/db/profiler/item.zep.h @@ -20,11 +20,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_INFO(0, sqlVariables) + ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_INFO(0, sqlBindTypes) + ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) diff --git a/ext/phalcon/db/rawvalue.zep.c b/ext/phalcon/db/rawvalue.zep.c index 2e769732a97..3225b55035c 100644 --- a/ext/phalcon/db/rawvalue.zep.c +++ b/ext/phalcon/db/rawvalue.zep.c @@ -48,8 +48,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_RawValue) { /** * Raw value without quoting or formating - * - * @var string */ PHP_METHOD(Phalcon_Db_RawValue, getValue) { @@ -60,8 +58,6 @@ PHP_METHOD(Phalcon_Db_RawValue, getValue) { /** * Raw value without quoting or formating - * - * @var string */ PHP_METHOD(Phalcon_Db_RawValue, __toString) { diff --git a/ext/phalcon/db/reference.zep.c b/ext/phalcon/db/reference.zep.c index 06fe9973532..d285b1d87e6 100644 --- a/ext/phalcon/db/reference.zep.c +++ b/ext/phalcon/db/reference.zep.c @@ -92,8 +92,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Reference) { /** * Constraint name - * - * @var string */ PHP_METHOD(Phalcon_Db_Reference, getName) { @@ -118,8 +116,6 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedSchema) { /** * Referenced Table - * - * @var string */ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { @@ -130,8 +126,6 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { /** * Local reference columns - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getColumns) { @@ -142,8 +136,6 @@ PHP_METHOD(Phalcon_Db_Reference, getColumns) { /** * Referenced Columns - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { @@ -154,8 +146,6 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { /** * ON DELETE - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { @@ -166,8 +156,6 @@ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { /** * ON UPDATE - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnUpdate) { diff --git a/ext/phalcon/events/event.zep.c b/ext/phalcon/events/event.zep.c index 878d567ade2..e52f7a888ce 100644 --- a/ext/phalcon/events/event.zep.c +++ b/ext/phalcon/events/event.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/operators.h" +#include "kernel/memory.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" @@ -69,25 +69,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { /** * Event type - * - * @var string */ PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * Event type - * - * @var string */ PHP_METHOD(Phalcon_Events_Event, getType) { @@ -98,8 +98,6 @@ PHP_METHOD(Phalcon_Events_Event, getType) { /** * Event source - * - * @var object */ PHP_METHOD(Phalcon_Events_Event, getSource) { @@ -110,8 +108,6 @@ PHP_METHOD(Phalcon_Events_Event, getSource) { /** * Event data - * - * @var mixed */ PHP_METHOD(Phalcon_Events_Event, setData) { @@ -127,8 +123,6 @@ PHP_METHOD(Phalcon_Events_Event, setData) { /** * Event data - * - * @var mixed */ PHP_METHOD(Phalcon_Events_Event, getData) { @@ -139,8 +133,6 @@ PHP_METHOD(Phalcon_Events_Event, getData) { /** * Is event cancelable? - * - * @var boolean */ PHP_METHOD(Phalcon_Events_Event, getCancelable) { diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index ad43da308e6..6e6beec9e53 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -436,7 +436,7 @@ PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_read_property_this(&httpOnly, this_ptr, SL("_httpOnly"), PH_NOISY_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); - if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { + if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_1, dependencyInjector, "getshared", NULL, 0, _2); diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 9ef3368f74e..31a21167c72 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -79,7 +79,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Request_File) { } /** - * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getError) { @@ -89,7 +88,6 @@ PHP_METHOD(Phalcon_Http_Request_File, getError) { } /** - * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getKey) { @@ -99,7 +97,6 @@ PHP_METHOD(Phalcon_Http_Request_File, getKey) { } /** - * @var string */ PHP_METHOD(Phalcon_Http_Request_File, getExtension) { diff --git a/ext/phalcon/image/adapter.zep.c b/ext/phalcon/image/adapter.zep.c index b585452e5ab..3831da754cf 100644 --- a/ext/phalcon/image/adapter.zep.c +++ b/ext/phalcon/image/adapter.zep.c @@ -89,8 +89,6 @@ PHP_METHOD(Phalcon_Image_Adapter, getRealpath) { /** * Image width - * - * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { @@ -101,8 +99,6 @@ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { /** * Image height - * - * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { @@ -114,9 +110,9 @@ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { /** * Image type * + * * Driver dependent * - * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getType) { @@ -127,8 +123,6 @@ PHP_METHOD(Phalcon_Image_Adapter, getType) { /** * Image mime type - * - * @var string */ PHP_METHOD(Phalcon_Image_Adapter, getMime) { diff --git a/ext/phalcon/image/adapter/imagick.zep.c b/ext/phalcon/image/adapter/imagick.zep.c index 601ebbf3386..89bc7c332c3 100644 --- a/ext/phalcon/image/adapter/imagick.zep.c +++ b/ext/phalcon/image/adapter/imagick.zep.c @@ -129,8 +129,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -199,11 +201,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); + if (zephir_has_constructor(_8 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); + } ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -438,8 +442,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - 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) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -637,8 +643,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -687,12 +695,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - 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(); + } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -821,8 +833,10 @@ 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(SS("imagick") TSRMLS_CC)); - 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_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -895,8 +909,10 @@ 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(SS("imagickdraw") TSRMLS_CC)); - 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_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -909,8 +925,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); + if (zephir_has_constructor(_4 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -1134,8 +1152,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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); @@ -1211,20 +1231,26 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - 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(SS("imagickpixel") TSRMLS_CC)); - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); + if (zephir_has_constructor(pixel2 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - 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(); + } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index 3eeea9f37d3..f5ede627402 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -199,6 +199,7 @@ PHP_METHOD(Phalcon_Loader, getNamespaces) { /** * Register directories in which "not found" classes could be found + * @deprecated From Phalcon 2.1.0 version has been removed support for prefixes strategy */ PHP_METHOD(Phalcon_Loader, registerPrefixes) { @@ -237,6 +238,7 @@ PHP_METHOD(Phalcon_Loader, registerPrefixes) { /** * Returns the prefixes currently registered in the autoloader + * @deprecated From Phalcon 2.1.0 version has been removed support for prefixes strategy */ PHP_METHOD(Phalcon_Loader, getPrefixes) { @@ -460,7 +462,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(namespaces); zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); if (Z_TYPE_P(namespaces) == IS_ARRAY) { - zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 347); + zephir_is_iterable(namespaces, &_2, &_1, 0, 0, "phalcon/loader.zep", 349); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -482,7 +484,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 344); + zephir_is_iterable(extensions, &_7, &_6, 0, 0, "phalcon/loader.zep", 346); for ( ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS ; zephir_hash_move_forward_ex(_7, &_6) @@ -522,7 +524,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(prefixes); zephir_read_property_this(&prefixes, this_ptr, SL("_prefixes"), PH_NOISY_CC); if (Z_TYPE_P(prefixes) == IS_ARRAY) { - zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 402); + zephir_is_iterable(prefixes, &_15, &_14, 0, 0, "phalcon/loader.zep", 404); for ( ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS ; zephir_hash_move_forward_ex(_15, &_14) @@ -553,7 +555,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 399); + zephir_is_iterable(extensions, &_21, &_20, 0, 0, "phalcon/loader.zep", 401); for ( ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS ; zephir_hash_move_forward_ex(_21, &_20) @@ -601,7 +603,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_OBS_VAR(directories); zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); if (Z_TYPE_P(directories) == IS_ARRAY) { - zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 464); + zephir_is_iterable(directories, &_26, &_25, 0, 0, "phalcon/loader.zep", 466); for ( ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS ; zephir_hash_move_forward_ex(_26, &_25) @@ -611,7 +613,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_fast_trim(_0, directory, ds, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_NVAR(fixedDirectory); ZEPHIR_CONCAT_VV(fixedDirectory, _0, ds); - zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 463); + zephir_is_iterable(extensions, &_29, &_28, 0, 0, "phalcon/loader.zep", 465); for ( ; zephir_hash_get_current_data_ex(_29, (void**) &_30, &_28) == SUCCESS ; zephir_hash_move_forward_ex(_29, &_28) diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index 7c69b0b640a..4358cc20845 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/operators.h" +#include "kernel/memory.h" #include "kernel/string.h" #include "kernel/fcall.h" #include "kernel/concat.h" @@ -50,8 +50,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Formatter_Line) { /** * Default date format - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { @@ -62,25 +60,25 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { /** * Default date format - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * Format applied to each message - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { @@ -91,18 +89,20 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { /** * Format applied to each message - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/logger/item.zep.c b/ext/phalcon/logger/item.zep.c index 59238352c41..df992b18e7f 100644 --- a/ext/phalcon/logger/item.zep.c +++ b/ext/phalcon/logger/item.zep.c @@ -56,8 +56,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Item) { /** * Log type - * - * @var integer */ PHP_METHOD(Phalcon_Logger_Item, getType) { @@ -68,8 +66,6 @@ PHP_METHOD(Phalcon_Logger_Item, getType) { /** * Log message - * - * @var string */ PHP_METHOD(Phalcon_Logger_Item, getMessage) { @@ -80,8 +76,6 @@ PHP_METHOD(Phalcon_Logger_Item, getMessage) { /** * Log timestamp - * - * @var integer */ PHP_METHOD(Phalcon_Logger_Item, getTime) { diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index e04508cdd5f..68dc0e781f6 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -164,7 +164,6 @@ PHP_METHOD(Phalcon_Mvc_View, getCurrentRenderLevel) { } /** - * @var array */ PHP_METHOD(Phalcon_Mvc_View, getRegisteredEngines) { diff --git a/ext/phalcon/queue/beanstalk.zep.c b/ext/phalcon/queue/beanstalk.zep.c index fb296d839cc..4359a3be5d3 100644 --- a/ext/phalcon/queue/beanstalk.zep.c +++ b/ext/phalcon/queue/beanstalk.zep.c @@ -507,7 +507,7 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -560,9 +560,9 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -578,7 +578,7 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -613,7 +613,7 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/registry.zep.c b/ext/phalcon/registry.zep.c index fd805a66b2d..73a681bc92b 100644 --- a/ext/phalcon/registry.zep.c +++ b/ext/phalcon/registry.zep.c @@ -244,7 +244,7 @@ PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -263,7 +263,7 @@ PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -282,7 +282,7 @@ PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -301,7 +301,7 @@ PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -320,7 +320,7 @@ PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -383,7 +383,7 @@ PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -411,7 +411,7 @@ PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); zephir_check_call_status(); RETURN_MM(); @@ -439,7 +439,7 @@ PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/security.zep.c b/ext/phalcon/security.zep.c index e1656e9df33..3799e90d624 100644 --- a/ext/phalcon/security.zep.c +++ b/ext/phalcon/security.zep.c @@ -191,7 +191,7 @@ PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -286,7 +286,7 @@ PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -313,7 +313,7 @@ PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -356,7 +356,7 @@ PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -426,7 +426,7 @@ PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -471,7 +471,7 @@ PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -661,7 +661,7 @@ PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); diff --git a/ext/phalcon/security/random.zep.c b/ext/phalcon/security/random.zep.c index 7a5d402b340..991ec25151e 100644 --- a/ext/phalcon/security/random.zep.c +++ b/ext/phalcon/security/random.zep.c @@ -136,7 +136,7 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); zephir_check_call_status(); RETURN_MM(); } @@ -152,11 +152,11 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -206,7 +206,7 @@ PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -261,7 +261,7 @@ PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -420,7 +420,7 @@ PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -488,7 +488,7 @@ PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -497,7 +497,7 @@ PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -535,19 +535,19 @@ PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/session/adapter/libmemcached.zep.c b/ext/phalcon/session/adapter/libmemcached.zep.c index 114a30b07d8..fc245b2aa14 100644 --- a/ext/phalcon/session/adapter/libmemcached.zep.c +++ b/ext/phalcon/session/adapter/libmemcached.zep.c @@ -170,9 +170,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/adapter/memcache.zep.c b/ext/phalcon/session/adapter/memcache.zep.c index 4a2bef3bcab..f6389f74301 100644 --- a/ext/phalcon/session/adapter/memcache.zep.c +++ b/ext/phalcon/session/adapter/memcache.zep.c @@ -158,9 +158,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/adapter/redis.zep.c b/ext/phalcon/session/adapter/redis.zep.c index 07cb9322a05..52e9df2e326 100644 --- a/ext/phalcon/session/adapter/redis.zep.c +++ b/ext/phalcon/session/adapter/redis.zep.c @@ -157,9 +157,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/bag.zep.c b/ext/phalcon/session/bag.zep.c index 1d6a90da36a..3399ba65a68 100644 --- a/ext/phalcon/session/bag.zep.c +++ b/ext/phalcon/session/bag.zep.c @@ -541,7 +541,7 @@ PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/tag.zep.c b/ext/phalcon/tag.zep.c index 788943de3d3..22fd7adf98c 100644 --- a/ext/phalcon/tag.zep.c +++ b/ext/phalcon/tag.zep.c @@ -869,7 +869,7 @@ PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -899,7 +899,7 @@ PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -929,7 +929,7 @@ PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -955,7 +955,7 @@ PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -985,7 +985,7 @@ PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1015,7 +1015,7 @@ PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1041,7 +1041,7 @@ PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1067,7 +1067,7 @@ PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1093,7 +1093,7 @@ PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1119,7 +1119,7 @@ PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1145,7 +1145,7 @@ PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1175,7 +1175,7 @@ PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1205,7 +1205,7 @@ PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1235,7 +1235,7 @@ PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1261,7 +1261,7 @@ PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1287,7 +1287,7 @@ PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1313,7 +1313,7 @@ PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1343,7 +1343,7 @@ PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1378,7 +1378,7 @@ PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1415,7 +1415,7 @@ PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1452,7 +1452,7 @@ PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -2180,7 +2180,7 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -2249,7 +2249,7 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); diff --git a/ext/phalcon/tag/select.zep.c b/ext/phalcon/tag/select.zep.c index 9207dddfe38..3b4cfe0af18 100644 --- a/ext/phalcon/tag/select.zep.c +++ b/ext/phalcon/tag/select.zep.c @@ -151,7 +151,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -160,7 +160,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -318,7 +318,7 @@ PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index b8b309f43fb..bf3b33ef6ca 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -194,13 +194,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -211,13 +211,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -228,7 +228,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -237,7 +237,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); break; } @@ -245,21 +245,21 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -509,17 +509,17 @@ PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -632,24 +632,24 @@ PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -661,7 +661,7 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } diff --git a/ext/phalcon/translate/adapter/csv.zep.c b/ext/phalcon/translate/adapter/csv.zep.c index 415074fdf61..a0bb871a397 100644 --- a/ext/phalcon/translate/adapter/csv.zep.c +++ b/ext/phalcon/translate/adapter/csv.zep.c @@ -60,7 +60,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, 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", 43); @@ -73,7 +73,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 429, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -117,7 +117,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; diff --git a/ext/phalcon/translate/adapter/gettext.zep.c b/ext/phalcon/translate/adapter/gettext.zep.c index 149576046be..1003aebe70b 100644 --- a/ext/phalcon/translate/adapter/gettext.zep.c +++ b/ext/phalcon/translate/adapter/gettext.zep.c @@ -76,7 +76,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -117,22 +117,22 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -245,12 +245,12 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -290,7 +290,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); zephir_check_call_status(); RETURN_MM(); @@ -310,7 +310,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, _0); zephir_check_call_status(); RETURN_MM(); @@ -381,14 +381,14 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -450,12 +450,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 437, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); diff --git a/ext/phalcon/translate/adapter/nativearray.zep.c b/ext/phalcon/translate/adapter/nativearray.zep.c index 54e771dd4c1..c598fe7ba9f 100644 --- a/ext/phalcon/translate/adapter/nativearray.zep.c +++ b/ext/phalcon/translate/adapter/nativearray.zep.c @@ -55,7 +55,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index 81fa1c7d7c2..ef712cb945d 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -380,7 +380,7 @@ PHP_METHOD(Phalcon_Validation, setDefaultMessages) { ZEPHIR_INIT_VAR(defaultMessages); - zephir_create_array(defaultMessages, 23, 0 TSRMLS_CC); + zephir_create_array(defaultMessages, 24, 0 TSRMLS_CC); add_assoc_stringl_ex(defaultMessages, SS("Alnum"), SL("Field :field must contain only letters and numbers"), 1); add_assoc_stringl_ex(defaultMessages, SS("Alpha"), SL("Field :field must contain only letters"), 1); add_assoc_stringl_ex(defaultMessages, SS("Between"), SL("Field :field must be within the range of :min to :max"), 1); @@ -404,6 +404,7 @@ PHP_METHOD(Phalcon_Validation, setDefaultMessages) { add_assoc_stringl_ex(defaultMessages, SS("TooShort"), SL("Field :field must be at least :min characters long"), 1); add_assoc_stringl_ex(defaultMessages, SS("Uniqueness"), SL("Field :field must be unique"), 1); add_assoc_stringl_ex(defaultMessages, SS("Url"), SL("Field :field must be a url"), 1); + add_assoc_stringl_ex(defaultMessages, SS("CreditCard"), SL("Field :field is not valid for a credit card number"), 1); ZEPHIR_INIT_VAR(_0); zephir_fast_array_merge(_0, &(defaultMessages), &(messages) TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_defaultMessages"), _0 TSRMLS_CC); @@ -442,7 +443,7 @@ PHP_METHOD(Phalcon_Validation, getDefaultMessage) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultMessages"), PH_NOISY_CC); - zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 278 TSRMLS_CC); + zephir_array_fetch(&_2, _1, type, PH_NOISY | PH_READONLY, "phalcon/validation.zep", 279 TSRMLS_CC); RETURN_CTOR(_2); } @@ -550,7 +551,7 @@ PHP_METHOD(Phalcon_Validation, bind) { if (Z_TYPE_P(entity) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 335); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Entity must be an object", "phalcon/validation.zep", 336); return; } _0 = Z_TYPE_P(data) != IS_ARRAY; @@ -558,7 +559,7 @@ PHP_METHOD(Phalcon_Validation, bind) { _0 = Z_TYPE_P(data) != IS_OBJECT; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 339); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_validation_exception_ce, "Data to validate must be an array or object", "phalcon/validation.zep", 340); return; } zephir_update_property_this(this_ptr, SL("_entity"), entity TSRMLS_CC); @@ -618,7 +619,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { _1 = Z_TYPE_P(data) != IS_OBJECT; } if (_1) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 386); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "There is no data to validate", "phalcon/validation.zep", 387); return; } ZEPHIR_OBS_VAR(values); @@ -632,7 +633,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(data) == IS_ARRAY) { if (zephir_array_isset(data, field)) { ZEPHIR_OBS_NVAR(value); - zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 400 TSRMLS_CC); + zephir_array_fetch(&value, data, field, PH_NOISY, "phalcon/validation.zep", 401 TSRMLS_CC); } } else if (Z_TYPE_P(data) == IS_OBJECT) { if (zephir_isset_property_zval(data, field TSRMLS_CC)) { @@ -655,7 +656,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_2, 1); 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", 423); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "A dependency injector is required to obtain the 'filter' service", "phalcon/validation.zep", 424); return; } } @@ -665,7 +666,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { zephir_check_temp_parameter(_3); zephir_check_call_status(); if (Z_TYPE_P(filterService) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 429); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Returned 'filter' service is invalid", "phalcon/validation.zep", 430); return; } ZEPHIR_RETURN_CALL_METHOD(filterService, "sanitize", NULL, 0, value, fieldFilters); diff --git a/ext/phalcon/validation/message.zep.c b/ext/phalcon/validation/message.zep.c index 49032533a89..c08beacc24f 100644 --- a/ext/phalcon/validation/message.zep.c +++ b/ext/phalcon/validation/message.zep.c @@ -274,7 +274,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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 438, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/validation/validator/alnum.zep.c b/ext/phalcon/validation/validator/alnum.zep.c index b98ff9f2a7a..1d7d5bbe138 100644 --- a/ext/phalcon/validation/validator/alnum.zep.c +++ b/ext/phalcon/validation/validator/alnum.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/alpha.zep.c b/ext/phalcon/validation/validator/alpha.zep.c index 6b961f8cc0f..435b3218130 100644 --- a/ext/phalcon/validation/validator/alpha.zep.c +++ b/ext/phalcon/validation/validator/alpha.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/between.zep.c b/ext/phalcon/validation/validator/between.zep.c index 90a878b2813..1fdcf4a60c1 100644 --- a/ext/phalcon/validation/validator/between.zep.c +++ b/ext/phalcon/validation/validator/between.zep.c @@ -131,7 +131,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/confirmation.zep.c b/ext/phalcon/validation/validator/confirmation.zep.c index f3cf5b4da8d..01a724de959 100644 --- a/ext/phalcon/validation/validator/confirmation.zep.c +++ b/ext/phalcon/validation/validator/confirmation.zep.c @@ -77,7 +77,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 441, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -120,7 +120,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/creditcard.zep.c b/ext/phalcon/validation/validator/creditcard.zep.c new file mode 100644 index 00000000000..b12a78a1ab7 --- /dev/null +++ b/ext/phalcon/validation/validator/creditcard.zep.c @@ -0,0 +1,166 @@ + +#ifdef HAVE_CONFIG_H +#include "../../../ext_config.h" +#endif + +#include +#include "../../../php_ext.h" +#include "../../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/fcall.h" +#include "kernel/operators.h" +#include "kernel/memory.h" +#include "kernel/array.h" +#include "ext/spl/spl_exceptions.h" +#include "kernel/exception.h" +#include "kernel/hash.h" + + +/** + * Phalcon\Validation\Validator\CreditCard + * + * Checks if a value has a valid creditcard number + * + * + *use Phalcon\Validation\Validator\CreditCard as CreditCardValidator; + * + *$validator->add('creditcard', new CreditCardValidator(array( + * 'message' => 'The credit card number is not valid' + *))); + * + */ +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard) { + + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, CreditCard, phalcon, validation_validator_creditcard, phalcon_validation_validator_ce, phalcon_validation_validator_creditcard_method_entry, 0); + + return SUCCESS; + +} + +/** + * Executes the validation + */ +PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { + + int ZEPHIR_LAST_CALL_STATUS; + zval *field = NULL; + zval *validation, *field_param = NULL, *message = NULL, *label = NULL, *replacePairs, *value = NULL, *valid = NULL, *_0 = NULL, *_1 = NULL, *_2; + + 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)) { + 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)) { + zephir_get_strval(field, field_param); + } else { + ZEPHIR_INIT_VAR(field); + ZVAL_EMPTY_STRING(field); + } + + + ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 442, value); + zephir_check_call_status(); + if (!(zephir_is_true(valid))) { + ZEPHIR_INIT_VAR(_0); + ZVAL_STRING(_0, "label", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&label, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + if (ZEPHIR_IS_EMPTY(label)) { + ZEPHIR_CALL_METHOD(&label, validation, "getlabel", NULL, 0, field); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "message", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, this_ptr, "getoption", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(replacePairs); + zephir_create_array(replacePairs, 1, 0 TSRMLS_CC); + zephir_array_update_string(&replacePairs, SL(":field"), &label, PH_COPY | PH_SEPARATE); + if (ZEPHIR_IS_EMPTY(message)) { + ZEPHIR_INIT_NVAR(_0); + ZVAL_STRING(_0, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&message, validation, "getdefaultmessage", NULL, 0, _0); + zephir_check_temp_parameter(_0); + zephir_check_call_status(); + } + ZEPHIR_INIT_NVAR(_0); + object_init_ex(_0, phalcon_validation_message_ce); + ZEPHIR_CALL_FUNCTION(&_1, "strtr", NULL, 54, message, replacePairs); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(_2); + ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + zephir_check_temp_parameter(_2); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); + zephir_check_call_status(); + RETURN_MM_BOOL(0); + } + RETURN_MM_BOOL(1); + +} + +/** + * is a simple checksum formula used to validate a variety of identification numbers + * @param string number + * @return boolean + */ +PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { + + HashTable *_6; + HashPosition _5; + int ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_1 = NULL; + zval *digits = NULL, *_2 = NULL; + zval *number, *_0 = NULL, *digit = NULL, *position = NULL, *hash, *_3 = NULL, *_4 = NULL, **_7, *_8 = NULL, *result = NULL, *_9 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &number); + + ZEPHIR_INIT_VAR(hash); + ZVAL_STRING(hash, "", 1); + + + ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 70, number); + zephir_check_call_status(); + zephir_get_arrval(_2, _0); + ZEPHIR_CPY_WRT(digits, _2); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + zephir_check_call_status(); + zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); + for ( + ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zephir_hash_move_forward_ex(_6, &_5) + ) { + ZEPHIR_GET_HMKEY(position, _6, _5); + ZEPHIR_GET_HVALUE(digit, _7); + ZEPHIR_INIT_LNVAR(_8); + if (zephir_safe_mod_zval_long(position, 2 TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_8); + ZVAL_LONG(_8, (zephir_get_numberval(digit) * 2)); + } else { + ZEPHIR_CPY_WRT(_8, digit); + } + zephir_concat_self(&hash, _8 TSRMLS_CC); + } + ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); + zephir_check_call_status(); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _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/creditcard.zep.h b/ext/phalcon/validation/validator/creditcard.zep.h new file mode 100644 index 00000000000..6bb1888c203 --- /dev/null +++ b/ext/phalcon/validation/validator/creditcard.zep.h @@ -0,0 +1,22 @@ + +extern zend_class_entry *phalcon_validation_validator_creditcard_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_CreditCard); + +PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate); +PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_validate, 0, 0, 2) + ZEND_ARG_OBJ_INFO(0, validation, Phalcon\\Validation, 0) + ZEND_ARG_INFO(0, field) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, 0, 0, 1) + ZEND_ARG_INFO(0, number) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_validation_validator_creditcard_method_entry) { + PHP_ME(Phalcon_Validation_Validator_CreditCard, validate, arginfo_phalcon_validation_validator_creditcard_validate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm, arginfo_phalcon_validation_validator_creditcard_verifybyluhnalgorithm, ZEND_ACC_PRIVATE) + PHP_FE_END +}; diff --git a/ext/phalcon/validation/validator/digit.zep.c b/ext/phalcon/validation/validator/digit.zep.c index 82bcbc18d8c..b720000fe0e 100644 --- a/ext/phalcon/validation/validator/digit.zep.c +++ b/ext/phalcon/validation/validator/digit.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 441, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/email.zep.c b/ext/phalcon/validation/validator/email.zep.c index a577f7fd586..4344311b54e 100644 --- a/ext/phalcon/validation/validator/email.zep.c +++ b/ext/phalcon/validation/validator/email.zep.c @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/exclusionin.zep.c b/ext/phalcon/validation/validator/exclusionin.zep.c index ce375d01d42..a7faded7997 100644 --- a/ext/phalcon/validation/validator/exclusionin.zep.c +++ b/ext/phalcon/validation/validator/exclusionin.zep.c @@ -126,7 +126,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/file.zep.c b/ext/phalcon/validation/validator/file.zep.c index 340682df313..ba801a2ef43 100644 --- a/ext/phalcon/validation/validator/file.zep.c +++ b/ext/phalcon/validation/validator/file.zep.c @@ -136,7 +136,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -239,7 +239,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -322,7 +322,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -384,7 +384,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -469,7 +469,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -525,7 +525,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); diff --git a/ext/phalcon/validation/validator/identical.zep.c b/ext/phalcon/validation/validator/identical.zep.c index 6d032c04220..03fd9e96656 100644 --- a/ext/phalcon/validation/validator/identical.zep.c +++ b/ext/phalcon/validation/validator/identical.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/inclusionin.zep.c b/ext/phalcon/validation/validator/inclusionin.zep.c index 5ab4b7e0022..555d488b52f 100644 --- a/ext/phalcon/validation/validator/inclusionin.zep.c +++ b/ext/phalcon/validation/validator/inclusionin.zep.c @@ -146,7 +146,7 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/numericality.zep.c b/ext/phalcon/validation/validator/numericality.zep.c index 1b93abd93e3..f60a23f1f7b 100644 --- a/ext/phalcon/validation/validator/numericality.zep.c +++ b/ext/phalcon/validation/validator/numericality.zep.c @@ -118,7 +118,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); diff --git a/ext/phalcon/validation/validator/presenceof.zep.c b/ext/phalcon/validation/validator/presenceof.zep.c index 61946931bb0..60156592593 100644 --- a/ext/phalcon/validation/validator/presenceof.zep.c +++ b/ext/phalcon/validation/validator/presenceof.zep.c @@ -104,7 +104,7 @@ PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/regex.zep.c b/ext/phalcon/validation/validator/regex.zep.c index a4f5eeb9ce7..135e0d19a86 100644 --- a/ext/phalcon/validation/validator/regex.zep.c +++ b/ext/phalcon/validation/validator/regex.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); diff --git a/ext/phalcon/validation/validator/stringlength.zep.c b/ext/phalcon/validation/validator/stringlength.zep.c index d9d9e8171fe..08d718a223f 100644 --- a/ext/phalcon/validation/validator/stringlength.zep.c +++ b/ext/phalcon/validation/validator/stringlength.zep.c @@ -152,7 +152,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -189,7 +189,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index e7cae8aed92..9b2dd7220a8 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -162,7 +162,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/url.zep.c b/ext/phalcon/validation/validator/url.zep.c index 34f3c2d1498..a4f24510cc0 100644 --- a/ext/phalcon/validation/validator/url.zep.c +++ b/ext/phalcon/validation/validator/url.zep.c @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/version.zep.c b/ext/phalcon/version.zep.c index 08275c82cb5..67a6954ef3c 100644 --- a/ext/phalcon/version.zep.c +++ b/ext/phalcon/version.zep.c @@ -178,7 +178,7 @@ PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 442, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 442, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); zephir_check_call_status(); break; } From d46863d2a8ea7f03142ae9b2a6a0e6baaa4d5778 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Tue, 15 Sep 2015 09:10:06 -0500 Subject: [PATCH 54/60] Fixes #10945 --- phalcon/mvc/view/engine/volt/compiler.zep | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phalcon/mvc/view/engine/volt/compiler.zep b/phalcon/mvc/view/engine/volt/compiler.zep index e9aadc1756d..edee34e0a26 100644 --- a/phalcon/mvc/view/engine/volt/compiler.zep +++ b/phalcon/mvc/view/engine/volt/compiler.zep @@ -1932,7 +1932,9 @@ class Compiler implements InjectionAwareInterface /** * Bind the closure to the $this object allowing to call services, only PHP >= 5.4 */ - if !is_php_version("5.3") { + if is_php_version("5.3") { + let code .= " ?>"; + } else { let code .= macroName . " = \\Closure::bind(" . macroName . ", $this); ?>"; } From 464b979d6ba20cbfc75517702d77a5c4b24bf4aa Mon Sep 17 00:00:00 2001 From: Sid Roberts Date: Thu, 17 Sep 2015 07:37:08 +0100 Subject: [PATCH 55/60] Messages in Forms\Element are now always available (#10953) --- phalcon/forms/element.zep | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/phalcon/forms/element.zep b/phalcon/forms/element.zep index e80a11cfabb..00005f02c73 100755 --- a/phalcon/forms/element.zep +++ b/phalcon/forms/element.zep @@ -64,6 +64,7 @@ abstract class Element implements ElementInterface if typeof attributes == "array" { let this->_attributes = attributes; } + let this->_messages = new Group(); } /** @@ -484,16 +485,7 @@ abstract class Element implements ElementInterface */ public function getMessages() -> { - var messages; - - let messages = this->_messages; - if typeof messages == "object" { - return messages; - } - - let messages = new Group(), - this->_messages = messages; - return messages; + return this->_messages; } /** @@ -501,17 +493,7 @@ abstract class Element implements ElementInterface */ public function hasMessages() -> boolean { - var messages; - - /** - * Get the related form - */ - let messages = this->_messages; - if typeof messages == "object" { - return count(messages) > 0; - } - - return false; + return count(this->_messages) > 0; } /** @@ -528,14 +510,7 @@ abstract class Element implements ElementInterface */ public function appendMessage( message) -> { - var messages; - - let messages = this->_messages; - if typeof messages != "object" { - let this->_messages = new Group(); - let messages = this->_messages; - } - messages->appendMessage(message); + this->_messages->appendMessage(message); return this; } From 893966b729e300828539b9577751481cf7b867ae Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Thu, 17 Sep 2015 12:08:30 -0500 Subject: [PATCH 56/60] Regenerating ext/ --- ext/phalcon/0__closure.zep.c | 2 +- ext/phalcon/acl/adapter.zep.c | 3 + ext/phalcon/acl/resource.zep.c | 3 + ext/phalcon/acl/role.zep.c | 3 + ext/phalcon/cache/backend/redis.zep.c | 6 +- ext/phalcon/db/adapter.zep.c | 2 + ext/phalcon/db/column.zep.c | 14 ++ ext/phalcon/db/dialect/sqlite.zep.c | 181 +++++++++++++++++- ext/phalcon/db/index.zep.c | 6 + ext/phalcon/db/profiler/item.zep.c | 66 +++---- ext/phalcon/db/profiler/item.zep.h | 4 +- ext/phalcon/db/rawvalue.zep.c | 4 + ext/phalcon/db/reference.zep.c | 12 ++ ext/phalcon/events/event.zep.c | 22 ++- ext/phalcon/forms/element.zep.c | 65 ++----- ext/phalcon/forms/form.zep.c | 6 +- ext/phalcon/http/request/file.zep.c | 3 + ext/phalcon/image/adapter.zep.c | 8 +- ext/phalcon/image/adapter/imagick.zep.c | 90 ++++----- ext/phalcon/logger/formatter/line.zep.c | 26 +-- ext/phalcon/logger/item.zep.c | 6 + ext/phalcon/mvc/view.zep.c | 1 + .../mvc/view/engine/volt/compiler.zep.c | 82 ++++---- ext/phalcon/queue/beanstalk.zep.c | 10 +- ext/phalcon/registry.zep.c | 18 +- ext/phalcon/security.zep.c | 14 +- ext/phalcon/security/random.zep.c | 22 +-- .../session/adapter/libmemcached.zep.c | 4 +- ext/phalcon/session/adapter/memcache.zep.c | 4 +- ext/phalcon/session/adapter/redis.zep.c | 4 +- ext/phalcon/session/bag.zep.c | 2 +- ext/phalcon/tag.zep.c | 46 ++--- ext/phalcon/tag/select.zep.c | 10 +- ext/phalcon/text.zep.c | 40 ++-- ext/phalcon/translate/adapter/csv.zep.c | 6 +- ext/phalcon/translate/adapter/gettext.zep.c | 26 +-- .../translate/adapter/nativearray.zep.c | 2 +- ext/phalcon/validation.zep.c | 2 +- ext/phalcon/validation/message.zep.c | 2 +- ext/phalcon/validation/message/group.zep.c | 2 +- ext/phalcon/validation/validator/alnum.zep.c | 4 +- ext/phalcon/validation/validator/alpha.zep.c | 4 +- .../validation/validator/between.zep.c | 2 +- .../validation/validator/confirmation.zep.c | 4 +- .../validation/validator/creditcard.zep.c | 8 +- ext/phalcon/validation/validator/digit.zep.c | 4 +- ext/phalcon/validation/validator/email.zep.c | 2 +- .../validation/validator/exclusionin.zep.c | 2 +- ext/phalcon/validation/validator/file.zep.c | 14 +- .../validation/validator/identical.zep.c | 2 +- .../validation/validator/inclusionin.zep.c | 2 +- .../validation/validator/numericality.zep.c | 2 +- .../validation/validator/presenceof.zep.c | 2 +- ext/phalcon/validation/validator/regex.zep.c | 2 +- .../validation/validator/stringlength.zep.c | 4 +- .../validation/validator/uniqueness.zep.c | 2 +- ext/phalcon/validation/validator/url.zep.c | 2 +- ext/phalcon/version.zep.c | 4 +- 58 files changed, 543 insertions(+), 352 deletions(-) diff --git a/ext/phalcon/0__closure.zep.c b/ext/phalcon/0__closure.zep.c index ff1cd025ea6..741f40b90a2 100644 --- a/ext/phalcon/0__closure.zep.c +++ b/ext/phalcon/0__closure.zep.c @@ -39,7 +39,7 @@ PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); diff --git a/ext/phalcon/acl/adapter.zep.c b/ext/phalcon/acl/adapter.zep.c index fcf885ac71a..8ba37a8b253 100644 --- a/ext/phalcon/acl/adapter.zep.c +++ b/ext/phalcon/acl/adapter.zep.c @@ -70,6 +70,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Adapter) { /** * Role which the list is checking if it's allowed to certain resource/access + * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveRole) { @@ -80,6 +81,7 @@ PHP_METHOD(Phalcon_Acl_Adapter, getActiveRole) { /** * Resource which the list is checking if some role can access it + * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveResource) { @@ -90,6 +92,7 @@ PHP_METHOD(Phalcon_Acl_Adapter, getActiveResource) { /** * Active access which the list is checking if some role can access it + * @var mixed */ PHP_METHOD(Phalcon_Acl_Adapter, getActiveAccess) { diff --git a/ext/phalcon/acl/resource.zep.c b/ext/phalcon/acl/resource.zep.c index 6b8ddb9144d..4ade7a6f0b6 100644 --- a/ext/phalcon/acl/resource.zep.c +++ b/ext/phalcon/acl/resource.zep.c @@ -46,6 +46,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Resource) { /** * Resource name + * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getName) { @@ -56,6 +57,7 @@ PHP_METHOD(Phalcon_Acl_Resource, getName) { /** * Resource name + * @var string */ PHP_METHOD(Phalcon_Acl_Resource, __toString) { @@ -66,6 +68,7 @@ PHP_METHOD(Phalcon_Acl_Resource, __toString) { /** * Resource description + * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getDescription) { diff --git a/ext/phalcon/acl/role.zep.c b/ext/phalcon/acl/role.zep.c index cf40e13220e..916a2ce2da5 100644 --- a/ext/phalcon/acl/role.zep.c +++ b/ext/phalcon/acl/role.zep.c @@ -47,6 +47,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Role) { /** * Role name + * @var string */ PHP_METHOD(Phalcon_Acl_Role, getName) { @@ -57,6 +58,7 @@ PHP_METHOD(Phalcon_Acl_Role, getName) { /** * Role name + * @var string */ PHP_METHOD(Phalcon_Acl_Role, __toString) { @@ -67,6 +69,7 @@ PHP_METHOD(Phalcon_Acl_Role, __toString) { /** * Role description + * @var string */ PHP_METHOD(Phalcon_Acl_Role, getDescription) { diff --git a/ext/phalcon/cache/backend/redis.zep.c b/ext/phalcon/cache/backend/redis.zep.c index 78b02a1f848..e68d330c003 100644 --- a/ext/phalcon/cache/backend/redis.zep.c +++ b/ext/phalcon/cache/backend/redis.zep.c @@ -140,10 +140,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { diff --git a/ext/phalcon/db/adapter.zep.c b/ext/phalcon/db/adapter.zep.c index 85719e7d1f7..db0dc4fe93c 100644 --- a/ext/phalcon/db/adapter.zep.c +++ b/ext/phalcon/db/adapter.zep.c @@ -132,6 +132,8 @@ PHP_METHOD(Phalcon_Db_Adapter, getType) { /** * Active SQL bound parameter variables + * + * @var string */ PHP_METHOD(Phalcon_Db_Adapter, getSqlVariables) { diff --git a/ext/phalcon/db/column.zep.c b/ext/phalcon/db/column.zep.c index 7327c10f76e..b04f83ebc59 100644 --- a/ext/phalcon/db/column.zep.c +++ b/ext/phalcon/db/column.zep.c @@ -284,6 +284,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Column) { /** * Column's name + * + * @var string */ PHP_METHOD(Phalcon_Db_Column, getName) { @@ -294,6 +296,8 @@ PHP_METHOD(Phalcon_Db_Column, getName) { /** * Schema which table related is + * + * @var string */ PHP_METHOD(Phalcon_Db_Column, getSchemaName) { @@ -304,6 +308,8 @@ PHP_METHOD(Phalcon_Db_Column, getSchemaName) { /** * Column data type + * + * @var int|string */ PHP_METHOD(Phalcon_Db_Column, getType) { @@ -314,6 +320,8 @@ PHP_METHOD(Phalcon_Db_Column, getType) { /** * Column data type reference + * + * @var int */ PHP_METHOD(Phalcon_Db_Column, getTypeReference) { @@ -324,6 +332,8 @@ PHP_METHOD(Phalcon_Db_Column, getTypeReference) { /** * Column data type values + * + * @var array|string */ PHP_METHOD(Phalcon_Db_Column, getTypeValues) { @@ -334,6 +344,8 @@ PHP_METHOD(Phalcon_Db_Column, getTypeValues) { /** * Integer column size + * + * @var int */ PHP_METHOD(Phalcon_Db_Column, getSize) { @@ -344,6 +356,8 @@ PHP_METHOD(Phalcon_Db_Column, getSize) { /** * Integer column number scale + * + * @var int */ PHP_METHOD(Phalcon_Db_Column, getScale) { diff --git a/ext/phalcon/db/dialect/sqlite.zep.c b/ext/phalcon/db/dialect/sqlite.zep.c index 28663ec649a..9dd3a41cf13 100644 --- a/ext/phalcon/db/dialect/sqlite.zep.c +++ b/ext/phalcon/db/dialect/sqlite.zep.c @@ -66,7 +66,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { do { if (ZEPHIR_IS_LONG(type, 0)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("INT") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("INTEGER") TSRMLS_CC); } break; } @@ -102,7 +102,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } if (ZEPHIR_IS_LONG(type, 4)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("DATETIME") TSRMLS_CC); } break; } @@ -666,8 +666,13 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { */ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { + zephir_fcall_cache_entry *_5 = NULL, *_14 = NULL, *_19 = NULL; + HashTable *_1, *_17, *_21; + HashPosition _0, _16, _20; + int ZEPHIR_LAST_CALL_STATUS; + zend_bool hasPrimary, _7, _9; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *columns, *table = NULL, *temporary = NULL, *options, *createLines, *columnLine = NULL, *column = NULL, *indexes, *index = NULL, *indexName = NULL, *indexType = NULL, *references, *reference = NULL, *defaultValue = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *sql, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL, *_11 = NULL, _12 = zval_used_for_init, *_13 = NULL, *_15 = NULL, **_18, **_22; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -699,8 +704,172 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); - return; + ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(temporary); + ZVAL_BOOL(temporary, 0); + ZEPHIR_OBS_VAR(options); + if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { + ZEPHIR_OBS_NVAR(temporary); + zephir_array_isset_string_fetch(&temporary, options, SS("temporary"), 0 TSRMLS_CC); + } + ZEPHIR_OBS_VAR(columns); + if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 271); + return; + } + ZEPHIR_INIT_VAR(sql); + if (zephir_is_true(temporary)) { + ZEPHIR_CONCAT_SVS(sql, "CREATE TEMPORARY TABLE ", table, " (\n\t"); + } else { + ZEPHIR_CONCAT_SVS(sql, "CREATE TABLE ", table, " (\n\t"); + } + hasPrimary = 0; + ZEPHIR_INIT_VAR(createLines); + array_init(createLines); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/sqlite.zep", 329); + for ( + ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zephir_hash_move_forward_ex(_1, &_0) + ) { + ZEPHIR_GET_HVALUE(column, _2); + ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(columnLine); + ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); + ZEPHIR_CALL_METHOD(&_6, column, "isprimary", NULL, 0); + zephir_check_call_status(); + _7 = zephir_is_true(_6); + if (_7) { + _7 = !hasPrimary; + } + if (_7) { + zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); + hasPrimary = 1; + } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + _9 = zephir_is_true(_8); + if (_9) { + _9 = hasPrimary; + } + if (_9) { + zephir_concat_self_str(&columnLine, SL(" AUTOINCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_10, column, "hasdefault", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_10)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 309)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_12); + ZVAL_STRING(&_12, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_13, "addcslashes", &_14, 143, defaultValue, &_12); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, " DEFAULT \"", _13, "\""); + zephir_concat_self(&columnLine, _15 TSRMLS_CC); + } + } + ZEPHIR_CALL_METHOD(&_13, column, "isnotnull", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_13)) { + zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); + } + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 323); + } + ZEPHIR_OBS_VAR(indexes); + if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { + zephir_is_iterable(indexes, &_17, &_16, 0, 0, "phalcon/db/dialect/sqlite.zep", 345); + for ( + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) + ) { + ZEPHIR_GET_HVALUE(index, _18); + ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); + zephir_check_call_status(); + _7 = ZEPHIR_IS_STRING(indexName, "PRIMARY"); + if (_7) { + _7 = !hasPrimary; + } + _9 = !(ZEPHIR_IS_EMPTY(indexType)); + if (_9) { + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, indexType); + _9 = zephir_memnstr_str(_11, SL("UNIQUE"), "phalcon/db/dialect/sqlite.zep", 341); + } + if (_7) { + ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_19, 44, _4); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 340); + } else if (_9) { + ZEPHIR_CALL_METHOD(&_8, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_19, 44, _8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "UNIQUE (", _6, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 342); + } + } + } + ZEPHIR_OBS_VAR(references); + if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/sqlite.zep", 367); + for ( + ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS + ; zephir_hash_move_forward_ex(_21, &_20) + ) { + ZEPHIR_GET_HVALUE(reference, _22); + ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_19, 44, _6); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_8, reference, "getreferencedtable", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "getcolumnlist", &_19, 44, _13); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(referenceSql); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _8, "`(", _10, ")"); + ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onDelete))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onUpdate))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 365); + } + } + ZEPHIR_INIT_NVAR(_11); + zephir_fast_join_str(_11, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_VS(_15, _11, "\n)"); + zephir_concat_self(&sql, _15 TSRMLS_CC); + RETURN_CCTOR(sql); } @@ -794,7 +963,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 400); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); diff --git a/ext/phalcon/db/index.zep.c b/ext/phalcon/db/index.zep.c index c5f4648876d..1e155418faa 100644 --- a/ext/phalcon/db/index.zep.c +++ b/ext/phalcon/db/index.zep.c @@ -60,6 +60,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Index) { /** * Index name + * + * @var string */ PHP_METHOD(Phalcon_Db_Index, getName) { @@ -70,6 +72,8 @@ PHP_METHOD(Phalcon_Db_Index, getName) { /** * Index columns + * + * @var array */ PHP_METHOD(Phalcon_Db_Index, getColumns) { @@ -80,6 +84,8 @@ PHP_METHOD(Phalcon_Db_Index, getColumns) { /** * Index type + * + * @var string */ PHP_METHOD(Phalcon_Db_Index, getType) { diff --git a/ext/phalcon/db/profiler/item.zep.c b/ext/phalcon/db/profiler/item.zep.c index 0145f4b87ea..af0142a85f5 100644 --- a/ext/phalcon/db/profiler/item.zep.c +++ b/ext/phalcon/db/profiler/item.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/operators.h" #include "kernel/memory.h" +#include "kernel/operators.h" /** @@ -68,25 +68,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { /** * SQL statement related to the profile + * + * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * SQL statement related to the profile + * + * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { @@ -97,25 +97,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { /** * SQL variables related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * SQL variables related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { @@ -126,25 +126,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { /** * SQL bind types related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * SQL bind types related to the profile + * + * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { @@ -155,25 +155,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { /** * Timestamp when the profile started + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } /** * Timestamp when the profile started + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { @@ -184,25 +184,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { /** * Timestamp when the profile ended + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } /** * Timestamp when the profile ended + * + * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getFinalTime) { diff --git a/ext/phalcon/db/profiler/item.zep.h b/ext/phalcon/db/profiler/item.zep.h index 8e21ab80b61..dccba4e6d5b 100644 --- a/ext/phalcon/db/profiler/item.zep.h +++ b/ext/phalcon/db/profiler/item.zep.h @@ -20,11 +20,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) diff --git a/ext/phalcon/db/rawvalue.zep.c b/ext/phalcon/db/rawvalue.zep.c index 3225b55035c..2e769732a97 100644 --- a/ext/phalcon/db/rawvalue.zep.c +++ b/ext/phalcon/db/rawvalue.zep.c @@ -48,6 +48,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_RawValue) { /** * Raw value without quoting or formating + * + * @var string */ PHP_METHOD(Phalcon_Db_RawValue, getValue) { @@ -58,6 +60,8 @@ PHP_METHOD(Phalcon_Db_RawValue, getValue) { /** * Raw value without quoting or formating + * + * @var string */ PHP_METHOD(Phalcon_Db_RawValue, __toString) { diff --git a/ext/phalcon/db/reference.zep.c b/ext/phalcon/db/reference.zep.c index d285b1d87e6..06fe9973532 100644 --- a/ext/phalcon/db/reference.zep.c +++ b/ext/phalcon/db/reference.zep.c @@ -92,6 +92,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Reference) { /** * Constraint name + * + * @var string */ PHP_METHOD(Phalcon_Db_Reference, getName) { @@ -116,6 +118,8 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedSchema) { /** * Referenced Table + * + * @var string */ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { @@ -126,6 +130,8 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { /** * Local reference columns + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getColumns) { @@ -136,6 +142,8 @@ PHP_METHOD(Phalcon_Db_Reference, getColumns) { /** * Referenced Columns + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { @@ -146,6 +154,8 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { /** * ON DELETE + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { @@ -156,6 +166,8 @@ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { /** * ON UPDATE + * + * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnUpdate) { diff --git a/ext/phalcon/events/event.zep.c b/ext/phalcon/events/event.zep.c index e52f7a888ce..878d567ade2 100644 --- a/ext/phalcon/events/event.zep.c +++ b/ext/phalcon/events/event.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/operators.h" #include "kernel/memory.h" +#include "kernel/operators.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" @@ -69,25 +69,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { /** * Event type + * + * @var string */ PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * Event type + * + * @var string */ PHP_METHOD(Phalcon_Events_Event, getType) { @@ -98,6 +98,8 @@ PHP_METHOD(Phalcon_Events_Event, getType) { /** * Event source + * + * @var object */ PHP_METHOD(Phalcon_Events_Event, getSource) { @@ -108,6 +110,8 @@ PHP_METHOD(Phalcon_Events_Event, getSource) { /** * Event data + * + * @var mixed */ PHP_METHOD(Phalcon_Events_Event, setData) { @@ -123,6 +127,8 @@ PHP_METHOD(Phalcon_Events_Event, setData) { /** * Event data + * + * @var mixed */ PHP_METHOD(Phalcon_Events_Event, getData) { @@ -133,6 +139,8 @@ PHP_METHOD(Phalcon_Events_Event, getData) { /** * Is event cancelable? + * + * @var boolean */ PHP_METHOD(Phalcon_Events_Event, getCancelable) { diff --git a/ext/phalcon/forms/element.zep.c b/ext/phalcon/forms/element.zep.c index 9fa42f3cc0f..bdd1dddf2f3 100644 --- a/ext/phalcon/forms/element.zep.c +++ b/ext/phalcon/forms/element.zep.c @@ -13,12 +13,12 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/operators.h" #include "kernel/memory.h" +#include "kernel/fcall.h" +#include "kernel/operators.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/array.h" -#include "kernel/fcall.h" #include "kernel/concat.h" @@ -62,7 +62,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Forms_Element) { */ PHP_METHOD(Phalcon_Forms_Element, __construct) { - zval *name_param = NULL, *attributes = NULL; + int ZEPHIR_LAST_CALL_STATUS; + zval *name_param = NULL, *attributes = NULL, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -78,6 +79,11 @@ PHP_METHOD(Phalcon_Forms_Element, __construct) { if (Z_TYPE_P(attributes) == IS_ARRAY) { zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); } + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_validation_message_group_ce); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 3); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } @@ -167,7 +173,7 @@ PHP_METHOD(Phalcon_Forms_Element, setFilters) { _0 = Z_TYPE_P(filters) != IS_ARRAY; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 112); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 113); return; } zephir_update_property_this(this_ptr, SL("_filters"), filters TSRMLS_CC); @@ -323,7 +329,7 @@ PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 209); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -597,7 +603,7 @@ PHP_METHOD(Phalcon_Forms_Element, label) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, " 0); - } - RETURN_MM_BOOL(0); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + RETURN_BOOL(zephir_fast_count_int(_0 TSRMLS_CC) > 0); } @@ -753,25 +740,15 @@ PHP_METHOD(Phalcon_Forms_Element, setMessages) { PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages = NULL, *_0; + zval *message, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); - ZEPHIR_OBS_VAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - if (Z_TYPE_P(messages) != IS_OBJECT) { - ZEPHIR_INIT_VAR(_0); - object_init_ex(_0, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); - zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); - ZEPHIR_OBS_NVAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(NULL, _0, "appendmessage", NULL, 0, message); zephir_check_call_status(); RETURN_THIS(); diff --git a/ext/phalcon/forms/form.zep.c b/ext/phalcon/forms/form.zep.c index 2b2f1e4b73e..2e1a1ae003b 100644 --- a/ext/phalcon/forms/form.zep.c +++ b/ext/phalcon/forms/form.zep.c @@ -506,7 +506,7 @@ PHP_METHOD(Phalcon_Forms_Form, getMessages) { if (byItemName) { if (Z_TYPE_P(messages) != IS_ARRAY) { object_init_ex(return_value, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 3); zephir_check_call_status(); RETURN_MM(); } @@ -514,7 +514,7 @@ PHP_METHOD(Phalcon_Forms_Form, getMessages) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 3); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 407); @@ -553,7 +553,7 @@ PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 3); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_messages"), name, group TSRMLS_CC); RETURN_CCTOR(group); diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 31a21167c72..9ef3368f74e 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -79,6 +79,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Request_File) { } /** + * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getError) { @@ -88,6 +89,7 @@ PHP_METHOD(Phalcon_Http_Request_File, getError) { } /** + * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getKey) { @@ -97,6 +99,7 @@ PHP_METHOD(Phalcon_Http_Request_File, getKey) { } /** + * @var string */ PHP_METHOD(Phalcon_Http_Request_File, getExtension) { diff --git a/ext/phalcon/image/adapter.zep.c b/ext/phalcon/image/adapter.zep.c index 3831da754cf..b585452e5ab 100644 --- a/ext/phalcon/image/adapter.zep.c +++ b/ext/phalcon/image/adapter.zep.c @@ -89,6 +89,8 @@ PHP_METHOD(Phalcon_Image_Adapter, getRealpath) { /** * Image width + * + * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { @@ -99,6 +101,8 @@ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { /** * Image height + * + * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { @@ -110,9 +114,9 @@ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { /** * Image type * - * * Driver dependent * + * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getType) { @@ -123,6 +127,8 @@ PHP_METHOD(Phalcon_Image_Adapter, getType) { /** * Image mime type + * + * @var string */ PHP_METHOD(Phalcon_Image_Adapter, getMime) { diff --git a/ext/phalcon/image/adapter/imagick.zep.c b/ext/phalcon/image/adapter/imagick.zep.c index 89bc7c332c3..601ebbf3386 100644 --- a/ext/phalcon/image/adapter/imagick.zep.c +++ b/ext/phalcon/image/adapter/imagick.zep.c @@ -129,10 +129,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -201,13 +199,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -442,10 +438,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -643,10 +637,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -695,16 +687,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -833,10 +821,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -909,10 +895,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -925,10 +909,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -1152,10 +1134,8 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -1231,26 +1211,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index 4358cc20845..7c69b0b640a 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/operators.h" #include "kernel/memory.h" +#include "kernel/operators.h" #include "kernel/string.h" #include "kernel/fcall.h" #include "kernel/concat.h" @@ -50,6 +50,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Formatter_Line) { /** * Default date format + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { @@ -60,25 +62,25 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { /** * Default date format + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } /** * Format applied to each message + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { @@ -89,20 +91,18 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { /** * Format applied to each message + * + * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/logger/item.zep.c b/ext/phalcon/logger/item.zep.c index df992b18e7f..59238352c41 100644 --- a/ext/phalcon/logger/item.zep.c +++ b/ext/phalcon/logger/item.zep.c @@ -56,6 +56,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Item) { /** * Log type + * + * @var integer */ PHP_METHOD(Phalcon_Logger_Item, getType) { @@ -66,6 +68,8 @@ PHP_METHOD(Phalcon_Logger_Item, getType) { /** * Log message + * + * @var string */ PHP_METHOD(Phalcon_Logger_Item, getMessage) { @@ -76,6 +80,8 @@ PHP_METHOD(Phalcon_Logger_Item, getMessage) { /** * Log timestamp + * + * @var integer */ PHP_METHOD(Phalcon_Logger_Item, getTime) { diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index 68dc0e781f6..e04508cdd5f 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -164,6 +164,7 @@ PHP_METHOD(Phalcon_Mvc_View, getCurrentRenderLevel) { } /** + * @var array */ PHP_METHOD(Phalcon_Mvc_View, getRegisteredEngines) { diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index 82d2ed080e8..522e7bd50d6 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -2324,7 +2324,9 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { zephir_concat_self_str(&code, SL("") TSRMLS_CC); + } else { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); zephir_concat_self(&code, _2 TSRMLS_CC); @@ -2400,26 +2402,26 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1992); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2438,10 +2440,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2020 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2028 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -2477,7 +2479,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2056 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -2488,7 +2490,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2071); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -2505,18 +2507,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2099 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -2598,13 +2600,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -2666,7 +2668,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2229); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -2676,7 +2678,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2241); return; } ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 383, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); @@ -2694,7 +2696,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2307); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -2704,7 +2706,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2275 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, localBlock); zephir_check_call_status(); @@ -2723,7 +2725,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2300); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -2834,7 +2836,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2349); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -2844,7 +2846,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2356 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2857,7 +2859,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2364 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2873,7 +2875,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2383); return; } RETURN_CCTOR(compilation); @@ -2953,49 +2955,49 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2430 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2432); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2440 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2442); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2450 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2453); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2462 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2464); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2472 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2474); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2482 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { @@ -3027,11 +3029,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2527); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2530); return; } } @@ -3058,7 +3060,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2564 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3083,7 +3085,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2590 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/queue/beanstalk.zep.c b/ext/phalcon/queue/beanstalk.zep.c index 4359a3be5d3..fb296d839cc 100644 --- a/ext/phalcon/queue/beanstalk.zep.c +++ b/ext/phalcon/queue/beanstalk.zep.c @@ -507,7 +507,7 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -560,9 +560,9 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -578,7 +578,7 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -613,7 +613,7 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/registry.zep.c b/ext/phalcon/registry.zep.c index 73a681bc92b..fd805a66b2d 100644 --- a/ext/phalcon/registry.zep.c +++ b/ext/phalcon/registry.zep.c @@ -244,7 +244,7 @@ PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -263,7 +263,7 @@ PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -282,7 +282,7 @@ PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -301,7 +301,7 @@ PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -320,7 +320,7 @@ PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -383,7 +383,7 @@ PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -411,7 +411,7 @@ PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -439,7 +439,7 @@ PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/security.zep.c b/ext/phalcon/security.zep.c index 3799e90d624..e1656e9df33 100644 --- a/ext/phalcon/security.zep.c +++ b/ext/phalcon/security.zep.c @@ -191,7 +191,7 @@ PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -286,7 +286,7 @@ PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -313,7 +313,7 @@ PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -356,7 +356,7 @@ PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -426,7 +426,7 @@ PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -471,7 +471,7 @@ PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -661,7 +661,7 @@ PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); diff --git a/ext/phalcon/security/random.zep.c b/ext/phalcon/security/random.zep.c index 991ec25151e..7a5d402b340 100644 --- a/ext/phalcon/security/random.zep.c +++ b/ext/phalcon/security/random.zep.c @@ -136,7 +136,7 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -152,11 +152,11 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -206,7 +206,7 @@ PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -261,7 +261,7 @@ PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -420,7 +420,7 @@ PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -488,7 +488,7 @@ PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -497,7 +497,7 @@ PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -535,19 +535,19 @@ PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/session/adapter/libmemcached.zep.c b/ext/phalcon/session/adapter/libmemcached.zep.c index fc245b2aa14..114a30b07d8 100644 --- a/ext/phalcon/session/adapter/libmemcached.zep.c +++ b/ext/phalcon/session/adapter/libmemcached.zep.c @@ -170,9 +170,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/adapter/memcache.zep.c b/ext/phalcon/session/adapter/memcache.zep.c index f6389f74301..4a2bef3bcab 100644 --- a/ext/phalcon/session/adapter/memcache.zep.c +++ b/ext/phalcon/session/adapter/memcache.zep.c @@ -158,9 +158,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/adapter/redis.zep.c b/ext/phalcon/session/adapter/redis.zep.c index 52e9df2e326..07cb9322a05 100644 --- a/ext/phalcon/session/adapter/redis.zep.c +++ b/ext/phalcon/session/adapter/redis.zep.c @@ -157,9 +157,9 @@ PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/session/bag.zep.c b/ext/phalcon/session/bag.zep.c index 3399ba65a68..1d6a90da36a 100644 --- a/ext/phalcon/session/bag.zep.c +++ b/ext/phalcon/session/bag.zep.c @@ -541,7 +541,7 @@ PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/tag.zep.c b/ext/phalcon/tag.zep.c index 22fd7adf98c..788943de3d3 100644 --- a/ext/phalcon/tag.zep.c +++ b/ext/phalcon/tag.zep.c @@ -869,7 +869,7 @@ PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -899,7 +899,7 @@ PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -929,7 +929,7 @@ PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -955,7 +955,7 @@ PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -985,7 +985,7 @@ PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1015,7 +1015,7 @@ PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1041,7 +1041,7 @@ PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1067,7 +1067,7 @@ PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1093,7 +1093,7 @@ PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1119,7 +1119,7 @@ PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1145,7 +1145,7 @@ PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1175,7 +1175,7 @@ PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1205,7 +1205,7 @@ PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1235,7 +1235,7 @@ PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1261,7 +1261,7 @@ PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1287,7 +1287,7 @@ PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1313,7 +1313,7 @@ PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1343,7 +1343,7 @@ PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1378,7 +1378,7 @@ PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1415,7 +1415,7 @@ PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1452,7 +1452,7 @@ PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -2180,7 +2180,7 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -2249,7 +2249,7 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); diff --git a/ext/phalcon/tag/select.zep.c b/ext/phalcon/tag/select.zep.c index 3b4cfe0af18..7ea83e8e079 100644 --- a/ext/phalcon/tag/select.zep.c +++ b/ext/phalcon/tag/select.zep.c @@ -86,7 +86,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { } ZEPHIR_OBS_VAR(value); if (!(zephir_array_isset_string_fetch(&value, params, SS("value"), 0 TSRMLS_CC))) { - ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 5, id, params); + ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 6, id, params); zephir_check_call_status(); } else { zephir_array_unset_string(¶ms, SS("value"), PH_SEPARATE); @@ -132,7 +132,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { zephir_array_unset_string(¶ms, SS("using"), PH_SEPARATE); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -160,7 +160,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -318,7 +318,7 @@ PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index bf3b33ef6ca..b8b309f43fb 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -194,13 +194,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -211,13 +211,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -228,7 +228,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -237,7 +237,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -245,21 +245,21 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -509,17 +509,17 @@ PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -632,24 +632,24 @@ PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -661,7 +661,7 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } diff --git a/ext/phalcon/translate/adapter/csv.zep.c b/ext/phalcon/translate/adapter/csv.zep.c index a0bb871a397..415074fdf61 100644 --- a/ext/phalcon/translate/adapter/csv.zep.c +++ b/ext/phalcon/translate/adapter/csv.zep.c @@ -60,7 +60,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -73,7 +73,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, 429, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -117,7 +117,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; diff --git a/ext/phalcon/translate/adapter/gettext.zep.c b/ext/phalcon/translate/adapter/gettext.zep.c index 1003aebe70b..149576046be 100644 --- a/ext/phalcon/translate/adapter/gettext.zep.c +++ b/ext/phalcon/translate/adapter/gettext.zep.c @@ -76,7 +76,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -117,22 +117,22 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -245,12 +245,12 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -290,7 +290,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -310,7 +310,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, 435, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -381,14 +381,14 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -450,12 +450,12 @@ 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", NULL, 437, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); diff --git a/ext/phalcon/translate/adapter/nativearray.zep.c b/ext/phalcon/translate/adapter/nativearray.zep.c index c598fe7ba9f..54e771dd4c1 100644 --- a/ext/phalcon/translate/adapter/nativearray.zep.c +++ b/ext/phalcon/translate/adapter/nativearray.zep.c @@ -55,7 +55,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index ef712cb945d..2c1a2c3d074 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -132,7 +132,7 @@ PHP_METHOD(Phalcon_Validation, validate) { zephir_update_property_this(this_ptr, SL("_values"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_VAR(messages); object_init_ex(messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforevalidation") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&status, this_ptr, "beforevalidation", NULL, 0, data, entity, messages); diff --git a/ext/phalcon/validation/message.zep.c b/ext/phalcon/validation/message.zep.c index c08beacc24f..49032533a89 100644 --- a/ext/phalcon/validation/message.zep.c +++ b/ext/phalcon/validation/message.zep.c @@ -274,7 +274,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, 438, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 437, _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 dabd6759284..a302c5708a5 100644 --- a/ext/phalcon/validation/message/group.zep.c +++ b/ext/phalcon/validation/message/group.zep.c @@ -417,7 +417,7 @@ 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", 267 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 6, _0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, _0); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/validation/validator/alnum.zep.c b/ext/phalcon/validation/validator/alnum.zep.c index 1d7d5bbe138..b98ff9f2a7a 100644 --- a/ext/phalcon/validation/validator/alnum.zep.c +++ b/ext/phalcon/validation/validator/alnum.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/alpha.zep.c b/ext/phalcon/validation/validator/alpha.zep.c index 435b3218130..6b961f8cc0f 100644 --- a/ext/phalcon/validation/validator/alpha.zep.c +++ b/ext/phalcon/validation/validator/alpha.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/between.zep.c b/ext/phalcon/validation/validator/between.zep.c index 1fdcf4a60c1..90a878b2813 100644 --- a/ext/phalcon/validation/validator/between.zep.c +++ b/ext/phalcon/validation/validator/between.zep.c @@ -131,7 +131,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/confirmation.zep.c b/ext/phalcon/validation/validator/confirmation.zep.c index 01a724de959..f3cf5b4da8d 100644 --- a/ext/phalcon/validation/validator/confirmation.zep.c +++ b/ext/phalcon/validation/validator/confirmation.zep.c @@ -77,7 +77,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(&_1, this_ptr, "compare", NULL, 441, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -120,7 +120,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/creditcard.zep.c b/ext/phalcon/validation/validator/creditcard.zep.c index b12a78a1ab7..088a8c5bb7b 100644 --- a/ext/phalcon/validation/validator/creditcard.zep.c +++ b/ext/phalcon/validation/validator/creditcard.zep.c @@ -69,7 +69,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, 442, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -102,7 +102,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138,7 +138,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -158,7 +158,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _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/digit.zep.c b/ext/phalcon/validation/validator/digit.zep.c index b720000fe0e..c410feef700 100644 --- a/ext/phalcon/validation/validator/digit.zep.c +++ b/ext/phalcon/validation/validator/digit.zep.c @@ -81,7 +81,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +114,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/email.zep.c b/ext/phalcon/validation/validator/email.zep.c index 4344311b54e..a577f7fd586 100644 --- a/ext/phalcon/validation/validator/email.zep.c +++ b/ext/phalcon/validation/validator/email.zep.c @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/exclusionin.zep.c b/ext/phalcon/validation/validator/exclusionin.zep.c index a7faded7997..ce375d01d42 100644 --- a/ext/phalcon/validation/validator/exclusionin.zep.c +++ b/ext/phalcon/validation/validator/exclusionin.zep.c @@ -126,7 +126,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/file.zep.c b/ext/phalcon/validation/validator/file.zep.c index ba801a2ef43..340682df313 100644 --- a/ext/phalcon/validation/validator/file.zep.c +++ b/ext/phalcon/validation/validator/file.zep.c @@ -136,7 +136,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -239,7 +239,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -322,7 +322,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -384,7 +384,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -469,7 +469,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -525,7 +525,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); diff --git a/ext/phalcon/validation/validator/identical.zep.c b/ext/phalcon/validation/validator/identical.zep.c index 03fd9e96656..6d032c04220 100644 --- a/ext/phalcon/validation/validator/identical.zep.c +++ b/ext/phalcon/validation/validator/identical.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/inclusionin.zep.c b/ext/phalcon/validation/validator/inclusionin.zep.c index 555d488b52f..5ab4b7e0022 100644 --- a/ext/phalcon/validation/validator/inclusionin.zep.c +++ b/ext/phalcon/validation/validator/inclusionin.zep.c @@ -146,7 +146,7 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/numericality.zep.c b/ext/phalcon/validation/validator/numericality.zep.c index f60a23f1f7b..1b93abd93e3 100644 --- a/ext/phalcon/validation/validator/numericality.zep.c +++ b/ext/phalcon/validation/validator/numericality.zep.c @@ -118,7 +118,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); diff --git a/ext/phalcon/validation/validator/presenceof.zep.c b/ext/phalcon/validation/validator/presenceof.zep.c index 60156592593..61946931bb0 100644 --- a/ext/phalcon/validation/validator/presenceof.zep.c +++ b/ext/phalcon/validation/validator/presenceof.zep.c @@ -104,7 +104,7 @@ PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/regex.zep.c b/ext/phalcon/validation/validator/regex.zep.c index 135e0d19a86..a4f5eeb9ce7 100644 --- a/ext/phalcon/validation/validator/regex.zep.c +++ b/ext/phalcon/validation/validator/regex.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); diff --git a/ext/phalcon/validation/validator/stringlength.zep.c b/ext/phalcon/validation/validator/stringlength.zep.c index 08d718a223f..d9d9e8171fe 100644 --- a/ext/phalcon/validation/validator/stringlength.zep.c +++ b/ext/phalcon/validation/validator/stringlength.zep.c @@ -152,7 +152,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -189,7 +189,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index 9b2dd7220a8..e7cae8aed92 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -162,7 +162,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/url.zep.c b/ext/phalcon/validation/validator/url.zep.c index a4f24510cc0..34f3c2d1498 100644 --- a/ext/phalcon/validation/validator/url.zep.c +++ b/ext/phalcon/validation/validator/url.zep.c @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/version.zep.c b/ext/phalcon/version.zep.c index 67a6954ef3c..d56143f815b 100644 --- a/ext/phalcon/version.zep.c +++ b/ext/phalcon/version.zep.c @@ -178,7 +178,7 @@ PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); zephir_check_call_status(); break; } From 45b83002561ebb2b56180f17a55856a7ac5245c0 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Thu, 17 Sep 2015 15:17:44 -0500 Subject: [PATCH 57/60] Regenerating build [ci skip] --- build/32bits/phalcon.zep.c | 776 +++++++++++++++++++++---------------- build/32bits/phalcon.zep.h | 4 +- build/64bits/phalcon.zep.c | 776 +++++++++++++++++++++---------------- build/64bits/phalcon.zep.h | 4 +- build/safe/phalcon.zep.c | 776 +++++++++++++++++++++---------------- build/safe/phalcon.zep.h | 4 +- 6 files changed, 1302 insertions(+), 1038 deletions(-) diff --git a/build/32bits/phalcon.zep.c b/build/32bits/phalcon.zep.c index 016731a086b..b651cd1557c 100644 --- a/build/32bits/phalcon.zep.c +++ b/build/32bits/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,7 +23858,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23977,7 +23977,7 @@ static PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +24081,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24123,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -26043,7 +26043,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -26112,7 +26112,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26742,17 +26742,17 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27023,7 +27023,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { zephir_update_property_this(this_ptr, SL("_values"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_VAR(messages); object_init_ex(messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforevalidation") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&status, this_ptr, "beforevalidation", NULL, 0, data, entity, messages); @@ -27619,7 +27619,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27686,7 +27686,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); zephir_check_call_status(); break; } @@ -39202,10 +39202,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { @@ -55120,7 +55118,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { do { if (ZEPHIR_IS_LONG(type, 0)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("INT") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("INTEGER") TSRMLS_CC); } break; } @@ -55156,7 +55154,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } if (ZEPHIR_IS_LONG(type, 4)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("DATETIME") TSRMLS_CC); } break; } @@ -55690,8 +55688,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { + zephir_fcall_cache_entry *_5 = NULL, *_14 = NULL, *_19 = NULL; + HashTable *_1, *_17, *_21; + HashPosition _0, _16, _20; + int ZEPHIR_LAST_CALL_STATUS; + zend_bool hasPrimary, _7, _9; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *columns, *table = NULL, *temporary = NULL, *options, *createLines, *columnLine = NULL, *column = NULL, *indexes, *index = NULL, *indexName = NULL, *indexType = NULL, *references, *reference = NULL, *defaultValue = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *sql, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL, *_11 = NULL, _12 = zval_used_for_init, *_13 = NULL, *_15 = NULL, **_18, **_22; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -55723,8 +55726,172 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); - return; + ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(temporary); + ZVAL_BOOL(temporary, 0); + ZEPHIR_OBS_VAR(options); + if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { + ZEPHIR_OBS_NVAR(temporary); + zephir_array_isset_string_fetch(&temporary, options, SS("temporary"), 0 TSRMLS_CC); + } + ZEPHIR_OBS_VAR(columns); + if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 271); + return; + } + ZEPHIR_INIT_VAR(sql); + if (zephir_is_true(temporary)) { + ZEPHIR_CONCAT_SVS(sql, "CREATE TEMPORARY TABLE ", table, " (\n\t"); + } else { + ZEPHIR_CONCAT_SVS(sql, "CREATE TABLE ", table, " (\n\t"); + } + hasPrimary = 0; + ZEPHIR_INIT_VAR(createLines); + array_init(createLines); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/sqlite.zep", 329); + for ( + ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zephir_hash_move_forward_ex(_1, &_0) + ) { + ZEPHIR_GET_HVALUE(column, _2); + ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(columnLine); + ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); + ZEPHIR_CALL_METHOD(&_6, column, "isprimary", NULL, 0); + zephir_check_call_status(); + _7 = zephir_is_true(_6); + if (_7) { + _7 = !hasPrimary; + } + if (_7) { + zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); + hasPrimary = 1; + } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + _9 = zephir_is_true(_8); + if (_9) { + _9 = hasPrimary; + } + if (_9) { + zephir_concat_self_str(&columnLine, SL(" AUTOINCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_10, column, "hasdefault", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_10)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 309)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_12); + ZVAL_STRING(&_12, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_13, "addcslashes", &_14, 143, defaultValue, &_12); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, " DEFAULT \"", _13, "\""); + zephir_concat_self(&columnLine, _15 TSRMLS_CC); + } + } + ZEPHIR_CALL_METHOD(&_13, column, "isnotnull", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_13)) { + zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); + } + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 323); + } + ZEPHIR_OBS_VAR(indexes); + if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { + zephir_is_iterable(indexes, &_17, &_16, 0, 0, "phalcon/db/dialect/sqlite.zep", 345); + for ( + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) + ) { + ZEPHIR_GET_HVALUE(index, _18); + ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); + zephir_check_call_status(); + _7 = ZEPHIR_IS_STRING(indexName, "PRIMARY"); + if (_7) { + _7 = !hasPrimary; + } + _9 = !(ZEPHIR_IS_EMPTY(indexType)); + if (_9) { + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, indexType); + _9 = zephir_memnstr_str(_11, SL("UNIQUE"), "phalcon/db/dialect/sqlite.zep", 341); + } + if (_7) { + ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_19, 44, _4); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 340); + } else if (_9) { + ZEPHIR_CALL_METHOD(&_8, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_19, 44, _8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "UNIQUE (", _6, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 342); + } + } + } + ZEPHIR_OBS_VAR(references); + if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/sqlite.zep", 367); + for ( + ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS + ; zephir_hash_move_forward_ex(_21, &_20) + ) { + ZEPHIR_GET_HVALUE(reference, _22); + ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_19, 44, _6); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_8, reference, "getreferencedtable", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "getcolumnlist", &_19, 44, _13); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(referenceSql); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _8, "`(", _10, ")"); + ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onDelete))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onUpdate))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 365); + } + } + ZEPHIR_INIT_NVAR(_11); + zephir_fast_join_str(_11, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_VS(_15, _11, "\n)"); + zephir_concat_self(&sql, _15 TSRMLS_CC); + RETURN_CCTOR(sql); } @@ -55812,7 +55979,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 400); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -56173,17 +56340,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56196,17 +56359,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56219,17 +56378,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56242,17 +56397,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } @@ -56265,17 +56416,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } @@ -58939,17 +59086,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -60210,7 +60353,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Forms_Element) { static PHP_METHOD(Phalcon_Forms_Element, __construct) { - zval *name_param = NULL, *attributes = NULL; + int ZEPHIR_LAST_CALL_STATUS; + zval *name_param = NULL, *attributes = NULL, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -60226,6 +60370,11 @@ static PHP_METHOD(Phalcon_Forms_Element, __construct) { if (Z_TYPE_P(attributes) == IS_ARRAY) { zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); } + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_validation_message_group_ce); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 3); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } @@ -60297,7 +60446,7 @@ static PHP_METHOD(Phalcon_Forms_Element, setFilters) { _0 = Z_TYPE_P(filters) != IS_ARRAY; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 112); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 113); return; } zephir_update_property_this(this_ptr, SL("_filters"), filters TSRMLS_CC); @@ -60425,7 +60574,7 @@ static PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 209); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -60642,7 +60791,7 @@ static PHP_METHOD(Phalcon_Forms_Element, label) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, " 0); - } - RETURN_MM_BOOL(0); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + RETURN_BOOL(zephir_fast_count_int(_0 TSRMLS_CC) > 0); } @@ -60768,25 +60898,15 @@ static PHP_METHOD(Phalcon_Forms_Element, setMessages) { static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages = NULL, *_0; + zval *message, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); - ZEPHIR_OBS_VAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - if (Z_TYPE_P(messages) != IS_OBJECT) { - ZEPHIR_INIT_VAR(_0); - object_init_ex(_0, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); - zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); - ZEPHIR_OBS_NVAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(NULL, _0, "appendmessage", NULL, 0, message); zephir_check_call_status(); RETURN_THIS(); @@ -61346,7 +61466,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { if (byItemName) { if (Z_TYPE_P(messages) != IS_ARRAY) { object_init_ex(return_value, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 3); zephir_check_call_status(); RETURN_MM(); } @@ -61354,7 +61474,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 3); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 407); @@ -61387,7 +61507,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 3); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_messages"), name, group TSRMLS_CC); RETURN_CCTOR(group); @@ -69752,10 +69872,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -69824,13 +69942,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -70048,10 +70164,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70240,10 +70354,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70292,16 +70404,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70427,10 +70535,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70500,10 +70606,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70516,10 +70620,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70738,10 +70840,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -70814,26 +70914,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -73388,17 +73482,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73411,17 +73501,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -120377,7 +120463,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { zephir_concat_self_str(&code, SL("") TSRMLS_CC); + } else { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); zephir_concat_self(&code, _2 TSRMLS_CC); @@ -120443,26 +120531,26 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1992); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120481,10 +120569,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2020 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2028 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -120520,7 +120608,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2056 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -120531,7 +120619,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2071); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -120548,18 +120636,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2099 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -120641,13 +120729,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -120706,7 +120794,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2229); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -120716,7 +120804,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2241); return; } ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 383, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); @@ -120734,7 +120822,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2307); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -120744,7 +120832,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2275 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, localBlock); zephir_check_call_status(); @@ -120763,7 +120851,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2300); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -120855,7 +120943,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2349); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -120865,7 +120953,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2356 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120878,7 +120966,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2364 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120894,7 +120982,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2383); return; } RETURN_CCTOR(compilation); @@ -120965,49 +121053,49 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2430 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2432); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2440 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2442); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2450 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2453); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2462 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2464); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2472 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2474); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2482 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { @@ -121039,11 +121127,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2527); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2530); return; } } @@ -121070,7 +121158,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2564 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -121095,7 +121183,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2590 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -131686,7 +131774,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -131732,9 +131820,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131750,7 +131838,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131782,7 +131870,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -132121,7 +132209,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -132137,11 +132225,11 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -132177,7 +132265,7 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -132214,7 +132302,7 @@ static PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -132319,7 +132407,7 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -132375,7 +132463,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -132384,7 +132472,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -132422,19 +132510,19 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); zephir_check_call_status(); RETURN_MM(); @@ -133399,7 +133487,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); @@ -133734,9 +133822,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133953,9 +134041,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134170,9 +134258,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134348,7 +134436,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { } ZEPHIR_OBS_VAR(value); if (!(zephir_array_isset_string_fetch(&value, params, SS("value"), 0 TSRMLS_CC))) { - ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 5, id, params); + ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 6, id, params); zephir_check_call_status(); } else { zephir_array_unset_string(¶ms, SS("value"), PH_SEPARATE); @@ -134394,7 +134482,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { zephir_array_unset_string(¶ms, SS("using"), PH_SEPARATE); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134422,7 +134510,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134565,7 +134653,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134959,7 +135047,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -134972,7 +135060,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, 429, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -135008,7 +135096,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135166,7 +135254,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135199,22 +135287,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135312,12 +135400,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135348,7 +135436,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -135363,7 +135451,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, 435, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -135425,14 +135513,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135488,12 +135576,12 @@ 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", NULL, 437, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135606,7 +135694,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -136074,7 +136162,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, 438, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 437, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136623,7 +136711,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", 267 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 6, _0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, _0); zephir_check_call_status(); RETURN_MM(); @@ -136688,7 +136776,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136721,7 +136809,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136791,7 +136879,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136824,7 +136912,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136941,7 +137029,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137005,7 +137093,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(&_1, this_ptr, "compare", NULL, 441, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -137048,7 +137136,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137146,7 +137234,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, 442, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -137179,7 +137267,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137210,7 +137298,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -137230,7 +137318,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -137295,7 +137383,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137328,7 +137416,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137433,7 +137521,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137546,7 +137634,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137662,7 +137750,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137728,7 +137816,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137765,7 +137853,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137848,7 +137936,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137910,7 +137998,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137995,7 +138083,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138051,7 +138139,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -138169,7 +138257,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138302,7 +138390,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138408,7 +138496,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138501,7 +138589,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138617,7 +138705,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138751,7 +138839,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138788,7 +138876,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138929,7 +139017,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -139034,7 +139122,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/32bits/phalcon.zep.h b/build/32bits/phalcon.zep.h index 41c7cc4a29f..89cf6505f41 100644 --- a/build/32bits/phalcon.zep.h +++ b/build/32bits/phalcon.zep.h @@ -9778,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) diff --git a/build/64bits/phalcon.zep.c b/build/64bits/phalcon.zep.c index 016731a086b..b651cd1557c 100644 --- a/build/64bits/phalcon.zep.c +++ b/build/64bits/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,7 +23858,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23977,7 +23977,7 @@ static PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +24081,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24123,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -26043,7 +26043,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -26112,7 +26112,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26742,17 +26742,17 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27023,7 +27023,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { zephir_update_property_this(this_ptr, SL("_values"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_VAR(messages); object_init_ex(messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforevalidation") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&status, this_ptr, "beforevalidation", NULL, 0, data, entity, messages); @@ -27619,7 +27619,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27686,7 +27686,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); zephir_check_call_status(); break; } @@ -39202,10 +39202,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { @@ -55120,7 +55118,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { do { if (ZEPHIR_IS_LONG(type, 0)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("INT") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("INTEGER") TSRMLS_CC); } break; } @@ -55156,7 +55154,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } if (ZEPHIR_IS_LONG(type, 4)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("DATETIME") TSRMLS_CC); } break; } @@ -55690,8 +55688,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { + zephir_fcall_cache_entry *_5 = NULL, *_14 = NULL, *_19 = NULL; + HashTable *_1, *_17, *_21; + HashPosition _0, _16, _20; + int ZEPHIR_LAST_CALL_STATUS; + zend_bool hasPrimary, _7, _9; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *columns, *table = NULL, *temporary = NULL, *options, *createLines, *columnLine = NULL, *column = NULL, *indexes, *index = NULL, *indexName = NULL, *indexType = NULL, *references, *reference = NULL, *defaultValue = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *sql, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL, *_11 = NULL, _12 = zval_used_for_init, *_13 = NULL, *_15 = NULL, **_18, **_22; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -55723,8 +55726,172 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); - return; + ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(temporary); + ZVAL_BOOL(temporary, 0); + ZEPHIR_OBS_VAR(options); + if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { + ZEPHIR_OBS_NVAR(temporary); + zephir_array_isset_string_fetch(&temporary, options, SS("temporary"), 0 TSRMLS_CC); + } + ZEPHIR_OBS_VAR(columns); + if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 271); + return; + } + ZEPHIR_INIT_VAR(sql); + if (zephir_is_true(temporary)) { + ZEPHIR_CONCAT_SVS(sql, "CREATE TEMPORARY TABLE ", table, " (\n\t"); + } else { + ZEPHIR_CONCAT_SVS(sql, "CREATE TABLE ", table, " (\n\t"); + } + hasPrimary = 0; + ZEPHIR_INIT_VAR(createLines); + array_init(createLines); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/sqlite.zep", 329); + for ( + ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zephir_hash_move_forward_ex(_1, &_0) + ) { + ZEPHIR_GET_HVALUE(column, _2); + ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(columnLine); + ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); + ZEPHIR_CALL_METHOD(&_6, column, "isprimary", NULL, 0); + zephir_check_call_status(); + _7 = zephir_is_true(_6); + if (_7) { + _7 = !hasPrimary; + } + if (_7) { + zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); + hasPrimary = 1; + } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + _9 = zephir_is_true(_8); + if (_9) { + _9 = hasPrimary; + } + if (_9) { + zephir_concat_self_str(&columnLine, SL(" AUTOINCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_10, column, "hasdefault", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_10)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 309)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_12); + ZVAL_STRING(&_12, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_13, "addcslashes", &_14, 143, defaultValue, &_12); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, " DEFAULT \"", _13, "\""); + zephir_concat_self(&columnLine, _15 TSRMLS_CC); + } + } + ZEPHIR_CALL_METHOD(&_13, column, "isnotnull", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_13)) { + zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); + } + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 323); + } + ZEPHIR_OBS_VAR(indexes); + if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { + zephir_is_iterable(indexes, &_17, &_16, 0, 0, "phalcon/db/dialect/sqlite.zep", 345); + for ( + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) + ) { + ZEPHIR_GET_HVALUE(index, _18); + ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); + zephir_check_call_status(); + _7 = ZEPHIR_IS_STRING(indexName, "PRIMARY"); + if (_7) { + _7 = !hasPrimary; + } + _9 = !(ZEPHIR_IS_EMPTY(indexType)); + if (_9) { + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, indexType); + _9 = zephir_memnstr_str(_11, SL("UNIQUE"), "phalcon/db/dialect/sqlite.zep", 341); + } + if (_7) { + ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_19, 44, _4); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 340); + } else if (_9) { + ZEPHIR_CALL_METHOD(&_8, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_19, 44, _8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "UNIQUE (", _6, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 342); + } + } + } + ZEPHIR_OBS_VAR(references); + if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/sqlite.zep", 367); + for ( + ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS + ; zephir_hash_move_forward_ex(_21, &_20) + ) { + ZEPHIR_GET_HVALUE(reference, _22); + ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_19, 44, _6); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_8, reference, "getreferencedtable", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "getcolumnlist", &_19, 44, _13); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(referenceSql); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _8, "`(", _10, ")"); + ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onDelete))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onUpdate))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 365); + } + } + ZEPHIR_INIT_NVAR(_11); + zephir_fast_join_str(_11, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_VS(_15, _11, "\n)"); + zephir_concat_self(&sql, _15 TSRMLS_CC); + RETURN_CCTOR(sql); } @@ -55812,7 +55979,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 400); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -56173,17 +56340,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56196,17 +56359,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56219,17 +56378,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56242,17 +56397,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } @@ -56265,17 +56416,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } @@ -58939,17 +59086,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -60210,7 +60353,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Forms_Element) { static PHP_METHOD(Phalcon_Forms_Element, __construct) { - zval *name_param = NULL, *attributes = NULL; + int ZEPHIR_LAST_CALL_STATUS; + zval *name_param = NULL, *attributes = NULL, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -60226,6 +60370,11 @@ static PHP_METHOD(Phalcon_Forms_Element, __construct) { if (Z_TYPE_P(attributes) == IS_ARRAY) { zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); } + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_validation_message_group_ce); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 3); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } @@ -60297,7 +60446,7 @@ static PHP_METHOD(Phalcon_Forms_Element, setFilters) { _0 = Z_TYPE_P(filters) != IS_ARRAY; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 112); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 113); return; } zephir_update_property_this(this_ptr, SL("_filters"), filters TSRMLS_CC); @@ -60425,7 +60574,7 @@ static PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 209); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -60642,7 +60791,7 @@ static PHP_METHOD(Phalcon_Forms_Element, label) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, " 0); - } - RETURN_MM_BOOL(0); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + RETURN_BOOL(zephir_fast_count_int(_0 TSRMLS_CC) > 0); } @@ -60768,25 +60898,15 @@ static PHP_METHOD(Phalcon_Forms_Element, setMessages) { static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages = NULL, *_0; + zval *message, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); - ZEPHIR_OBS_VAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - if (Z_TYPE_P(messages) != IS_OBJECT) { - ZEPHIR_INIT_VAR(_0); - object_init_ex(_0, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); - zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); - ZEPHIR_OBS_NVAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(NULL, _0, "appendmessage", NULL, 0, message); zephir_check_call_status(); RETURN_THIS(); @@ -61346,7 +61466,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { if (byItemName) { if (Z_TYPE_P(messages) != IS_ARRAY) { object_init_ex(return_value, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 3); zephir_check_call_status(); RETURN_MM(); } @@ -61354,7 +61474,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 3); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 407); @@ -61387,7 +61507,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 3); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_messages"), name, group TSRMLS_CC); RETURN_CCTOR(group); @@ -69752,10 +69872,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -69824,13 +69942,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -70048,10 +70164,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70240,10 +70354,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70292,16 +70404,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70427,10 +70535,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70500,10 +70606,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70516,10 +70620,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70738,10 +70840,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -70814,26 +70914,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -73388,17 +73482,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73411,17 +73501,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -120377,7 +120463,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { zephir_concat_self_str(&code, SL("") TSRMLS_CC); + } else { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); zephir_concat_self(&code, _2 TSRMLS_CC); @@ -120443,26 +120531,26 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1992); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120481,10 +120569,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2020 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2028 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -120520,7 +120608,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2056 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -120531,7 +120619,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2071); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -120548,18 +120636,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2099 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -120641,13 +120729,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -120706,7 +120794,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2229); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -120716,7 +120804,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2241); return; } ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 383, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); @@ -120734,7 +120822,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2307); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -120744,7 +120832,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2275 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, localBlock); zephir_check_call_status(); @@ -120763,7 +120851,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2300); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -120855,7 +120943,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2349); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -120865,7 +120953,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2356 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120878,7 +120966,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2364 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120894,7 +120982,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2383); return; } RETURN_CCTOR(compilation); @@ -120965,49 +121053,49 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2430 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2432); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2440 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2442); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2450 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2453); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2462 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2464); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2472 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2474); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2482 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { @@ -121039,11 +121127,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2527); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2530); return; } } @@ -121070,7 +121158,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2564 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -121095,7 +121183,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2590 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -131686,7 +131774,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -131732,9 +131820,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131750,7 +131838,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131782,7 +131870,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -132121,7 +132209,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -132137,11 +132225,11 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -132177,7 +132265,7 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -132214,7 +132302,7 @@ static PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -132319,7 +132407,7 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -132375,7 +132463,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -132384,7 +132472,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -132422,19 +132510,19 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); zephir_check_call_status(); RETURN_MM(); @@ -133399,7 +133487,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); @@ -133734,9 +133822,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133953,9 +134041,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134170,9 +134258,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134348,7 +134436,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { } ZEPHIR_OBS_VAR(value); if (!(zephir_array_isset_string_fetch(&value, params, SS("value"), 0 TSRMLS_CC))) { - ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 5, id, params); + ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 6, id, params); zephir_check_call_status(); } else { zephir_array_unset_string(¶ms, SS("value"), PH_SEPARATE); @@ -134394,7 +134482,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { zephir_array_unset_string(¶ms, SS("using"), PH_SEPARATE); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134422,7 +134510,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134565,7 +134653,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134959,7 +135047,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -134972,7 +135060,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, 429, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -135008,7 +135096,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135166,7 +135254,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135199,22 +135287,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135312,12 +135400,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135348,7 +135436,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -135363,7 +135451,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, 435, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -135425,14 +135513,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135488,12 +135576,12 @@ 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", NULL, 437, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135606,7 +135694,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -136074,7 +136162,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, 438, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 437, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136623,7 +136711,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", 267 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 6, _0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, _0); zephir_check_call_status(); RETURN_MM(); @@ -136688,7 +136776,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136721,7 +136809,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136791,7 +136879,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136824,7 +136912,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136941,7 +137029,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137005,7 +137093,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(&_1, this_ptr, "compare", NULL, 441, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -137048,7 +137136,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137146,7 +137234,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, 442, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -137179,7 +137267,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137210,7 +137298,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -137230,7 +137318,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -137295,7 +137383,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137328,7 +137416,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137433,7 +137521,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137546,7 +137634,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137662,7 +137750,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137728,7 +137816,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137765,7 +137853,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137848,7 +137936,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137910,7 +137998,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137995,7 +138083,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138051,7 +138139,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -138169,7 +138257,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138302,7 +138390,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138408,7 +138496,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138501,7 +138589,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138617,7 +138705,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138751,7 +138839,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138788,7 +138876,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138929,7 +139017,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -139034,7 +139122,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/64bits/phalcon.zep.h b/build/64bits/phalcon.zep.h index 41c7cc4a29f..89cf6505f41 100644 --- a/build/64bits/phalcon.zep.h +++ b/build/64bits/phalcon.zep.h @@ -9778,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) diff --git a/build/safe/phalcon.zep.c b/build/safe/phalcon.zep.c index 016731a086b..b651cd1557c 100644 --- a/build/safe/phalcon.zep.c +++ b/build/safe/phalcon.zep.c @@ -17727,7 +17727,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 447, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -23525,7 +23525,7 @@ static PHP_METHOD(Phalcon_Registry, next) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 395, _0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23541,7 +23541,7 @@ static PHP_METHOD(Phalcon_Registry, key) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 396, _0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23557,7 +23557,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 397, _0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23573,7 +23573,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 396, _0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23589,7 +23589,7 @@ static PHP_METHOD(Phalcon_Registry, current) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 398, _0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); Z_UNSET_ISREF_P(_0); zephir_check_call_status(); RETURN_MM(); @@ -23618,7 +23618,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 399, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23646,7 +23646,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23674,7 +23674,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 401, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); zephir_check_call_status(); RETURN_MM(); @@ -23702,7 +23702,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 402, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23858,7 +23858,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23950,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23977,7 +23977,7 @@ static PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 404, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +24017,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 404, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +24081,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 403, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24123,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24296,7 +24296,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 405, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { ZEPHIR_INIT_VAR(_0); @@ -25087,7 +25087,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +25107,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25127,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25147,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25167,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25187,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25207,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25227,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25247,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25267,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25287,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25307,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25327,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25347,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25367,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25387,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25407,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25427,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25447,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 416, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25469,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25491,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 415, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -26043,7 +26043,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 417, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); @@ -26112,7 +26112,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 417, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26480,13 +26480,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26497,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26514,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26531,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 420, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 421, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26742,17 +26742,17 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 422, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); @@ -26856,24 +26856,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 424, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 424, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 425, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 426, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 426, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26885,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 427, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -27023,7 +27023,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { zephir_update_property_this(this_ptr, SL("_values"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_VAR(messages); object_init_ex(messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SS("beforevalidation") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&status, this_ptr, "beforevalidation", NULL, 0, data, entity, messages); @@ -27619,7 +27619,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 446, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27686,7 +27686,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 446, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); zephir_check_call_status(); break; } @@ -39202,10 +39202,8 @@ 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)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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)) { @@ -55120,7 +55118,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { do { if (ZEPHIR_IS_LONG(type, 0)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("INT") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("INTEGER") TSRMLS_CC); } break; } @@ -55156,7 +55154,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } if (ZEPHIR_IS_LONG(type, 4)) { if (ZEPHIR_IS_EMPTY(columnSql)) { - zephir_concat_self_str(&columnSql, SL("TIMESTAMP") TSRMLS_CC); + zephir_concat_self_str(&columnSql, SL("DATETIME") TSRMLS_CC); } break; } @@ -55690,8 +55688,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { + zephir_fcall_cache_entry *_5 = NULL, *_14 = NULL, *_19 = NULL; + HashTable *_1, *_17, *_21; + HashPosition _0, _16, _20; + int ZEPHIR_LAST_CALL_STATUS; + zend_bool hasPrimary, _7, _9; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *columns, *table = NULL, *temporary = NULL, *options, *createLines, *columnLine = NULL, *column = NULL, *indexes, *index = NULL, *indexName = NULL, *indexType = NULL, *references, *reference = NULL, *defaultValue = NULL, *referenceSql = NULL, *onDelete = NULL, *onUpdate = NULL, *sql, **_2, *_3 = NULL, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL, *_11 = NULL, _12 = zval_used_for_init, *_13 = NULL, *_15 = NULL, **_18, **_22; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); @@ -55723,8 +55726,172 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/sqlite.zep", 259); - return; + ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(temporary); + ZVAL_BOOL(temporary, 0); + ZEPHIR_OBS_VAR(options); + if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { + ZEPHIR_OBS_NVAR(temporary); + zephir_array_isset_string_fetch(&temporary, options, SS("temporary"), 0 TSRMLS_CC); + } + ZEPHIR_OBS_VAR(columns); + if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 271); + return; + } + ZEPHIR_INIT_VAR(sql); + if (zephir_is_true(temporary)) { + ZEPHIR_CONCAT_SVS(sql, "CREATE TEMPORARY TABLE ", table, " (\n\t"); + } else { + ZEPHIR_CONCAT_SVS(sql, "CREATE TABLE ", table, " (\n\t"); + } + hasPrimary = 0; + ZEPHIR_INIT_VAR(createLines); + array_init(createLines); + zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/sqlite.zep", 329); + for ( + ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zephir_hash_move_forward_ex(_1, &_0) + ) { + ZEPHIR_GET_HVALUE(column, _2); + ZEPHIR_CALL_METHOD(&_3, column, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumndefinition", &_5, 0, column); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(columnLine); + ZEPHIR_CONCAT_SVSV(columnLine, "`", _3, "` ", _4); + ZEPHIR_CALL_METHOD(&_6, column, "isprimary", NULL, 0); + zephir_check_call_status(); + _7 = zephir_is_true(_6); + if (_7) { + _7 = !hasPrimary; + } + if (_7) { + zephir_concat_self_str(&columnLine, SL(" PRIMARY KEY") TSRMLS_CC); + hasPrimary = 1; + } + ZEPHIR_CALL_METHOD(&_8, column, "isautoincrement", NULL, 0); + zephir_check_call_status(); + _9 = zephir_is_true(_8); + if (_9) { + _9 = hasPrimary; + } + if (_9) { + zephir_concat_self_str(&columnLine, SL(" AUTOINCREMENT") TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&_10, column, "hasdefault", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_10)) { + ZEPHIR_CALL_METHOD(&defaultValue, column, "getdefault", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, defaultValue); + if (zephir_memnstr_str(_11, SL("CURRENT_TIMESTAMP"), "phalcon/db/dialect/sqlite.zep", 309)) { + zephir_concat_self_str(&columnLine, SL(" DEFAULT CURRENT_TIMESTAMP") TSRMLS_CC); + } else { + ZEPHIR_SINIT_NVAR(_12); + ZVAL_STRING(&_12, "\"", 0); + ZEPHIR_CALL_FUNCTION(&_13, "addcslashes", &_14, 143, defaultValue, &_12); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, " DEFAULT \"", _13, "\""); + zephir_concat_self(&columnLine, _15 TSRMLS_CC); + } + } + ZEPHIR_CALL_METHOD(&_13, column, "isnotnull", NULL, 0); + zephir_check_call_status(); + if (zephir_is_true(_13)) { + zephir_concat_self_str(&columnLine, SL(" NOT NULL") TSRMLS_CC); + } + zephir_array_append(&createLines, columnLine, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 323); + } + ZEPHIR_OBS_VAR(indexes); + if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { + zephir_is_iterable(indexes, &_17, &_16, 0, 0, "phalcon/db/dialect/sqlite.zep", 345); + for ( + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) + ) { + ZEPHIR_GET_HVALUE(index, _18); + ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&indexType, index, "gettype", NULL, 0); + zephir_check_call_status(); + _7 = ZEPHIR_IS_STRING(indexName, "PRIMARY"); + if (_7) { + _7 = !hasPrimary; + } + _9 = !(ZEPHIR_IS_EMPTY(indexType)); + if (_9) { + ZEPHIR_INIT_NVAR(_11); + zephir_fast_strtoupper(_11, indexType); + _9 = zephir_memnstr_str(_11, SL("UNIQUE"), "phalcon/db/dialect/sqlite.zep", 341); + } + if (_7) { + ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", &_19, 44, _4); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "PRIMARY KEY (", _3, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 340); + } else if (_9) { + ZEPHIR_CALL_METHOD(&_8, index, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "getcolumnlist", &_19, 44, _8); + zephir_check_call_status(); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SVS(_15, "UNIQUE (", _6, ")"); + zephir_array_append(&createLines, _15, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 342); + } + } + } + ZEPHIR_OBS_VAR(references); + if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { + zephir_is_iterable(references, &_21, &_20, 0, 0, "phalcon/db/dialect/sqlite.zep", 367); + for ( + ; zephir_hash_get_current_data_ex(_21, (void**) &_22, &_20) == SUCCESS + ; zephir_hash_move_forward_ex(_21, &_20) + ) { + ZEPHIR_GET_HVALUE(reference, _22); + ZEPHIR_CALL_METHOD(&_3, reference, "getname", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6, reference, "getcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", &_19, 44, _6); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_8, reference, "getreferencedtable", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_13, reference, "getreferencedcolumns", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "getcolumnlist", &_19, 44, _13); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(referenceSql); + ZEPHIR_CONCAT_SVSVSSVSVS(referenceSql, "CONSTRAINT `", _3, "` FOREIGN KEY (", _4, ")", " REFERENCES `", _8, "`(", _10, ")"); + ZEPHIR_CALL_METHOD(&onDelete, reference, "getondelete", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onDelete))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON DELETE ", onDelete); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + ZEPHIR_CALL_METHOD(&onUpdate, reference, "getonupdate", NULL, 0); + zephir_check_call_status(); + if (!(ZEPHIR_IS_EMPTY(onUpdate))) { + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_SV(_15, " ON UPDATE ", onUpdate); + zephir_concat_self(&referenceSql, _15 TSRMLS_CC); + } + zephir_array_append(&createLines, referenceSql, PH_SEPARATE, "phalcon/db/dialect/sqlite.zep", 365); + } + } + ZEPHIR_INIT_NVAR(_11); + zephir_fast_join_str(_11, SL(",\n\t"), createLines TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_15); + ZEPHIR_CONCAT_VS(_15, _11, "\n)"); + zephir_concat_self(&sql, _15 TSRMLS_CC); + RETURN_CCTOR(sql); } @@ -55812,7 +55979,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_OBS_VAR(viewSql); if (!(zephir_array_isset_string_fetch(&viewSql, definition, SS("sql"), 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 288); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'sql' is required in the definition array", "phalcon/db/dialect/sqlite.zep", 400); return; } ZEPHIR_CALL_METHOD(&_0, this_ptr, "preparetable", NULL, 0, viewName, schemaName); @@ -56173,17 +56340,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement_param = NULL; - zval *sqlStatement = NULL; + zval *sqlStatement; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_fetch_params(0, 1, 0, &sqlStatement); - zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56196,17 +56359,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables_param = NULL; - zval *sqlVariables = NULL; + zval *sqlVariables; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_fetch_params(0, 1, 0, &sqlVariables); - zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56219,17 +56378,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes_param = NULL; - zval *sqlBindTypes = NULL; + zval *sqlBindTypes; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_fetch_params(0, 1, 0, &sqlBindTypes); - zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -56242,17 +56397,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime_param = NULL, *_0; - double initialTime; + zval *initialTime; - zephir_fetch_params(0, 1, 0, &initialTime_param); + zephir_fetch_params(0, 1, 0, &initialTime); - initialTime = zephir_get_doubleval(initialTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, initialTime); - zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); } @@ -56265,17 +56416,13 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime_param = NULL, *_0; - double finalTime; + zval *finalTime; - zephir_fetch_params(0, 1, 0, &finalTime_param); + zephir_fetch_params(0, 1, 0, &finalTime); - finalTime = zephir_get_doubleval(finalTime_param); - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_DOUBLE(_0, finalTime); - zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); } @@ -58939,17 +59086,13 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type_param = NULL; - zval *type = NULL; + zval *type; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &type_param); + zephir_fetch_params(0, 1, 0, &type); - zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -60210,7 +60353,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Forms_Element) { static PHP_METHOD(Phalcon_Forms_Element, __construct) { - zval *name_param = NULL, *attributes = NULL; + int ZEPHIR_LAST_CALL_STATUS; + zval *name_param = NULL, *attributes = NULL, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -60226,6 +60370,11 @@ static PHP_METHOD(Phalcon_Forms_Element, __construct) { if (Z_TYPE_P(attributes) == IS_ARRAY) { zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); } + ZEPHIR_INIT_VAR(_0); + object_init_ex(_0, phalcon_validation_message_group_ce); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 3); + zephir_check_call_status(); + zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } @@ -60297,7 +60446,7 @@ static PHP_METHOD(Phalcon_Forms_Element, setFilters) { _0 = Z_TYPE_P(filters) != IS_ARRAY; } if (_0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 112); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_forms_exception_ce, "Wrong filter type added", "phalcon/forms/element.zep", 113); return; } zephir_update_property_this(this_ptr, SL("_filters"), filters TSRMLS_CC); @@ -60425,7 +60574,7 @@ static PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 209); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -60642,7 +60791,7 @@ static PHP_METHOD(Phalcon_Forms_Element, label) { } ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, " 0); - } - RETURN_MM_BOOL(0); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + RETURN_BOOL(zephir_fast_count_int(_0 TSRMLS_CC) > 0); } @@ -60768,25 +60898,15 @@ static PHP_METHOD(Phalcon_Forms_Element, setMessages) { static PHP_METHOD(Phalcon_Forms_Element, appendMessage) { int ZEPHIR_LAST_CALL_STATUS; - zval *message, *messages = NULL, *_0; + zval *message, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message); - ZEPHIR_OBS_VAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - if (Z_TYPE_P(messages) != IS_OBJECT) { - ZEPHIR_INIT_VAR(_0); - object_init_ex(_0, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 6); - zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_messages"), _0 TSRMLS_CC); - ZEPHIR_OBS_NVAR(messages); - zephir_read_property_this(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); - } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 0, message); + _0 = zephir_fetch_nproperty_this(this_ptr, SL("_messages"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(NULL, _0, "appendmessage", NULL, 0, message); zephir_check_call_status(); RETURN_THIS(); @@ -61346,7 +61466,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { if (byItemName) { if (Z_TYPE_P(messages) != IS_ARRAY) { object_init_ex(return_value, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_0, 3); zephir_check_call_status(); RETURN_MM(); } @@ -61354,7 +61474,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", &_0, 3); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 407); @@ -61387,7 +61507,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { } ZEPHIR_INIT_VAR(group); object_init_ex(group, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 6); + ZEPHIR_CALL_METHOD(NULL, group, "__construct", NULL, 3); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_messages"), name, group TSRMLS_CC); RETURN_CCTOR(group); @@ -69752,10 +69872,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_this(this_ptr, SL("_file"), file TSRMLS_CC); ZEPHIR_INIT_VAR(_1); object_init_ex(_1, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(_1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 0); + zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _1 TSRMLS_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); if ((zephir_file_exists(_2 TSRMLS_CC) == SUCCESS)) { @@ -69824,13 +69942,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_8 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_18); - ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); - zephir_check_temp_parameter(_18); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_18); + ZVAL_STRING(_18, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 0, _18); + zephir_check_temp_parameter(_18); + zephir_check_call_status(); ZEPHIR_INIT_NVAR(_18); ZVAL_LONG(_18, width); ZEPHIR_INIT_VAR(_19); @@ -70048,10 +70164,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); while (1) { _2 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_1); @@ -70240,10 +70354,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(fade); object_init_ex(fade, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(fade TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, fade, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9, reflection, "getimageheight", NULL, 0); @@ -70292,16 +70404,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(image); object_init_ex(image, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(image TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, image, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel); object_init_ex(pixel, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, pixel, "__construct", NULL, 0); + zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&_2, _1, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -70427,10 +70535,8 @@ 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(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(watermark TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, watermark, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _0); @@ -70500,10 +70606,8 @@ 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(SS("imagickdraw") TSRMLS_CC)); - if (zephir_has_constructor(draw TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, draw, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)", 0); ZEPHIR_SINIT_VAR(_1); @@ -70516,10 +70620,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(_4 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 0, color); + zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); if (fontfile && Z_STRLEN_P(fontfile)) { @@ -70738,10 +70840,8 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(mask); object_init_ex(mask, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(mask TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, mask, "__construct", NULL, 0); - zephir_check_call_status(); - } + 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); @@ -70814,26 +70914,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel1 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, pixel1, "__construct", NULL, 0, color); - zephir_check_call_status(); - } + 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(SS("imagickpixel") TSRMLS_CC)); - if (zephir_has_constructor(pixel2 TSRMLS_CC)) { - ZEPHIR_INIT_VAR(_4); - ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); - zephir_check_temp_parameter(_4); - zephir_check_call_status(); - } + ZEPHIR_INIT_VAR(_4); + ZVAL_STRING(_4, "transparent", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, pixel2, "__construct", NULL, 0, _4); + zephir_check_temp_parameter(_4); + zephir_check_call_status(); ZEPHIR_INIT_VAR(background); object_init_ex(background, zephir_get_internal_ce(SS("imagick") TSRMLS_CC)); - if (zephir_has_constructor(background TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, background, "__construct", NULL, 0); + zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -73388,17 +73482,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat_param = NULL; - zval *dateFormat = NULL; + zval *dateFormat; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_fetch_params(0, 1, 0, &dateFormat); - zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -73411,17 +73501,13 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format_param = NULL; - zval *format = NULL; + zval *format; - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &format_param); + zephir_fetch_params(0, 1, 0, &format); - zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); - ZEPHIR_MM_RESTORE(); } @@ -120377,7 +120463,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { zephir_concat_self_str(&code, SL("") TSRMLS_CC); + } else { ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VSVS(_2, macroName, " = \\Closure::bind(", macroName, ", $this); ?>"); zephir_concat_self(&code, _2 TSRMLS_CC); @@ -120443,26 +120531,26 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { ZVAL_NULL(compilation); ZEPHIR_OBS_VAR(extensions); zephir_read_property_this(&extensions, this_ptr, SL("_extensions"), PH_NOISY_CC); - zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2190); + zephir_is_iterable(statements, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2192); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(statement, _3); if (Z_TYPE_P(statement) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1990); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1992); return; } if (!(zephir_array_isset_string(statement, SS("type")))) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSV(_7, "Invalid statement in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1997 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 1999 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120481,10 +120569,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } } ZEPHIR_OBS_NVAR(type); - zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2018 TSRMLS_CC); + zephir_array_fetch_string(&type, statement, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2020 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 357)) { - zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2026 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2028 TSRMLS_CC); zephir_concat_self(&compilation, _5 TSRMLS_CC); break; } @@ -120520,7 +120608,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 307)) { ZEPHIR_OBS_NVAR(blockName); - zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2054 TSRMLS_CC); + zephir_array_fetch_string(&blockName, statement, SL("name"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2056 TSRMLS_CC); ZEPHIR_OBS_NVAR(blockStatements); zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(blocks); @@ -120531,7 +120619,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { array_init(blocks); } if (Z_TYPE_P(compilation) != IS_NULL) { - zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2069); + zephir_array_append(&blocks, compilation, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2071); ZEPHIR_INIT_NVAR(compilation); ZVAL_NULL(compilation); } @@ -120548,18 +120636,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } if (ZEPHIR_IS_LONG(type, 310)) { ZEPHIR_OBS_NVAR(path); - zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2091 TSRMLS_CC); + zephir_array_fetch_string(&path, statement, SL("path"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2093 TSRMLS_CC); ZEPHIR_OBS_NVAR(view); zephir_read_property_this(&view, this_ptr, SL("_view"), PH_NOISY_CC); if (Z_TYPE_P(view) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_11, view, "getviewsdir", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2095 TSRMLS_CC); + zephir_array_fetch_string(&_5, path, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); ZEPHIR_INIT_NVAR(finalPath); ZEPHIR_CONCAT_VV(finalPath, _11, _5); } else { ZEPHIR_OBS_NVAR(finalPath); - zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2097 TSRMLS_CC); + zephir_array_fetch_string(&finalPath, path, SL("value"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2099 TSRMLS_CC); } ZEPHIR_INIT_NVAR(extended); ZVAL_BOOL(extended, 1); @@ -120641,13 +120729,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementList) { } ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_view_engine_volt_exception_ce); - zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); - zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_array_fetch_string(&_5, statement, SL("file"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); + zephir_array_fetch_string(&_6, statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SVSVSV(_7, "Unknown statement ", type, " in ", _5, " on line ", _6); ZEPHIR_CALL_METHOD(NULL, _4, "__construct", &_8, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2182 TSRMLS_CC); + zephir_throw_exception_debug(_4, "phalcon/mvc/view/engine/volt/compiler.zep", 2184 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -120706,7 +120794,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_OBS_VAR(autoescape); if (zephir_array_isset_string_fetch(&autoescape, options, SS("autoescape"), 0 TSRMLS_CC)) { if (Z_TYPE_P(autoescape) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2227); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'autoescape' must be boolean", "phalcon/mvc/view/engine/volt/compiler.zep", 2229); return; } zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); @@ -120716,7 +120804,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { ZEPHIR_LAST_CALL_STATUS = phvolt_parse_view(intermediate, viewCode, currentPath TSRMLS_CC); zephir_check_call_status(); if (Z_TYPE_P(intermediate) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2239); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Invalid intermediate representation", "phalcon/mvc/view/engine/volt/compiler.zep", 2241); return; } ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", &_0, 383, intermediate, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); @@ -120734,7 +120822,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { zephir_read_property_this(&blocks, this_ptr, SL("_blocks"), PH_NOISY_CC); ZEPHIR_OBS_VAR(extendedBlocks); zephir_read_property_this(&extendedBlocks, this_ptr, SL("_extendedBlocks"), PH_NOISY_CC); - zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2305); + zephir_is_iterable(extendedBlocks, &_2, &_1, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 2307); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -120744,7 +120832,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { if (Z_TYPE_P(name) == IS_STRING) { if (zephir_array_isset(blocks, name)) { ZEPHIR_OBS_NVAR(localBlock); - zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2273 TSRMLS_CC); + zephir_array_fetch(&localBlock, blocks, name, PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2275 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_currentBlock"), name TSRMLS_CC); ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "_statementlist", &_0, 383, localBlock); zephir_check_call_status(); @@ -120763,7 +120851,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _compileSource) { } } else { if (extendsMode == 1) { - zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2298); + zephir_array_append(&finalCompilation, block, PH_SEPARATE, "phalcon/mvc/view/engine/volt/compiler.zep", 2300); } else { zephir_concat_self(&finalCompilation, block TSRMLS_CC); } @@ -120855,7 +120943,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { if (ZEPHIR_IS_EQUAL(path, compiledPath)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2347); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Template path and compilation template path cannot be the same", "phalcon/mvc/view/engine/volt/compiler.zep", 2349); return; } if (!((zephir_file_exists(path TSRMLS_CC) == SUCCESS))) { @@ -120865,7 +120953,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2354 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2356 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120878,7 +120966,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_CONCAT_SVS(_1, "Template file ", path, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2362 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/view/engine/volt/compiler.zep", 2364 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -120894,7 +120982,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { ZEPHIR_INIT_NVAR(_0); zephir_file_put_contents(_0, compiledPath, finalCompilation TSRMLS_CC); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2381); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Volt directory can't be written", "phalcon/mvc/view/engine/volt/compiler.zep", 2383); return; } RETURN_CCTOR(compilation); @@ -120965,49 +121053,49 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { if (Z_TYPE_P(options) == IS_ARRAY) { if (zephir_array_isset_string(options, SS("compileAlways"))) { ZEPHIR_OBS_NVAR(compileAlways); - zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2428 TSRMLS_CC); + zephir_array_fetch_string(&compileAlways, options, SL("compileAlways"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2430 TSRMLS_CC); if (Z_TYPE_P(compileAlways) != IS_BOOL) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2430); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compileAlways' must be a bool value", "phalcon/mvc/view/engine/volt/compiler.zep", 2432); return; } } if (zephir_array_isset_string(options, SS("prefix"))) { ZEPHIR_OBS_NVAR(prefix); - zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2438 TSRMLS_CC); + zephir_array_fetch_string(&prefix, options, SL("prefix"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2440 TSRMLS_CC); if (Z_TYPE_P(prefix) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2440); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'prefix' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2442); return; } } if (zephir_array_isset_string(options, SS("compiledPath"))) { ZEPHIR_OBS_NVAR(compiledPath); - zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2448 TSRMLS_CC); + zephir_array_fetch_string(&compiledPath, options, SL("compiledPath"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2450 TSRMLS_CC); if (Z_TYPE_P(compiledPath) != IS_STRING) { if (Z_TYPE_P(compiledPath) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2451); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledPath' must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2453); return; } } } if (zephir_array_isset_string(options, SS("compiledSeparator"))) { ZEPHIR_OBS_NVAR(compiledSeparator); - zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2460 TSRMLS_CC); + zephir_array_fetch_string(&compiledSeparator, options, SL("compiledSeparator"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2462 TSRMLS_CC); if (Z_TYPE_P(compiledSeparator) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2462); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledSeparator' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2464); return; } } if (zephir_array_isset_string(options, SS("compiledExtension"))) { ZEPHIR_OBS_NVAR(compiledExtension); - zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2470 TSRMLS_CC); + zephir_array_fetch_string(&compiledExtension, options, SL("compiledExtension"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2472 TSRMLS_CC); if (Z_TYPE_P(compiledExtension) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2472); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "'compiledExtension' must be a string", "phalcon/mvc/view/engine/volt/compiler.zep", 2474); return; } } if (zephir_array_isset_string(options, SS("stat"))) { ZEPHIR_OBS_NVAR(stat); - zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2480 TSRMLS_CC); + zephir_array_fetch_string(&stat, options, SL("stat"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 2482 TSRMLS_CC); } } if (Z_TYPE_P(compiledPath) == IS_STRING) { @@ -121039,11 +121127,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CALL_USER_FUNC_ARRAY(compiledTemplatePath, compiledPath, _2); zephir_check_call_status(); if (Z_TYPE_P(compiledTemplatePath) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2525); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath closure didn't return a valid string", "phalcon/mvc/view/engine/volt/compiler.zep", 2527); return; } } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2528); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "compiledPath must be a string or a closure", "phalcon/mvc/view/engine/volt/compiler.zep", 2530); return; } } @@ -121070,7 +121158,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Extends compilation file ", realCompiledPath, " could not be opened"); ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2562 TSRMLS_CC); + zephir_throw_exception_debug(_5, "phalcon/mvc/view/engine/volt/compiler.zep", 2564 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -121095,7 +121183,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { ZEPHIR_CONCAT_SVS(_6, "Compiled template file ", realCompiledPath, " does not exist"); ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _6); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2588 TSRMLS_CC); + zephir_throw_exception_debug(_3, "phalcon/mvc/view/engine/volt/compiler.zep", 2590 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -131686,7 +131774,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, readYaml) { zephir_array_fetch_long(&numberOfBytes, response, 1, PH_NOISY, "phalcon/queue/beanstalk.zep", 310 TSRMLS_CC); ZEPHIR_CALL_METHOD(&response, this_ptr, "read", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 390, response); + ZEPHIR_CALL_FUNCTION(&data, "yaml_parse", NULL, 0, response); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(numberOfBytes); @@ -131732,9 +131820,9 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { } ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, (length + 2)); - ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 391, connection, &_0); + ZEPHIR_CALL_FUNCTION(&data, "fread", NULL, 390, connection, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 392, connection); + ZEPHIR_CALL_FUNCTION(&_1, "stream_get_meta_data", NULL, 391, connection); zephir_check_call_status(); zephir_array_fetch_string(&_2, _1, SL("timed_out"), PH_NOISY | PH_READONLY, "phalcon/queue/beanstalk.zep", 354 TSRMLS_CC); if (zephir_is_true(_2)) { @@ -131750,7 +131838,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, read) { ZVAL_LONG(&_0, 16384); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "\r\n", 0); - ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 393, connection, &_0, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("stream_get_line", NULL, 392, connection, &_0, &_3); zephir_check_call_status(); RETURN_MM(); @@ -131782,7 +131870,7 @@ static PHP_METHOD(Phalcon_Queue_Beanstalk, write) { ZEPHIR_CPY_WRT(packet, _0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, zephir_fast_strlen_ev(packet)); - ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 394, connection, packet, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("fwrite", NULL, 393, connection, packet, &_1); zephir_check_call_status(); RETURN_MM(); @@ -132121,7 +132209,7 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if ((zephir_function_exists_ex(SS("openssl_random_pseudo_bytes") TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 403, _0); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_random_pseudo_bytes", NULL, 402, _0); zephir_check_call_status(); RETURN_MM(); } @@ -132137,11 +132225,11 @@ static PHP_METHOD(Phalcon_Security_Random, bytes) { if (!ZEPHIR_IS_FALSE_IDENTICAL(handle)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 406, handle, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "stream_set_read_buffer", NULL, 405, handle, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, len); - ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 391, handle, &_2); + ZEPHIR_CALL_FUNCTION(&ret, "fread", NULL, 390, handle, &_2); zephir_check_call_status(); zephir_fclose(handle TSRMLS_CC); if (zephir_fast_strlen_ev(ret) != len) { @@ -132177,7 +132265,7 @@ static PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); Z_SET_ISREF_P(_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 122, _3); @@ -132214,7 +132302,7 @@ static PHP_METHOD(Phalcon_Security_Random, base58) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "C*", 0); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 407, &_1, _0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 406, &_1, _0); zephir_check_call_status(); zephir_is_iterable(bytes, &_3, &_2, 0, 0, "phalcon/security/random.zep", 188); for ( @@ -132319,7 +132407,7 @@ static PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f", 0); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 407, &_2, _0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 406, &_2, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 216, _3); zephir_check_call_status(); @@ -132375,7 +132463,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, len); - ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 408, &_1); + ZEPHIR_CALL_FUNCTION(&hex, "dechex", NULL, 407, &_1); zephir_check_call_status(); if (((zephir_fast_strlen_ev(hex) & 1)) == 1) { ZEPHIR_INIT_VAR(_2); @@ -132384,7 +132472,7 @@ static PHP_METHOD(Phalcon_Security_Random, number) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "H*", 0); - ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 409, &_1, hex); + ZEPHIR_CALL_FUNCTION(&_3, "pack", NULL, 408, &_1, hex); zephir_check_call_status(); zephir_concat_self(&bin, _3 TSRMLS_CC); _4 = ZEPHIR_STRING_OFFSET(bin, 0); @@ -132422,19 +132510,19 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, 1); - ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 410, rnd, _11, &_14, &_15); + ZEPHIR_CALL_FUNCTION(&_16, "substr_replace", &_17, 409, rnd, _11, &_14, &_15); zephir_check_call_status(); ZEPHIR_CPY_WRT(rnd, _16); } while (ZEPHIR_LT(bin, rnd)); ZEPHIR_SINIT_NVAR(_10); ZVAL_STRING(&_10, "H*", 0); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 407, &_10, rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 406, &_10, rnd); zephir_check_call_status(); Z_SET_ISREF_P(ret); ZEPHIR_CALL_FUNCTION(&_11, "array_shift", NULL, 122, ret); Z_UNSET_ISREF_P(ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 411, _11); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 410, _11); zephir_check_call_status(); RETURN_MM(); @@ -133399,7 +133487,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SS("arrayiterator") TSRMLS_CC)); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 414, _1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 413, _1); zephir_check_call_status(); RETURN_MM(); @@ -133734,9 +133822,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "gc", 1); zephir_array_fast_append(_11, _6); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _5, _7, _8, _9, _10, _11); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _5, _7, _8, _9, _10, _11); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_12, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -133953,9 +134041,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134170,9 +134258,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(_5); ZVAL_STRING(_5, "gc", 1); zephir_array_fast_append(_10, _5); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 412, _4, _6, _7, _8, _9, _10); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 411, _4, _6, _7, _8, _9, _10); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 413, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_11, 412, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -134348,7 +134436,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { } ZEPHIR_OBS_VAR(value); if (!(zephir_array_isset_string_fetch(&value, params, SS("value"), 0 TSRMLS_CC))) { - ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 5, id, params); + ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 6, id, params); zephir_check_call_status(); } else { zephir_array_unset_string(¶ms, SS("value"), PH_SEPARATE); @@ -134394,7 +134482,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { zephir_array_unset_string(¶ms, SS("using"), PH_SEPARATE); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 418, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134422,7 +134510,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 419, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134565,7 +134653,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 419, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134959,7 +135047,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, 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", 43); @@ -134972,7 +135060,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, 429, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 428, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -135008,7 +135096,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 430, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135166,7 +135254,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135199,22 +135287,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 423); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 422, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 431, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 432, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135312,12 +135400,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(domain && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 433, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 434, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135348,7 +135436,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 435, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); zephir_check_call_status(); RETURN_MM(); @@ -135363,7 +135451,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, 435, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, _0); zephir_check_call_status(); RETURN_MM(); @@ -135425,14 +135513,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 436, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135488,12 +135576,12 @@ 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", NULL, 437, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 436, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 417, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135606,7 +135694,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 428, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -136074,7 +136162,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, 438, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 437, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136623,7 +136711,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", 267 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 6, _0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, _0); zephir_check_call_status(); RETURN_MM(); @@ -136688,7 +136776,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136721,7 +136809,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136791,7 +136879,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 440, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136824,7 +136912,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136941,7 +137029,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137005,7 +137093,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(&_1, this_ptr, "compare", NULL, 441, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 440, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -137048,7 +137136,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137146,7 +137234,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, 442, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 441, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -137179,7 +137267,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137210,7 +137298,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 443, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -137230,7 +137318,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 444, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -137295,7 +137383,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 445, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137328,7 +137416,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137433,7 +137521,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137546,7 +137634,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137662,7 +137750,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 438, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137728,7 +137816,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137765,7 +137853,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137848,7 +137936,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 438, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137910,7 +137998,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137995,7 +138083,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 438, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138051,7 +138139,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 438, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -138169,7 +138257,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138302,7 +138390,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138408,7 +138496,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138501,7 +138589,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138617,7 +138705,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138751,7 +138839,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 438, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138788,7 +138876,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 438, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138929,7 +139017,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 438, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -139034,7 +139122,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 438, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/safe/phalcon.zep.h b/build/safe/phalcon.zep.h index 41c7cc4a29f..89cf6505f41 100644 --- a/build/safe/phalcon.zep.h +++ b/build/safe/phalcon.zep.h @@ -9778,11 +9778,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlstatement, 0, 0, 1 ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlvariables, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlVariables, 0) + ZEND_ARG_INFO(0, sqlVariables) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setsqlbindtypes, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, sqlBindTypes, 0) + ZEND_ARG_INFO(0, sqlBindTypes) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_profiler_item_setinitialtime, 0, 0, 1) From cafc8a75de8bec27469a4593215a5d5a9ae5baac Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Fri, 18 Sep 2015 16:13:17 -0500 Subject: [PATCH 58/60] Added CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e4c731ef1a..b206be9485b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# [2.0.8](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.8) (2015-XX-XX) +# [2.0.8](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.8) (2015-09-19) - Added `Phalcon\Security\Random::base58` - to generate a random base58 string - Added `Phalcon\Logger\Adapter::isTransaction()` to check whether the logger is currently in transaction mode or not (Phalcon 1.3 behavior) From b0581c2d11c6be8948cc2d5d9e192d34546613e4 Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Fri, 25 Sep 2015 10:27:18 -0500 Subject: [PATCH 59/60] Using Zephir 0.8.0 --- config.json | 2 +- ext/kernel/extended/fcall.c | 2 +- ext/kernel/fcall.c | 55 ++- ext/kernel/fcall.h | 192 +------- ext/kernel/fcall_internal.h | 3 + ext/kernel/hash.c | 38 -- ext/kernel/hash.h | 4 - ext/kernel/main.c | 14 + ext/kernel/main.h | 6 +- ext/kernel/object.c | 8 +- ext/kernel/operators.c | 4 + ext/kernel/operators.h | 8 +- ext/kernel/require.c | 4 +- ext/kernel/string.c | 2 +- ext/phalcon/0__closure.zep.c | 2 +- ext/phalcon/acl/adapter/memory.zep.c | 2 +- ext/phalcon/acl/resource.zep.c | 6 +- ext/phalcon/acl/role.zep.c | 6 +- ext/phalcon/annotations/adapter/apc.zep.c | 2 - ext/phalcon/annotations/adapter/files.zep.c | 3 +- ext/phalcon/annotations/adapter/memory.zep.c | 2 - ext/phalcon/annotations/adapter/xcache.zep.c | 2 - ext/phalcon/annotations/annotation.zep.c | 4 - ext/phalcon/annotations/reflection.zep.c | 18 +- ext/phalcon/assets/collection.zep.c | 69 ++- ext/phalcon/assets/filters/cssmin.zep.c | 1 - ext/phalcon/assets/filters/jsmin.zep.c | 1 - ext/phalcon/assets/filters/none.zep.c | 1 - ext/phalcon/assets/inline.zep.c | 12 +- ext/phalcon/assets/inline/css.zep.c | 10 +- ext/phalcon/assets/inline/js.zep.c | 10 +- ext/phalcon/assets/manager.zep.c | 19 +- ext/phalcon/assets/resource.zep.c | 24 +- ext/phalcon/assets/resource/css.zep.c | 17 +- ext/phalcon/cache/backend.zep.c | 18 +- ext/phalcon/cache/backend/apc.zep.c | 10 +- ext/phalcon/cache/backend/file.zep.c | 20 +- ext/phalcon/cache/backend/libmemcached.zep.c | 8 +- ext/phalcon/cache/backend/memcache.zep.c | 6 +- ext/phalcon/cache/backend/memory.zep.c | 10 +- ext/phalcon/cache/backend/mongo.zep.c | 16 +- ext/phalcon/cache/backend/redis.zep.c | 6 +- ext/phalcon/cache/backend/xcache.zep.c | 6 +- ext/phalcon/cache/frontend/output.zep.c | 12 +- ext/phalcon/cli/console.zep.c | 25 +- ext/phalcon/cli/router.zep.c | 21 +- ext/phalcon/cli/router/route.zep.c | 9 +- ext/phalcon/config.zep.c | 6 +- ext/phalcon/config/adapter/ini.zep.c | 2 - ext/phalcon/config/adapter/json.zep.c | 1 - ext/phalcon/config/adapter/php.zep.c | 1 - ext/phalcon/config/adapter/yaml.zep.c | 10 +- ext/phalcon/crypt.zep.c | 27 +- ext/phalcon/db.zep.c | 1 - ext/phalcon/db/adapter.zep.c | 77 +--- ext/phalcon/db/adapter/pdo.zep.c | 14 +- ext/phalcon/db/adapter/pdo/oracle.zep.c | 1 - ext/phalcon/db/adapter/pdo/postgresql.zep.c | 5 - ext/phalcon/db/column.zep.c | 29 +- ext/phalcon/db/dialect.zep.c | 24 - ext/phalcon/db/dialect/mysql.zep.c | 50 +-- ext/phalcon/db/dialect/oracle.zep.c | 36 -- ext/phalcon/db/dialect/postgresql.zep.c | 47 +- ext/phalcon/db/dialect/sqlite.zep.c | 42 +- ext/phalcon/db/index.zep.c | 9 - ext/phalcon/db/profiler.zep.c | 4 +- ext/phalcon/db/profiler/item.zep.c | 68 +-- ext/phalcon/db/reference.zep.c | 15 - ext/phalcon/debug.zep.c | 113 ++--- ext/phalcon/debug/dump.zep.c | 183 ++++---- ext/phalcon/di.zep.c | 57 +-- ext/phalcon/di/factorydefault.zep.c | 122 +++--- ext/phalcon/di/factorydefault/cli.zep.c | 64 +-- ext/phalcon/di/injectable.zep.c | 5 +- ext/phalcon/di/service.zep.c | 27 +- ext/phalcon/di/service/builder.zep.c | 11 +- ext/phalcon/dispatcher.zep.c | 24 +- ext/phalcon/escaper.zep.c | 18 +- ext/phalcon/events/event.zep.c | 35 +- ext/phalcon/events/manager.zep.c | 56 ++- ext/phalcon/filter.zep.c | 20 +- ext/phalcon/flash.zep.c | 13 +- ext/phalcon/flash/direct.zep.c | 2 +- ext/phalcon/flash/session.zep.c | 43 +- ext/phalcon/forms/element.zep.c | 5 +- ext/phalcon/forms/element/check.zep.c | 2 +- ext/phalcon/forms/element/date.zep.c | 2 +- ext/phalcon/forms/element/email.zep.c | 2 +- ext/phalcon/forms/element/file.zep.c | 2 +- ext/phalcon/forms/element/hidden.zep.c | 2 +- ext/phalcon/forms/element/numeric.zep.c | 2 +- ext/phalcon/forms/element/password.zep.c | 2 +- ext/phalcon/forms/element/radio.zep.c | 2 +- ext/phalcon/forms/element/select.zep.c | 4 +- ext/phalcon/forms/element/submit.zep.c | 2 +- ext/phalcon/forms/element/text.zep.c | 2 +- ext/phalcon/forms/element/textarea.zep.c | 2 +- ext/phalcon/forms/form.zep.c | 23 +- ext/phalcon/forms/manager.zep.c | 2 +- ext/phalcon/http/cookie.zep.c | 37 +- ext/phalcon/http/request.zep.c | 184 +++++--- ext/phalcon/http/request/file.zep.c | 17 +- ext/phalcon/http/response.zep.c | 15 +- ext/phalcon/http/response/cookies.zep.c | 29 +- ext/phalcon/http/response/headers.zep.c | 7 +- ext/phalcon/image/adapter.zep.c | 26 +- ext/phalcon/image/adapter/gd.zep.c | 291 ++++++------- ext/phalcon/image/adapter/imagick.zep.c | 77 ++-- ext/phalcon/kernel.zep.c | 1 - ext/phalcon/loader.zep.c | 28 +- ext/phalcon/logger/adapter.zep.c | 71 ++- ext/phalcon/logger/adapter/file.zep.c | 7 +- ext/phalcon/logger/adapter/firephp.zep.c | 10 +- ext/phalcon/logger/adapter/stream.zep.c | 5 +- ext/phalcon/logger/adapter/syslog.zep.c | 12 +- ext/phalcon/logger/formatter/firephp.zep.c | 26 +- ext/phalcon/logger/formatter/line.zep.c | 28 +- ext/phalcon/logger/multiple.zep.c | 53 +-- ext/phalcon/mvc/application.zep.c | 8 +- ext/phalcon/mvc/collection.zep.c | 77 ++-- ext/phalcon/mvc/collection/behavior.zep.c | 2 - .../mvc/collection/behavior/softdelete.zep.c | 1 - .../collection/behavior/timestampable.zep.c | 3 +- ext/phalcon/mvc/collection/document.zep.c | 4 - ext/phalcon/mvc/collection/manager.zep.c | 4 - ext/phalcon/mvc/dispatcher.zep.c | 4 - ext/phalcon/mvc/micro.zep.c | 61 +-- ext/phalcon/mvc/micro/collection.zep.c | 23 +- ext/phalcon/mvc/micro/lazyloader.zep.c | 4 +- ext/phalcon/mvc/model.zep.c | 303 +++++++------ ext/phalcon/mvc/model/behavior.zep.c | 2 - .../mvc/model/behavior/softdelete.zep.c | 1 - .../mvc/model/behavior/timestampable.zep.c | 3 +- ext/phalcon/mvc/model/criteria.zep.c | 32 +- ext/phalcon/mvc/model/manager.zep.c | 73 +--- ext/phalcon/mvc/model/message.zep.c | 4 - ext/phalcon/mvc/model/metadata.zep.c | 136 +++--- ext/phalcon/mvc/model/metadata/apc.zep.c | 2 - ext/phalcon/mvc/model/metadata/files.zep.c | 4 +- .../mvc/model/metadata/libmemcached.zep.c | 8 +- ext/phalcon/mvc/model/metadata/memcache.zep.c | 8 +- ext/phalcon/mvc/model/metadata/memory.zep.c | 2 - ext/phalcon/mvc/model/metadata/redis.zep.c | 8 +- ext/phalcon/mvc/model/metadata/session.zep.c | 2 - .../model/metadata/strategy/annotations.zep.c | 24 +- .../metadata/strategy/introspection.zep.c | 24 +- ext/phalcon/mvc/model/metadata/xcache.zep.c | 2 - ext/phalcon/mvc/model/query.zep.c | 309 +++++++------ ext/phalcon/mvc/model/query/builder.zep.c | 45 +- ext/phalcon/mvc/model/query/lang.zep.c | 1 - ext/phalcon/mvc/model/query/status.zep.c | 6 +- ext/phalcon/mvc/model/relation.zep.c | 3 - ext/phalcon/mvc/model/resultset.zep.c | 51 ++- ext/phalcon/mvc/model/resultset/complex.zep.c | 15 +- ext/phalcon/mvc/model/resultset/simple.zep.c | 13 +- ext/phalcon/mvc/model/row.zep.c | 1 - ext/phalcon/mvc/model/transaction.zep.c | 16 +- .../mvc/model/transaction/failed.zep.c | 1 - .../mvc/model/transaction/manager.zep.c | 35 +- ext/phalcon/mvc/model/validationfailed.zep.c | 1 - ext/phalcon/mvc/model/validator.zep.c | 4 - ext/phalcon/mvc/model/validator/email.zep.c | 2 +- .../mvc/model/validator/inclusionin.zep.c | 2 +- ext/phalcon/mvc/model/validator/ip.zep.c | 2 +- .../mvc/model/validator/stringlength.zep.c | 2 +- ext/phalcon/mvc/model/validator/url.zep.c | 2 +- ext/phalcon/mvc/router.zep.c | 46 +- ext/phalcon/mvc/router/annotations.zep.c | 35 +- ext/phalcon/mvc/router/group.zep.c | 11 +- ext/phalcon/mvc/router/route.zep.c | 8 +- ext/phalcon/mvc/url.zep.c | 5 +- ext/phalcon/mvc/view.zep.c | 190 +++++--- ext/phalcon/mvc/view/engine.zep.c | 1 - ext/phalcon/mvc/view/engine/php.zep.c | 3 +- ext/phalcon/mvc/view/engine/volt.zep.c | 39 +- .../mvc/view/engine/volt/compiler.zep.c | 411 +++++++++++------- ext/phalcon/mvc/view/simple.zep.c | 56 +-- ext/phalcon/paginator/adapter/model.zep.c | 1 - .../paginator/adapter/nativearray.zep.c | 4 +- ext/phalcon/queue/beanstalk.zep.c | 45 +- ext/phalcon/registry.zep.c | 46 +- ext/phalcon/security.zep.c | 33 +- ext/phalcon/security/random.zep.c | 44 +- ext/phalcon/session/adapter.zep.c | 27 +- .../session/adapter/libmemcached.zep.c | 8 +- ext/phalcon/session/adapter/memcache.zep.c | 8 +- ext/phalcon/session/adapter/redis.zep.c | 8 +- ext/phalcon/session/bag.zep.c | 21 +- ext/phalcon/tag.zep.c | 63 ++- ext/phalcon/tag/select.zep.c | 12 +- ext/phalcon/text.zep.c | 70 ++- ext/phalcon/translate/adapter.zep.c | 6 - ext/phalcon/translate/adapter/csv.zep.c | 11 +- ext/phalcon/translate/adapter/gettext.zep.c | 43 +- .../translate/adapter/nativearray.zep.c | 5 +- .../interpolator/associativearray.zep.c | 1 - .../translate/interpolator/indexedarray.zep.c | 7 +- ext/phalcon/validation.zep.c | 11 +- ext/phalcon/validation/message.zep.c | 7 +- ext/phalcon/validation/message/group.zep.c | 7 +- ext/phalcon/validation/validator.zep.c | 4 - ext/phalcon/validation/validator/alnum.zep.c | 5 +- ext/phalcon/validation/validator/alpha.zep.c | 5 +- .../validation/validator/between.zep.c | 3 +- .../validation/validator/confirmation.zep.c | 9 +- .../validation/validator/creditcard.zep.c | 9 +- ext/phalcon/validation/validator/digit.zep.c | 5 +- ext/phalcon/validation/validator/email.zep.c | 5 +- .../validation/validator/exclusionin.zep.c | 3 +- ext/phalcon/validation/validator/file.zep.c | 32 +- .../validation/validator/identical.zep.c | 3 +- .../validation/validator/inclusionin.zep.c | 5 +- .../validation/validator/numericality.zep.c | 3 +- .../validation/validator/presenceof.zep.c | 3 +- ext/phalcon/validation/validator/regex.zep.c | 3 +- .../validation/validator/stringlength.zep.c | 7 +- .../validation/validator/uniqueness.zep.c | 3 +- ext/phalcon/validation/validator/url.zep.c | 5 +- ext/phalcon/version.zep.c | 8 +- ext/php_phalcon.h | 2 +- 220 files changed, 2826 insertions(+), 2891 deletions(-) create mode 100644 ext/kernel/fcall_internal.h diff --git a/config.json b/config.json index 5842ea355b4..8c37b43620d 100644 --- a/config.json +++ b/config.json @@ -11,7 +11,7 @@ "description": "Web framework delivered as a C-extension for PHP", "author": "Phalcon Team and contributors", "version": "2.0.8", - "verbose": false, + "verbose": true, "optimizer-dirs": [ "optimizers" ], diff --git a/ext/kernel/extended/fcall.c b/ext/kernel/extended/fcall.c index 988b2c6824e..d95c7395351 100644 --- a/ext/kernel/extended/fcall.c +++ b/ext/kernel/extended/fcall.c @@ -104,7 +104,7 @@ int zephir_call_func_aparams_fast(zval **return_value_ptr, zephir_fcall_cache_en zend_class_entry *calling_scope = NULL; zend_class_entry *called_scope = NULL; zend_execute_data execute_data; - zval ***params, ***params_ptr, ***params_array = NULL; + zval ***params, ***params_array = NULL; zval **static_params_array[10]; zend_class_entry *old_scope = EG(scope); zend_function_state *function_state = &EX(function_state); diff --git a/ext/kernel/fcall.c b/ext/kernel/fcall.c index 597de053120..2076fc4bca4 100644 --- a/ext/kernel/fcall.c +++ b/ext/kernel/fcall.c @@ -1320,7 +1320,60 @@ int zephir_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache #endif +/** + * If a retval_ptr is specified, PHP's implementation of zend_eval_stringl + * simply prepends a "return " which causes only the first statement to be executed + */ void zephir_eval_php(zval *str, zval *retval_ptr, char *context TSRMLS_DC) { - zend_eval_string_ex(Z_STRVAL_P(str), retval_ptr, context, 1 TSRMLS_CC); + zend_op_array *new_op_array = NULL; + zend_uint original_compiler_options; + zend_op_array *original_active_op_array = EG(active_op_array); + + original_compiler_options = CG(compiler_options); + CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; + new_op_array = zend_compile_string(str, context TSRMLS_CC); + CG(compiler_options) = original_compiler_options; + + if (new_op_array) + { + zval *local_retval_ptr = NULL; + zval **original_return_value_ptr_ptr = EG(return_value_ptr_ptr); + zend_op **original_opline_ptr = EG(opline_ptr); + int orig_interactive = CG(interactive); + + EG(return_value_ptr_ptr) = &local_retval_ptr; + EG(active_op_array) = new_op_array; + EG(no_extensions) = 1; + if (!EG(active_symbol_table)) { + zend_rebuild_symbol_table(TSRMLS_C); + } + CG(interactive) = 0; + + zend_try { + zend_execute(new_op_array TSRMLS_CC); + } zend_catch { + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + zend_bailout(); + } zend_end_try(); + + CG(interactive) = orig_interactive; + if (local_retval_ptr) { + if (retval_ptr) { + COPY_PZVAL_TO_ZVAL(*retval_ptr, local_retval_ptr); + } else { + zval_ptr_dtor(&local_retval_ptr); + } + } else if (retval_ptr) { + INIT_ZVAL(*retval_ptr); + } + + EG(no_extensions) = 0; + EG(opline_ptr) = original_opline_ptr; + EG(active_op_array) = original_active_op_array; + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + EG(return_value_ptr_ptr) = original_return_value_ptr_ptr; + } } diff --git a/ext/kernel/fcall.h b/ext/kernel/fcall.h index ab47d9f1dde..30788eee861 100644 --- a/ext/kernel/fcall.h +++ b/ext/kernel/fcall.h @@ -24,6 +24,7 @@ #include "php_ext.h" #include "kernel/main.h" #include "kernel/memory.h" +#include "kernel/fcall_internal.h" #include "kernel/extended/fcall.h" #include @@ -190,188 +191,27 @@ typedef enum _zephir_call_type { * @} */ -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - method(0, return_value, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* Saves the if pointer, and called/calling scope */ +#define ZEPHIR_BACKUP_THIS_PTR() \ + zval *old_this_ptr = this_ptr; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, return_value, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_THIS_PTR() ZEPHIR_SET_THIS(old_this_ptr) +#define ZEPHIR_SET_THIS(pzv) EG(This) = pzv; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_BACKUP_SCOPE() \ + zend_class_entry *old_scope = EG(scope); \ + zend_class_entry *old_called_scope = EG(called_scope); -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_SCOPE() \ + EG(called_scope) = old_called_scope; \ + EG(scope) = old_scope; \ -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P4(object, method, p1, p2, p3, p4) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - Z_ADDREF_P(p4); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - Z_DELREF_P(p4); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_SET_SCOPE(_scope, _scope_called) \ + EG(scope) = _scope; \ + EG(called_scope) = _scope_called; \ -/** - * Call a internal method using a local return value ptr, since the return value isn't used - */ -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - method(0, rv, rvp, object, 0 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, rv, rvp, object, 0, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, rv, rvp, object, 0, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, rv, rvp, object, 0, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P0(return_value_ptr, object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - method(0, *return_value_ptr, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P1(return_value_ptr, object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P2(return_value_ptr, object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P3(return_value_ptr, object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* End internal calls */ #define ZEPHIR_CALL_METHODW(return_value_ptr, object, method, cache, cache_slot, ...) \ do { \ diff --git a/ext/kernel/fcall_internal.h b/ext/kernel/fcall_internal.h new file mode 100644 index 00000000000..5c4ae534877 --- /dev/null +++ b/ext/kernel/fcall_internal.h @@ -0,0 +1,3 @@ +#ifndef ZEPHIR_KERNEL_FCALL_INTERNAL_H +#define ZEPHIR_KERNEL_FCALL_INTERNAL_H +#endif diff --git a/ext/kernel/hash.c b/ext/kernel/hash.c index 138884fdc41..0f75d42125e 100644 --- a/ext/kernel/hash.c +++ b/ext/kernel/hash.c @@ -28,8 +28,6 @@ #include "kernel/memory.h" -#if PHP_VERSION_ID < 70000 - int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) { #if PHP_VERSION_ID < 50400 @@ -85,42 +83,6 @@ int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_ return SUCCESS; } -#else - -void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent) -{ - #if ZEND_DEBUG - ht->inconsistent = 0; - #endif - - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->nNumUsed = 0; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->arData = NULL; - ht->arHash = (zend_uint*)&uninitialized_bucket; - ht->pDestructor = pDestructor; - ht->nInternalPointer = INVALID_IDX; - if (persistent) { - ht->u.flags = HASH_FLAG_PERSISTENT | HASH_FLAG_APPLY_PROTECTION; - } else { - ht->u.flags = HASH_FLAG_APPLY_PROTECTION; - } -} - -#endif - - int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) { ulong h; diff --git a/ext/kernel/hash.h b/ext/kernel/hash.h index d79e0324e91..ab9dc665ce6 100644 --- a/ext/kernel/hash.h +++ b/ext/kernel/hash.h @@ -25,11 +25,7 @@ #include #include -#if PHP_VERSION_ID < 70000 int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); -#else -void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent); -#endif 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); diff --git a/ext/kernel/main.c b/ext/kernel/main.c index 451ff476031..e39782e98b0 100644 --- a/ext/kernel/main.c +++ b/ext/kernel/main.c @@ -290,6 +290,20 @@ int zephir_is_callable(zval *var TSRMLS_DC) { return (int) retval; } +int zephir_is_scalar(zval *var) { + + switch (Z_TYPE_P(var)) { + case IS_BOOL: + case IS_DOUBLE: + case IS_LONG: + case IS_STRING: + return 1; + break; + } + + return 0; +} + /** * Initialize an array to start an iteration over it */ diff --git a/ext/kernel/main.h b/ext/kernel/main.h index 85fdc58b2ba..4069a5b6e53 100644 --- a/ext/kernel/main.h +++ b/ext/kernel/main.h @@ -71,6 +71,7 @@ int zephir_init_global(char *global, unsigned int global_length TSRMLS_DC); int zephir_get_global(zval **arr, const char *global, unsigned int global_length TSRMLS_DC); int zephir_is_callable(zval *var TSRMLS_DC); +int zephir_is_scalar(zval *var); int zephir_function_exists(const zval *function_name TSRMLS_DC); int zephir_function_exists_ex(const char *func_name, unsigned int func_len TSRMLS_DC); int zephir_function_quick_exists_ex(const char *func_name, unsigned int func_len, unsigned long key TSRMLS_DC); @@ -485,6 +486,9 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { object_properties_init(object, class_type); \ } +#define ZEPHIR_MAKE_REF(obj) Z_SET_ISREF_P(obj); +#define ZEPHIR_UNREF(obj) Z_UNSET_ISREF_P(obj); + #define ZEPHIR_REGISTER_INTERFACE(ns, classname, lower_ns, name, methods) \ { \ zend_class_entry ce; \ @@ -568,6 +572,6 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define ZEPHIR_CHECK_POINTER(v) if (!v) fprintf(stderr, "%s:%d\n", __PRETTY_FUNCTION__, __LINE__); -#define zephir_is_php_version(id) ((PHP_VERSION_ID >= id && PHP_VERSION_ID <= (id + 10000)) ? 1 : 0) +#define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) #endif /* ZEPHIR_KERNEL_MAIN_H */ diff --git a/ext/kernel/object.c b/ext/kernel/object.c index 7764907bef6..efa09566b1d 100644 --- a/ext/kernel/object.c +++ b/ext/kernel/object.c @@ -841,7 +841,8 @@ int zephir_update_property_zval(zval *object, const char *property_name, unsigne /** * Updates properties on this_ptr (quick) - * Variables must be defined in the class definition. This function ignores magic methods or dynamic properties + * If a variable is not defined in the class definition, this fallbacks to update_property_zval + * function ignores magic methods or dynamic properties */ int zephir_update_property_this_quick(zval *object, const char *property_name, zend_uint property_length, zval *value, ulong key TSRMLS_DC){ @@ -894,7 +895,7 @@ int zephir_update_property_this_quick(zval *object, const char *property_name, z 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 (likely(zephir_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 */ @@ -931,6 +932,9 @@ int zephir_update_property_this_quick(zval *object, const char *property_name, z } } + } else { + EG(scope) = old_scope; + return zephir_update_property_zval(object, property_name, property_length, value TSRMLS_CC); } } diff --git a/ext/kernel/operators.c b/ext/kernel/operators.c index e4ef0c6a93a..bf30db3ae8a 100644 --- a/ext/kernel/operators.c +++ b/ext/kernel/operators.c @@ -372,7 +372,11 @@ int zephir_add_function_ex(zval *result, zval *op1, zval *op2 TSRMLS_DC) { int status; int ref_count = Z_REFCOUNT_P(result); int is_ref = Z_ISREF_P(result); +#if PHP_VERSION_ID < 50400 status = add_function(result, op1, op2 TSRMLS_CC); +#else + status = fast_add_function(result, op1, op2 TSRMLS_CC); +#endif Z_SET_REFCOUNT_P(result, ref_count); Z_SET_ISREF_TO_P(result, is_ref); return status; diff --git a/ext/kernel/operators.h b/ext/kernel/operators.h index e06e028cdd9..9878e3bbeda 100644 --- a/ext/kernel/operators.h +++ b/ext/kernel/operators.h @@ -85,12 +85,12 @@ void zephir_make_printable_zval(zval *expr, zval *expr_copy, int *use_copy); +#define zephir_add_function(result, left, right) zephir_add_function_ex(result, left, right TSRMLS_CC) + #if PHP_VERSION_ID < 50400 -#define zephir_sub_function(result, left, right, t) sub_function(result, left, right TSRMLS_CC) -#define zephir_add_function(result, left, right, t) zephir_add_function_ex(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) sub_function(result, left, right TSRMLS_CC) #else -#define zephir_add_function(result, left, right, t) fast_add_function(result, left, right TSRMLS_CC) -#define zephir_sub_function(result, left, right, t) fast_sub_function(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) fast_sub_function(result, left, right TSRMLS_CC) #endif #if PHP_VERSION_ID < 50600 diff --git a/ext/kernel/require.c b/ext/kernel/require.c index c282a9d4674..bff12c36763 100644 --- a/ext/kernel/require.c +++ b/ext/kernel/require.c @@ -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, mode; + int ret, use_ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -54,7 +54,7 @@ int zephir_require_ret(zval **return_value_ptr, const char *require_path TSRMLS_ if (!require_path) { /* @TODO, throw an exception here */ return FAILURE; - } + } use_ret = !!return_value_ptr; diff --git a/ext/kernel/string.c b/ext/kernel/string.c index 11d5e8397e5..e409cca0ace 100644 --- a/ext/kernel/string.c +++ b/ext/kernel/string.c @@ -532,7 +532,7 @@ void zephir_fast_str_replace(zval **return_value_ptr, zval *search, zval *replac do { zval *params[] = { search, replace, subject }; zval_ptr_dtor(return_value_ptr); - return_value_ptr = NULL; + *return_value_ptr = NULL; zephir_call_func_aparams(return_value_ptr, "str_replace", sizeof("str_replace")-1, NULL, 0, 3, params TSRMLS_CC); return; } while(0); diff --git a/ext/phalcon/0__closure.zep.c b/ext/phalcon/0__closure.zep.c index 741f40b90a2..ebb59d70824 100644 --- a/ext/phalcon/0__closure.zep.c +++ b/ext/phalcon/0__closure.zep.c @@ -39,7 +39,7 @@ PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 445, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); diff --git a/ext/phalcon/acl/adapter/memory.zep.c b/ext/phalcon/acl/adapter/memory.zep.c index 68a8daa42d2..93a7aa7adde 100644 --- a/ext/phalcon/acl/adapter/memory.zep.c +++ b/ext/phalcon/acl/adapter/memory.zep.c @@ -280,7 +280,7 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { if (!(zephir_array_isset(_3, roleName))) { zephir_update_property_array(this_ptr, SL("_roleInherits"), roleName, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } - zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 1, roleName); + zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 2, roleName); RETURN_MM_BOOL(1); } diff --git a/ext/phalcon/acl/resource.zep.c b/ext/phalcon/acl/resource.zep.c index 4ade7a6f0b6..571cd0451a5 100644 --- a/ext/phalcon/acl/resource.zep.c +++ b/ext/phalcon/acl/resource.zep.c @@ -46,7 +46,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Resource) { /** * Resource name - * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getName) { @@ -57,7 +56,6 @@ PHP_METHOD(Phalcon_Acl_Resource, getName) { /** * Resource name - * @var string */ PHP_METHOD(Phalcon_Acl_Resource, __toString) { @@ -68,7 +66,6 @@ PHP_METHOD(Phalcon_Acl_Resource, __toString) { /** * Resource description - * @var string */ PHP_METHOD(Phalcon_Acl_Resource, getDescription) { @@ -92,7 +89,6 @@ PHP_METHOD(Phalcon_Acl_Resource, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -112,7 +108,7 @@ PHP_METHOD(Phalcon_Acl_Resource, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/acl/role.zep.c b/ext/phalcon/acl/role.zep.c index 916a2ce2da5..b25aca065d4 100644 --- a/ext/phalcon/acl/role.zep.c +++ b/ext/phalcon/acl/role.zep.c @@ -47,7 +47,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Acl_Role) { /** * Role name - * @var string */ PHP_METHOD(Phalcon_Acl_Role, getName) { @@ -58,7 +57,6 @@ PHP_METHOD(Phalcon_Acl_Role, getName) { /** * Role name - * @var string */ PHP_METHOD(Phalcon_Acl_Role, __toString) { @@ -69,7 +67,6 @@ PHP_METHOD(Phalcon_Acl_Role, __toString) { /** * Role description - * @var string */ PHP_METHOD(Phalcon_Acl_Role, getDescription) { @@ -93,7 +90,6 @@ PHP_METHOD(Phalcon_Acl_Role, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -113,7 +109,7 @@ PHP_METHOD(Phalcon_Acl_Role, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/annotations/adapter/apc.zep.c b/ext/phalcon/annotations/adapter/apc.zep.c index 49cadd4ad01..d88dd005bc8 100644 --- a/ext/phalcon/annotations/adapter/apc.zep.c +++ b/ext/phalcon/annotations/adapter/apc.zep.c @@ -91,7 +91,6 @@ PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -127,7 +126,6 @@ PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { diff --git a/ext/phalcon/annotations/adapter/files.zep.c b/ext/phalcon/annotations/adapter/files.zep.c index aaab445fd80..3cc76acd2e9 100644 --- a/ext/phalcon/annotations/adapter/files.zep.c +++ b/ext/phalcon/annotations/adapter/files.zep.c @@ -120,7 +120,6 @@ PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -139,7 +138,7 @@ PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, " 0, 1, 0) FROM `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_NAME`= '", tableName, "' AND `TABLE_SCHEMA` = '", schemaName, "'"); RETURN_MM(); } @@ -1281,7 +1250,6 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -1296,7 +1264,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT IF(COUNT(*) > 0, 1, 0) FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_NAME`= '", viewName, "' AND `TABLE_SCHEMA`='", schemaName, "'"); RETURN_MM(); } @@ -1325,7 +1293,6 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1370,7 +1337,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SHOW TABLES FROM `", schemaName, "`"); RETURN_MM(); } @@ -1397,7 +1364,6 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -1407,7 +1373,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT `TABLE_NAME` AS view_name FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_SCHEMA` = '", schemaName, "' ORDER BY view_name"); RETURN_MM(); } @@ -1431,7 +1397,6 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1468,7 +1433,6 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1485,7 +1449,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { ZVAL_STRING(sql, "SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,REFERENCED_TABLE_SCHEMA,REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME IS NOT NULL AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "CONSTRAINT_SCHEMA = '", schema, "' AND TABLE_NAME = '", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -1513,7 +1477,6 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1530,7 +1493,7 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { ZVAL_STRING(sql, "SELECT TABLES.TABLE_TYPE AS table_type,TABLES.AUTO_INCREMENT AS auto_increment,TABLES.ENGINE AS engine,TABLES.TABLE_COLLATION AS table_collation FROM INFORMATION_SCHEMA.TABLES WHERE ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_VSVSVS(return_value, sql, "TABLES.TABLE_SCHEMA = '", schema, "' AND TABLES.TABLE_NAME = '", table, "'"); RETURN_MM(); } @@ -1553,7 +1516,6 @@ PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { definition = definition_param; - ZEPHIR_OBS_VAR(options); if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { ZEPHIR_INIT_VAR(tableOptions); diff --git a/ext/phalcon/db/dialect/oracle.zep.c b/ext/phalcon/db/dialect/oracle.zep.c index 4a391784829..7994a95c64a 100644 --- a/ext/phalcon/db/dialect/oracle.zep.c +++ b/ext/phalcon/db/dialect/oracle.zep.c @@ -53,7 +53,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { 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)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { @@ -205,7 +204,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -216,7 +214,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -245,7 +242,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -256,7 +252,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -288,7 +283,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -299,7 +293,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -329,7 +322,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -340,7 +332,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -370,7 +361,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -381,7 +371,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -392,7 +381,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -441,7 +429,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -452,7 +439,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -481,7 +467,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -492,7 +477,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -521,7 +505,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -532,7 +515,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -543,7 +525,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -573,7 +554,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -584,7 +564,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -594,7 +573,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { definition = definition_param; - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; @@ -617,7 +595,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -628,7 +605,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -642,7 +618,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -675,7 +650,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -683,7 +657,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -721,7 +694,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -741,7 +713,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -774,7 +745,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -857,7 +827,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -908,7 +877,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -990,7 +958,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1037,7 +1004,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1088,7 +1054,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1144,7 +1109,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { 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)) { zephir_get_strval(table, table_param); } else { diff --git a/ext/phalcon/db/dialect/postgresql.zep.c b/ext/phalcon/db/dialect/postgresql.zep.c index 3a99627297d..53b74410b24 100644 --- a/ext/phalcon/db/dialect/postgresql.zep.c +++ b/ext/phalcon/db/dialect/postgresql.zep.c @@ -241,7 +241,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -252,7 +251,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -331,7 +329,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -342,7 +339,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -489,7 +485,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -500,7 +495,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -511,7 +505,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -543,7 +536,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -554,7 +546,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -612,7 +603,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -623,7 +613,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -634,7 +623,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -664,7 +652,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -675,7 +662,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -711,7 +697,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -722,7 +707,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -754,7 +738,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -765,7 +748,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -824,7 +806,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -835,7 +816,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -846,7 +826,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -882,7 +861,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -893,7 +871,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -903,7 +880,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { definition = definition_param; - ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); @@ -1128,7 +1104,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -1148,7 +1123,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -1182,7 +1156,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -1190,7 +1163,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -1228,7 +1200,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -1248,7 +1219,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -1285,7 +1255,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -1300,7 +1269,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM information_schema.tables WHERE table_schema = '", schemaName, "' AND table_name='", tableName, "'"); RETURN_MM(); } @@ -1324,7 +1293,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -1339,7 +1307,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM pg_views WHERE viewname='", viewName, "' AND schemaname='", schemaName, "'"); RETURN_MM(); } @@ -1367,7 +1335,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1382,7 +1349,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { } - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT DISTINCT c.column_name AS Field, c.data_type AS Type, c.character_maximum_length AS Size, c.numeric_precision AS NumericSize, c.numeric_scale AS NumericScale, c.is_nullable AS Null, CASE WHEN pkc.column_name NOTNULL THEN 'PRI' ELSE '' END AS Key, CASE WHEN c.data_type LIKE '%int%' AND c.column_default LIKE '%nextval%' THEN 'auto_increment' ELSE '' END AS Extra, c.ordinal_position AS Position, c.column_default FROM information_schema.columns c LEFT JOIN ( SELECT kcu.column_name, kcu.table_name, kcu.table_schema FROM information_schema.table_constraints tc INNER JOIN information_schema.key_column_usage kcu on (kcu.constraint_name = tc.constraint_name and kcu.table_name=tc.table_name and kcu.table_schema=tc.table_schema) WHERE tc.constraint_type='PRIMARY KEY') pkc ON (c.column_name=pkc.column_name AND c.table_schema = pkc.table_schema AND c.table_name=pkc.table_name) WHERE c.table_schema='", schema, "' AND c.table_name='", table, "' ORDER BY c.ordinal_position"); RETURN_MM(); } @@ -1414,7 +1381,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT table_name FROM information_schema.tables WHERE table_schema = '", schemaName, "' ORDER BY table_name"); RETURN_MM(); } @@ -1462,7 +1429,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1497,7 +1463,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1514,7 +1479,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZVAL_STRING(sql, "SELECT tc.table_name as TABLE_NAME, kcu.column_name as COLUMN_NAME, tc.constraint_name as CONSTRAINT_NAME, tc.table_catalog as REFERENCED_TABLE_SCHEMA, ccu.table_name AS REFERENCED_TABLE_NAME, ccu.column_name AS REFERENCED_COLUMN_NAME FROM information_schema.table_constraints AS tc JOIN information_schema.key_column_usage AS kcu ON tc.constraint_name = kcu.constraint_name JOIN information_schema.constraint_column_usage AS ccu ON ccu.constraint_name = tc.constraint_name WHERE constraint_type = 'FOREIGN KEY' AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "tc.table_schema = '", schema, "' AND tc.table_name='", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -1542,7 +1507,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1571,7 +1535,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, _getTableOptions) { definition = definition_param; - RETURN_STRING("", 1); } diff --git a/ext/phalcon/db/dialect/sqlite.zep.c b/ext/phalcon/db/dialect/sqlite.zep.c index 9dd3a41cf13..7293d98ffc6 100644 --- a/ext/phalcon/db/dialect/sqlite.zep.c +++ b/ext/phalcon/db/dialect/sqlite.zep.c @@ -209,7 +209,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -220,7 +219,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -288,7 +286,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -299,7 +296,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -331,7 +327,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -342,7 +337,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -353,7 +347,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -383,7 +376,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -394,7 +386,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -411,7 +402,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { } else { ZVAL_STRING(sql, "CREATE INDEX \"", 1); } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CALL_METHOD(&_0, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); @@ -450,7 +441,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -461,7 +451,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -472,7 +461,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -481,7 +469,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "DROP INDEX \"", schemaName, "\".\"", indexName, "\""); RETURN_MM(); } @@ -505,7 +493,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -516,7 +503,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -545,7 +531,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -556,7 +541,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -585,7 +569,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -596,7 +579,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -625,7 +607,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -636,7 +617,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -647,7 +627,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -682,7 +661,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -693,7 +671,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -703,7 +680,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { definition = definition_param; - ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(temporary); @@ -890,7 +866,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -910,7 +885,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -944,7 +918,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -952,7 +925,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -990,7 +962,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -1010,7 +981,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -1046,7 +1016,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -1081,7 +1050,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -1120,7 +1088,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1186,7 +1153,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -1215,7 +1181,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1250,7 +1215,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { 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)) { zephir_get_strval(index, index_param); } else { @@ -1279,7 +1243,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -1314,7 +1277,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { diff --git a/ext/phalcon/db/index.zep.c b/ext/phalcon/db/index.zep.c index 1e155418faa..059248f7ff0 100644 --- a/ext/phalcon/db/index.zep.c +++ b/ext/phalcon/db/index.zep.c @@ -60,8 +60,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Index) { /** * Index name - * - * @var string */ PHP_METHOD(Phalcon_Db_Index, getName) { @@ -72,8 +70,6 @@ PHP_METHOD(Phalcon_Db_Index, getName) { /** * Index columns - * - * @var array */ PHP_METHOD(Phalcon_Db_Index, getColumns) { @@ -84,8 +80,6 @@ PHP_METHOD(Phalcon_Db_Index, getColumns) { /** * Index type - * - * @var string */ PHP_METHOD(Phalcon_Db_Index, getType) { @@ -110,7 +104,6 @@ PHP_METHOD(Phalcon_Db_Index, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -118,7 +111,6 @@ PHP_METHOD(Phalcon_Db_Index, __construct) { ZVAL_EMPTY_STRING(name); } columns = columns_param; - if (!type) { type = ZEPHIR_GLOBAL(global_null); } @@ -147,7 +139,6 @@ PHP_METHOD(Phalcon_Db_Index, __set_state) { data = data_param; - ZEPHIR_OBS_VAR(indexName); if (!(zephir_array_isset_string_fetch(&indexName, data, SS("_name"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "_name parameter is required", "phalcon/db/index.zep", 71); diff --git a/ext/phalcon/db/profiler.zep.c b/ext/phalcon/db/profiler.zep.c index 946b5dc6d0b..35ee13b7dac 100644 --- a/ext/phalcon/db/profiler.zep.c +++ b/ext/phalcon/db/profiler.zep.c @@ -152,9 +152,9 @@ PHP_METHOD(Phalcon_Db_Profiler, stopProfile) { zephir_check_call_status(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_totalSeconds"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_1); - sub_function(_1, finalTime, initialTime TSRMLS_CC); + zephir_sub_function(_1, finalTime, initialTime); ZEPHIR_INIT_VAR(_2); - zephir_add_function_ex(_2, _0, _1 TSRMLS_CC); + zephir_add_function(_2, _0, _1); zephir_update_property_this(this_ptr, SL("_totalSeconds"), _2 TSRMLS_CC); zephir_update_property_array_append(this_ptr, SL("_allProfiles"), activeProfile TSRMLS_CC); if ((zephir_method_exists_ex(this_ptr, SS("afterendprofile") TSRMLS_CC) == SUCCESS)) { diff --git a/ext/phalcon/db/profiler/item.zep.c b/ext/phalcon/db/profiler/item.zep.c index af0142a85f5..e3e4fd8536d 100644 --- a/ext/phalcon/db/profiler/item.zep.c +++ b/ext/phalcon/db/profiler/item.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/operators.h" +#include "kernel/memory.h" /** @@ -68,25 +68,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { /** * SQL statement related to the profile - * - * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * SQL statement related to the profile - * - * @var string */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { @@ -97,25 +97,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { /** * SQL variables related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * SQL variables related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { @@ -126,25 +126,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { /** * SQL bind types related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * SQL bind types related to the profile - * - * @var array */ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { @@ -155,25 +155,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { /** * Timestamp when the profile started - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } /** * Timestamp when the profile started - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { @@ -184,25 +184,25 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { /** * Timestamp when the profile ended - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } /** * Timestamp when the profile ended - * - * @var double */ PHP_METHOD(Phalcon_Db_Profiler_Item, getFinalTime) { @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Db_Profiler_Item, getTotalElapsedSeconds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finalTime"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_initialTime"), PH_NOISY_CC); - sub_function(return_value, _0, _1 TSRMLS_CC); + zephir_sub_function(return_value, _0, _1); return; } diff --git a/ext/phalcon/db/reference.zep.c b/ext/phalcon/db/reference.zep.c index 06fe9973532..8727eb290d8 100644 --- a/ext/phalcon/db/reference.zep.c +++ b/ext/phalcon/db/reference.zep.c @@ -92,8 +92,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Reference) { /** * Constraint name - * - * @var string */ PHP_METHOD(Phalcon_Db_Reference, getName) { @@ -118,8 +116,6 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedSchema) { /** * Referenced Table - * - * @var string */ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { @@ -130,8 +126,6 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedTable) { /** * Local reference columns - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getColumns) { @@ -142,8 +136,6 @@ PHP_METHOD(Phalcon_Db_Reference, getColumns) { /** * Referenced Columns - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { @@ -154,8 +146,6 @@ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns) { /** * ON DELETE - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { @@ -166,8 +156,6 @@ PHP_METHOD(Phalcon_Db_Reference, getOnDelete) { /** * ON UPDATE - * - * @var array */ PHP_METHOD(Phalcon_Db_Reference, getOnUpdate) { @@ -192,7 +180,6 @@ PHP_METHOD(Phalcon_Db_Reference, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -202,7 +189,6 @@ PHP_METHOD(Phalcon_Db_Reference, __construct) { definition = definition_param; - zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_OBS_VAR(referencedTable); if (zephir_array_isset_string_fetch(&referencedTable, definition, SS("referencedTable"), 0 TSRMLS_CC)) { @@ -264,7 +250,6 @@ PHP_METHOD(Phalcon_Db_Reference, __set_state) { data = data_param; - ZEPHIR_OBS_VAR(constraintName); if (!(zephir_array_isset_string_fetch(&constraintName, data, SS("_referenceName"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(constraintName); diff --git a/ext/phalcon/debug.zep.c b/ext/phalcon/debug.zep.c index 8f06a749dea..e299fc49ab1 100644 --- a/ext/phalcon/debug.zep.c +++ b/ext/phalcon/debug.zep.c @@ -69,7 +69,6 @@ PHP_METHOD(Phalcon_Debug, setUri) { 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)) { zephir_get_strval(uri, uri_param); } else { @@ -96,7 +95,11 @@ PHP_METHOD(Phalcon_Debug, setShowBackTrace) { showBackTrace = zephir_get_boolval(showBackTrace_param); - zephir_update_property_this(this_ptr, SL("_showBackTrace"), showBackTrace ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showBackTrace) { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -114,7 +117,11 @@ PHP_METHOD(Phalcon_Debug, setShowFiles) { showFiles = zephir_get_boolval(showFiles_param); - zephir_update_property_this(this_ptr, SL("_showFiles"), showFiles ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFiles) { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -133,7 +140,11 @@ PHP_METHOD(Phalcon_Debug, setShowFileFragment) { showFileFragment = zephir_get_boolval(showFileFragment_param); - zephir_update_property_this(this_ptr, SL("_showFileFragment"), showFileFragment ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFileFragment) { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -323,19 +334,18 @@ PHP_METHOD(Phalcon_Debug, _escapeString) { */ PHP_METHOD(Phalcon_Debug, _getArrayDump) { + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_9 = NULL; HashTable *_2; HashPosition _1; zend_bool _0; - zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL; + zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL; zval *argument = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &argument_param, &n); argument = argument_param; - if (!n) { ZEPHIR_INIT_VAR(n); ZVAL_LONG(n, 0); @@ -363,47 +373,45 @@ PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); - zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_scalar(v)) { ZEPHIR_INIT_NVAR(varDump); if (ZEPHIR_IS_STRING(v, "")) { ZEPHIR_CONCAT_SVS(varDump, "[", k, "] => (empty string)"); } else { - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_escapestring", &_7, 0, v); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_escapestring", &_5, 0, v); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _6); + ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _4); } zephir_array_append(&dump, varDump, PH_SEPARATE, "phalcon/debug.zep", 178); continue; } if (Z_TYPE_P(v) == IS_ARRAY) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, (zephir_get_numberval(n) + 1)); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_getarraydump", &_7, 154, v, _6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 183); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Array(", _4, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 183); continue; } if (Z_TYPE_P(v) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - zephir_get_class(_8, v, 0 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Object(", _8, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 188); + ZEPHIR_INIT_NVAR(_6); + zephir_get_class(_6, v, 0 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Object(", _6, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 188); continue; } if (Z_TYPE_P(v) == IS_NULL) { - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "[", k, "] => null"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 193); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "[", k, "] => null"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 193); continue; } - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSV(_10, "[", k, "] => ", v); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 197); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "[", k, "] => ", v); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 197); } zephir_fast_join_str(return_value, SL(", "), dump TSRMLS_CC); RETURN_MM(); @@ -415,18 +423,16 @@ PHP_METHOD(Phalcon_Debug, _getArrayDump) { */ PHP_METHOD(Phalcon_Debug, _getVarDump) { - zephir_fcall_cache_entry *_2 = NULL; + zephir_fcall_cache_entry *_1 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *variable, *className, *dumpedObject = NULL, *_0 = NULL, *_1 = NULL; + zval *variable, *className, *dumpedObject = NULL, *_0 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &variable); - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); - zephir_check_call_status(); - if (zephir_is_true(_0)) { + if (zephir_is_scalar(variable)) { if (Z_TYPE_P(variable) == IS_BOOL) { if (zephir_is_true(variable)) { RETURN_MM_STRING("true", 1); @@ -448,9 +454,9 @@ PHP_METHOD(Phalcon_Debug, _getVarDump) { if ((zephir_method_exists_ex(variable, SS("dump") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&dumpedObject, variable, "dump", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 0, dumpedObject); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 0, dumpedObject); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _1, ")"); + ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _0, ")"); RETURN_MM(); } else { ZEPHIR_CONCAT_SVS(return_value, "Object(", className, ")"); @@ -458,9 +464,9 @@ PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 154, variable); zephir_check_call_status(); - ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); + ZEPHIR_CONCAT_SVS(return_value, "Array(", _0, ")"); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_NULL) { @@ -482,7 +488,7 @@ PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -504,7 +510,7 @@ PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -579,7 +585,6 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { trace = trace_param; - ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, n); ZEPHIR_INIT_VAR(_1); @@ -607,7 +612,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -640,9 +645,9 @@ 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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -703,7 +708,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -813,7 +818,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -822,7 +827,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -850,7 +855,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); @@ -863,7 +868,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { zend_print_zval(_1, 0); RETURN_MM_NULL(); } - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); ZEPHIR_INIT_VAR(className); zephir_get_class(className, exception, 0 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_1, exception, "getmessage", NULL, 0); @@ -917,7 +922,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -936,7 +941,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, "
"); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, ""); @@ -962,7 +967,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", _13, "
", keyRequest, "", value, "
", keyRequest, "", _13, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 165); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -977,7 +982,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); @@ -1010,7 +1015,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_VS(_18, _1, ""); zephir_concat_self(&html, _18 TSRMLS_CC); zend_print_zval(html, 0); - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_false)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_false) TSRMLS_CC); RETURN_MM_BOOL(1); } diff --git a/ext/phalcon/debug/dump.zep.c b/ext/phalcon/debug/dump.zep.c index d2aeb214bf3..ca469bd9017 100644 --- a/ext/phalcon/debug/dump.zep.c +++ b/ext/phalcon/debug/dump.zep.c @@ -90,8 +90,8 @@ PHP_METHOD(Phalcon_Debug_Dump, __construct) { zephir_fetch_params(1, 0, 2, &styles_param, &detailed_param); if (!styles_param) { - ZEPHIR_INIT_VAR(styles); - array_init(styles); + ZEPHIR_INIT_VAR(styles); + array_init(styles); } else { zephir_get_arrval(styles, styles_param); } @@ -115,7 +115,11 @@ PHP_METHOD(Phalcon_Debug_Dump, __construct) { ZEPHIR_INIT_VAR(_1); array_init(_1); zephir_update_property_this(this_ptr, SL("_methods"), _1 TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_detailed"), detailed ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (detailed) { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -140,7 +144,7 @@ PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -163,7 +167,6 @@ PHP_METHOD(Phalcon_Debug_Dump, getStyle) { 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)) { zephir_get_strval(type, type_param); } else { @@ -258,13 +261,13 @@ PHP_METHOD(Phalcon_Debug_Dump, one) { PHP_METHOD(Phalcon_Debug_Dump, output) { zend_bool _15, _16, _17; - HashTable *_8, *_24, *_35; - HashPosition _7, _23, _34; - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_19 = NULL, *_21 = NULL, *_28 = NULL, *_29 = NULL, *_30 = NULL, *_32 = NULL; + HashTable *_8, *_25, *_36; + HashPosition _7, _24, _35; + zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_20 = NULL, *_22 = NULL, *_29 = NULL, *_30 = NULL, *_31 = NULL, *_33 = NULL; zval *_1 = NULL, *_12 = NULL, *_38 = NULL; int tab, ZEPHIR_LAST_CALL_STATUS; zval *name = NULL, *_0; - zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_20 = NULL, *_22, **_25, *_26 = NULL, *_27 = NULL, *_31, *_33, **_36, *_37 = NULL, *_39 = NULL, _40; + zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_19 = NULL, *_21 = NULL, *_23, **_26, *_27 = NULL, *_28 = NULL, *_32, *_34, **_37, *_39 = NULL, _40; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &variable, &name_param, &tab_param); @@ -286,7 +289,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(space, " ", 1); ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - if (name && Z_STRLEN_P(name)) { + if (!(!name) && Z_STRLEN_P(name)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_VS(_0, name, " "); ZEPHIR_CPY_WRT(output, _0); @@ -350,14 +353,14 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_5); @@ -384,7 +387,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -395,7 +398,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -405,17 +408,17 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _18 TSRMLS_CC); } zephir_concat_self_str(&output, SL(" (\n") TSRMLS_CC); - _22 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); - if (!(zephir_is_true(_22))) { + _23 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); + if (!(zephir_is_true(_23))) { ZEPHIR_CALL_FUNCTION(&_10, "get_object_vars", NULL, 24, variable); zephir_check_call_status(); - zephir_is_iterable(_10, &_24, &_23, 0, 0, "phalcon/debug/dump.zep", 171); + zephir_is_iterable(_10, &_25, &_24, 0, 0, "phalcon/debug/dump.zep", 171); for ( - ; zephir_hash_get_current_data_ex(_24, (void**) &_25, &_23) == SUCCESS - ; zephir_hash_move_forward_ex(_24, &_23) + ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zephir_hash_move_forward_ex(_25, &_24) ) { - ZEPHIR_GET_HMKEY(key, _24, _23); - ZEPHIR_GET_HVALUE(value, _25); + ZEPHIR_GET_HMKEY(key, _25, _24); + ZEPHIR_GET_HVALUE(value, _26); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); @@ -424,35 +427,35 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":key"), &key, PH_COPY | PH_SEPARATE); add_assoc_stringl_ex(_12, SS(":type"), SL("public"), 1); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _13, _26); + ZEPHIR_CONCAT_VV(_14, _13, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } else { do { - Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); - Z_UNSET_ISREF_P(variable); + ZEPHIR_MAKE_REF(variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_29, 170, variable); + ZEPHIR_UNREF(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { continue; @@ -467,9 +470,9 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_30, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_31, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -478,8 +481,8 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_array_isset_long(key, 1)) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "private", 1); - zephir_array_fetch_long(&_31, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); - if (ZEPHIR_IS_STRING(_31, "*")) { + zephir_array_fetch_long(&_32, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); + if (ZEPHIR_IS_STRING(_32, "*")) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "protected", 1); } @@ -492,36 +495,36 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); - Z_UNSET_ISREF_P(key); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + ZEPHIR_MAKE_REF(key); + ZEPHIR_CALL_FUNCTION(&_27, "end", &_33, 171, key); + ZEPHIR_UNREF(key); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":key"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":type"), &type, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _18, _26); + ZEPHIR_CONCAT_VV(_14, _18, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); @@ -548,25 +551,25 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); zephir_get_class(_3, variable, 0 TSRMLS_CC); - _33 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); - if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { + _34 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); + if (zephir_fast_in_array(_3, _34 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "[already listed]\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } else { - zephir_is_iterable(attr, &_35, &_34, 0, 0, "phalcon/debug/dump.zep", 219); + zephir_is_iterable(attr, &_36, &_35, 0, 0, "phalcon/debug/dump.zep", 219); for ( - ; zephir_hash_get_current_data_ex(_35, (void**) &_36, &_34) == SUCCESS - ; zephir_hash_move_forward_ex(_35, &_34) + ; zephir_hash_get_current_data_ex(_36, (void**) &_37, &_35) == SUCCESS + ; zephir_hash_move_forward_ex(_36, &_35) ) { - ZEPHIR_GET_HVALUE(value, _36); - ZEPHIR_INIT_NVAR(_37); - zephir_get_class(_37, variable, 0 TSRMLS_CC); - zephir_update_property_array_append(this_ptr, SL("_methods"), _37 TSRMLS_CC); + ZEPHIR_GET_HVALUE(value, _37); + ZEPHIR_INIT_NVAR(_19); + zephir_get_class(_19, variable, 0 TSRMLS_CC); + zephir_update_property_array_append(this_ptr, SL("_methods"), _19 TSRMLS_CC); if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); @@ -574,10 +577,10 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_13, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":method"), &value, PH_COPY | PH_SEPARATE); @@ -591,23 +594,23 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); + ZEPHIR_CALL_FUNCTION(&_27, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); - zephir_array_update_string(&_38, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_38, SL(":style"), &_28, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_38, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:method();\n", 0); - ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _38); + ZEPHIR_CALL_FUNCTION(&_28, "strtr", &_6, 54, &_5, _38); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_39); - ZEPHIR_CONCAT_VV(_39, _26, _27); + ZEPHIR_CONCAT_VV(_39, _27, _28); zephir_concat_self(&output, _39 TSRMLS_CC); } } @@ -615,9 +618,9 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, ")\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, ")\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); @@ -643,7 +646,7 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -696,14 +699,14 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(&_40, "utf-8", 0); ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); + ZEPHIR_CALL_FUNCTION(&_27, "nl2br", NULL, 174, _2); zephir_check_call_status(); - zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_1, SL(":var"), &_27, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "String (:length) \":var\"", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _1); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); - ZEPHIR_CONCAT_VV(return_value, output, _26); + ZEPHIR_CONCAT_VV(return_value, output, _27); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_BOOL) { @@ -835,7 +838,7 @@ PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( diff --git a/ext/phalcon/di.zep.c b/ext/phalcon/di.zep.c index 49d116d7b22..a0f37a908dd 100644 --- a/ext/phalcon/di.zep.c +++ b/ext/phalcon/di.zep.c @@ -140,7 +140,7 @@ PHP_METHOD(Phalcon_Di, set) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -150,7 +150,6 @@ PHP_METHOD(Phalcon_Di, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -166,7 +165,13 @@ PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -179,7 +184,7 @@ PHP_METHOD(Phalcon_Di, set) { PHP_METHOD(Phalcon_Di, setShared) { int ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *definition, *service, _0; + zval *name_param = NULL, *definition, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -189,7 +194,6 @@ PHP_METHOD(Phalcon_Di, setShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -200,9 +204,9 @@ PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_SINIT_VAR(_0); - ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_BOOL(_0, 1); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -225,7 +229,6 @@ PHP_METHOD(Phalcon_Di, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -251,7 +254,7 @@ PHP_METHOD(Phalcon_Di, attempt) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -261,7 +264,6 @@ PHP_METHOD(Phalcon_Di, attempt) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -279,7 +281,13 @@ PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (shared) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _1); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -303,7 +311,6 @@ PHP_METHOD(Phalcon_Di, setRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -334,7 +341,6 @@ PHP_METHOD(Phalcon_Di, getRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -378,7 +384,6 @@ PHP_METHOD(Phalcon_Di, getService) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -422,7 +427,6 @@ PHP_METHOD(Phalcon_Di, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -549,7 +553,6 @@ PHP_METHOD(Phalcon_Di, getShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -564,12 +567,20 @@ PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_OBS_VAR(instance); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_sharedInstances"), PH_NOISY_CC); if (zephir_array_isset_fetch(&instance, _0, name, 0 TSRMLS_CC)) { - zephir_update_property_this(this_ptr, SL("_freshInstance"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { ZEPHIR_CALL_METHOD(&instance, this_ptr, "get", NULL, 0, name, parameters); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_sharedInstances"), name, instance TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_freshInstance"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_CCTOR(instance); @@ -590,7 +601,6 @@ PHP_METHOD(Phalcon_Di, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -640,7 +650,6 @@ PHP_METHOD(Phalcon_Di, offsetExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -679,7 +688,6 @@ PHP_METHOD(Phalcon_Di, offsetSet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -717,7 +725,6 @@ PHP_METHOD(Phalcon_Di, offsetGet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -747,7 +754,6 @@ PHP_METHOD(Phalcon_Di, offsetUnset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -781,7 +787,6 @@ PHP_METHOD(Phalcon_Di, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -873,7 +878,7 @@ PHP_METHOD(Phalcon_Di, getDefault) { PHP_METHOD(Phalcon_Di, reset) { - zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &(ZEPHIR_GLOBAL(global_null)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &ZEPHIR_GLOBAL(global_null) TSRMLS_CC); } diff --git a/ext/phalcon/di/factorydefault.zep.c b/ext/phalcon/di/factorydefault.zep.c index 3142e70cc2c..1f1df29d4e0 100644 --- a/ext/phalcon/di/factorydefault.zep.c +++ b/ext/phalcon/di/factorydefault.zep.c @@ -38,7 +38,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault) { */ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; @@ -55,9 +55,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -68,9 +68,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -81,9 +81,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -94,9 +94,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -107,9 +107,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -120,9 +120,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -133,9 +133,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -146,9 +146,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -159,9 +159,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -172,9 +172,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -185,9 +185,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -198,9 +198,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -211,9 +211,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -224,9 +224,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flash", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -237,9 +237,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flashSession", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -250,9 +250,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -263,9 +263,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -287,9 +287,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -300,9 +300,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -313,9 +313,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "assets", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); diff --git a/ext/phalcon/di/factorydefault/cli.zep.c b/ext/phalcon/di/factorydefault/cli.zep.c index a0ea39d4a1d..920508be47d 100644 --- a/ext/phalcon/di/factorydefault/cli.zep.c +++ b/ext/phalcon/di/factorydefault/cli.zep.c @@ -39,14 +39,14 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault_Cli) { */ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 175); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -56,9 +56,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -69,9 +69,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -82,9 +82,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -95,9 +95,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -108,9 +108,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -121,9 +121,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -134,9 +134,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -147,9 +147,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -160,9 +160,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -173,9 +173,9 @@ PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); diff --git a/ext/phalcon/di/injectable.zep.c b/ext/phalcon/di/injectable.zep.c index 4269b9759e1..cdaf581e387 100644 --- a/ext/phalcon/di/injectable.zep.c +++ b/ext/phalcon/di/injectable.zep.c @@ -156,7 +156,6 @@ PHP_METHOD(Phalcon_Di_Injectable, __get) { 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)) { zephir_get_strval(propertyName, propertyName_param); } else { @@ -184,7 +183,7 @@ PHP_METHOD(Phalcon_Di_Injectable, __get) { RETURN_CCTOR(service); } if (ZEPHIR_IS_STRING(propertyName, "di")) { - zephir_update_property_zval(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); RETURN_CCTOR(dependencyInjector); } if (ZEPHIR_IS_STRING(propertyName, "persistent")) { @@ -199,7 +198,7 @@ PHP_METHOD(Phalcon_Di_Injectable, __get) { zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CPY_WRT(persistent, _3); - zephir_update_property_zval(this_ptr, SL("persistent"), persistent TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("persistent"), persistent TSRMLS_CC); RETURN_CCTOR(persistent); } ZEPHIR_INIT_VAR(_6); diff --git a/ext/phalcon/di/service.zep.c b/ext/phalcon/di/service.zep.c index ee9d429b6ce..594d6dba18d 100644 --- a/ext/phalcon/di/service.zep.c +++ b/ext/phalcon/di/service.zep.c @@ -73,7 +73,6 @@ PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -89,7 +88,11 @@ PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -117,7 +120,11 @@ PHP_METHOD(Phalcon_Di_Service, setShared) { shared = zephir_get_boolval(shared_param); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -258,7 +265,7 @@ 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, 177, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 176, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -280,7 +287,11 @@ PHP_METHOD(Phalcon_Di_Service, resolve) { if (zephir_is_true(shared)) { zephir_update_property_this(this_ptr, SL("_sharedInstance"), instance TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_resolved"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_CCTOR(instance); } @@ -301,7 +312,6 @@ PHP_METHOD(Phalcon_Di_Service, setParameter) { parameter = parameter_param; - ZEPHIR_OBS_VAR(definition); zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); if (Z_TYPE_P(definition) != IS_ARRAY) { @@ -310,11 +320,11 @@ PHP_METHOD(Phalcon_Di_Service, setParameter) { } ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE, "phalcon/di/service.zep", 228); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { ZEPHIR_INIT_NVAR(arguments); zephir_create_array(arguments, 1, 0 TSRMLS_CC); - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY, "phalcon/di/service.zep", 230); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY ZEPHIR_DEBUG_PARAMS_DUMMY); } zephir_array_update_string(&definition, SL("arguments"), &arguments, PH_COPY | PH_SEPARATE); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); @@ -379,7 +389,6 @@ PHP_METHOD(Phalcon_Di_Service, __set_state) { attributes = attributes_param; - ZEPHIR_OBS_VAR(name); if (!(zephir_array_isset_string_fetch(&name, attributes, SS("_name"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "The attribute '_name' is required", "phalcon/di/service.zep", 289); diff --git a/ext/phalcon/di/service/builder.zep.c b/ext/phalcon/di/service/builder.zep.c index 9bdfdf8d671..32debf9010e 100644 --- a/ext/phalcon/di/service/builder.zep.c +++ b/ext/phalcon/di/service/builder.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { argument = argument_param; - ZEPHIR_OBS_VAR(type); if (!(zephir_array_isset_string_fetch(&type, argument, SS("type"), 0 TSRMLS_CC))) { ZEPHIR_INIT_VAR(_0); @@ -178,7 +177,6 @@ PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { arguments = arguments_param; - ZEPHIR_INIT_VAR(buildArguments); array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); @@ -188,7 +186,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -217,7 +215,6 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { zephir_fetch_params(1, 2, 1, &dependencyInjector, &definition_param, ¶meters); definition = definition_param; - if (!parameters) { parameters = ZEPHIR_GLOBAL(global_null); } @@ -241,7 +238,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -311,7 +308,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -375,7 +372,7 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } diff --git a/ext/phalcon/dispatcher.zep.c b/ext/phalcon/dispatcher.zep.c index e6dcc2034bf..57924fbbb7e 100644 --- a/ext/phalcon/dispatcher.zep.c +++ b/ext/phalcon/dispatcher.zep.c @@ -522,7 +522,11 @@ PHP_METHOD(Phalcon_Dispatcher, dispatch) { numberDispatches = 0; ZEPHIR_OBS_VAR(actionSuffix); zephir_read_property_this(&actionSuffix, this_ptr, SL("_actionSuffix"), PH_NOISY_CC); - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } while (1) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); if (!(!(zephir_is_true(_0)))) { @@ -539,7 +543,11 @@ PHP_METHOD(Phalcon_Dispatcher, dispatch) { zephir_check_call_status(); break; } - zephir_update_property_this(this_ptr, SL("_finished"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_CALL_METHOD(NULL, this_ptr, "_resolveemptyproperties", &_5, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(namespaceName); @@ -828,8 +836,16 @@ PHP_METHOD(Phalcon_Dispatcher, forward) { if (zephir_array_isset_string_fetch(¶ms, forward, SS("params"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_params"), params TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_forwarded"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (1) { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/escaper.zep.c b/ext/phalcon/escaper.zep.c index eaad39f972b..c8adfb2f229 100644 --- a/ext/phalcon/escaper.zep.c +++ b/ext/phalcon/escaper.zep.c @@ -155,13 +155,13 @@ PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); zephir_check_call_status(); RETURN_MM(); @@ -186,11 +186,11 @@ PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -213,7 +213,7 @@ PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -237,7 +237,7 @@ PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -258,7 +258,7 @@ PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -280,7 +280,7 @@ PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -302,7 +302,7 @@ PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/events/event.zep.c b/ext/phalcon/events/event.zep.c index 878d567ade2..f42a99af570 100644 --- a/ext/phalcon/events/event.zep.c +++ b/ext/phalcon/events/event.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/operators.h" +#include "kernel/memory.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" @@ -69,25 +69,25 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { /** * Event type - * - * @var string */ PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * Event type - * - * @var string */ PHP_METHOD(Phalcon_Events_Event, getType) { @@ -98,8 +98,6 @@ PHP_METHOD(Phalcon_Events_Event, getType) { /** * Event source - * - * @var object */ PHP_METHOD(Phalcon_Events_Event, getSource) { @@ -110,8 +108,6 @@ PHP_METHOD(Phalcon_Events_Event, getSource) { /** * Event data - * - * @var mixed */ PHP_METHOD(Phalcon_Events_Event, setData) { @@ -127,8 +123,6 @@ PHP_METHOD(Phalcon_Events_Event, setData) { /** * Event data - * - * @var mixed */ PHP_METHOD(Phalcon_Events_Event, getData) { @@ -139,8 +133,6 @@ PHP_METHOD(Phalcon_Events_Event, getData) { /** * Is event cancelable? - * - * @var boolean */ PHP_METHOD(Phalcon_Events_Event, getCancelable) { @@ -170,7 +162,6 @@ PHP_METHOD(Phalcon_Events_Event, __construct) { 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)) { zephir_get_strval(type, type_param); } else { @@ -193,7 +184,11 @@ PHP_METHOD(Phalcon_Events_Event, __construct) { zephir_update_property_this(this_ptr, SL("_data"), data TSRMLS_CC); } if (cancelable != 1) { - zephir_update_property_this(this_ptr, SL("_cancelable"), cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (cancelable) { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -212,7 +207,11 @@ PHP_METHOD(Phalcon_Events_Event, stop) { ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_events_exception_ce, "Trying to cancel a non-cancelable event", "phalcon/events/event.zep", 93); return; } - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } diff --git a/ext/phalcon/events/manager.zep.c b/ext/phalcon/events/manager.zep.c index f3857be8803..7474310281c 100644 --- a/ext/phalcon/events/manager.zep.c +++ b/ext/phalcon/events/manager.zep.c @@ -71,7 +71,6 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -82,10 +81,9 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { priority = 100; } else { if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - priority = Z_LVAL_P(priority_param); } @@ -107,7 +105,7 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -117,7 +115,7 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -147,7 +145,6 @@ PHP_METHOD(Phalcon_Events_Manager, detach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -172,7 +169,7 @@ PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -194,13 +191,13 @@ PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _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, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -225,7 +222,11 @@ PHP_METHOD(Phalcon_Events_Manager, enablePriorities) { enablePriorities = zephir_get_boolval(enablePriorities_param); - zephir_update_property_this(this_ptr, SL("_enablePriorities"), enablePriorities ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (enablePriorities) { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -253,7 +254,11 @@ PHP_METHOD(Phalcon_Events_Manager, collectResponses) { collect = zephir_get_boolval(collect_param); - zephir_update_property_this(this_ptr, SL("_collect"), collect ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (collect) { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -299,7 +304,6 @@ PHP_METHOD(Phalcon_Events_Manager, detachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -342,7 +346,6 @@ PHP_METHOD(Phalcon_Events_Manager, dettachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -388,7 +391,7 @@ PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -548,7 +551,7 @@ PHP_METHOD(Phalcon_Events_Manager, fire) { zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool cancelable, _3; - zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0, *_2; + zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0 = NULL, *_2; zval *eventType = NULL, *_1; ZEPHIR_MM_GROW(); @@ -558,7 +561,6 @@ PHP_METHOD(Phalcon_Events_Manager, fire) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -614,9 +616,15 @@ PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -630,10 +638,16 @@ PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -656,7 +670,6 @@ PHP_METHOD(Phalcon_Events_Manager, hasListeners) { 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)) { zephir_get_strval(type, type_param); } else { @@ -688,7 +701,6 @@ PHP_METHOD(Phalcon_Events_Manager, getListeners) { 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)) { zephir_get_strval(type, type_param); } else { diff --git a/ext/phalcon/filter.zep.c b/ext/phalcon/filter.zep.c index 98e3d4f6382..ffa5058cd0a 100644 --- a/ext/phalcon/filter.zep.c +++ b/ext/phalcon/filter.zep.c @@ -91,7 +91,6 @@ PHP_METHOD(Phalcon_Filter, add) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -218,7 +217,6 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { 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)) { zephir_get_strval(filter, filter_param); } else { @@ -250,16 +248,16 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -269,14 +267,14 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -286,7 +284,7 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -309,13 +307,13 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } @@ -324,7 +322,7 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/flash.zep.c b/ext/phalcon/flash.zep.c index 00d066e3eb9..b70997fa2cc 100644 --- a/ext/phalcon/flash.zep.c +++ b/ext/phalcon/flash.zep.c @@ -93,7 +93,11 @@ PHP_METHOD(Phalcon_Flash, setImplicitFlush) { implicitFlush = zephir_get_boolval(implicitFlush_param); - zephir_update_property_this(this_ptr, SL("_implicitFlush"), implicitFlush ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitFlush) { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -111,7 +115,11 @@ PHP_METHOD(Phalcon_Flash, setAutomaticHtml) { automaticHtml = zephir_get_boolval(automaticHtml_param); - zephir_update_property_this(this_ptr, SL("_automaticHtml"), automaticHtml ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (automaticHtml) { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -129,7 +137,6 @@ PHP_METHOD(Phalcon_Flash, setCssClasses) { cssClasses = cssClasses_param; - zephir_update_property_this(this_ptr, SL("_cssClasses"), cssClasses TSRMLS_CC); RETURN_THISW(); diff --git a/ext/phalcon/flash/direct.zep.c b/ext/phalcon/flash/direct.zep.c index 276ba64c9f0..98ab9bac0ed 100644 --- a/ext/phalcon/flash/direct.zep.c +++ b/ext/phalcon/flash/direct.zep.c @@ -89,7 +89,7 @@ PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/flash/session.zep.c b/ext/phalcon/flash/session.zep.c index 9ae34cc5f27..a7f8436d989 100644 --- a/ext/phalcon/flash/session.zep.c +++ b/ext/phalcon/flash/session.zep.c @@ -122,7 +122,6 @@ PHP_METHOD(Phalcon_Flash_Session, _setSessionMessages) { messages = messages_param; - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -217,7 +216,7 @@ PHP_METHOD(Phalcon_Flash_Session, getMessages) { int ZEPHIR_LAST_CALL_STATUS; zend_bool remove; - zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages; + zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 2, &type, &remove_param); @@ -232,7 +231,13 @@ PHP_METHOD(Phalcon_Flash_Session, getMessages) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(type) != IS_STRING) { RETURN_CCTOR(messages); @@ -250,11 +255,11 @@ PHP_METHOD(Phalcon_Flash_Session, getMessages) { */ PHP_METHOD(Phalcon_Flash_Session, output) { - zephir_fcall_cache_entry *_3 = NULL, *_4 = NULL; - HashTable *_1; - HashPosition _0; + zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; + HashTable *_2; + HashPosition _1; int ZEPHIR_LAST_CALL_STATUS; - zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, **_2; + zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, *_0, **_3; zend_bool remove; ZEPHIR_MM_GROW(); @@ -267,21 +272,27 @@ PHP_METHOD(Phalcon_Flash_Session, output) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { - zephir_is_iterable(messages, &_1, &_0, 0, 0, "phalcon/flash/session.zep", 162); + zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/flash/session.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zephir_hash_move_forward_ex(_2, &_1) ) { - ZEPHIR_GET_HMKEY(type, _1, _0); - ZEPHIR_GET_HVALUE(message, _2); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_3, 0, type, message); + ZEPHIR_GET_HMKEY(type, _2, _1); + ZEPHIR_GET_HVALUE(message, _3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_4, 0, type, message); zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -302,7 +313,7 @@ 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, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/forms/element.zep.c b/ext/phalcon/forms/element.zep.c index bdd1dddf2f3..2c19086d9b5 100644 --- a/ext/phalcon/forms/element.zep.c +++ b/ext/phalcon/forms/element.zep.c @@ -129,7 +129,6 @@ PHP_METHOD(Phalcon_Forms_Element, setName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -245,7 +244,6 @@ PHP_METHOD(Phalcon_Forms_Element, addValidators) { zephir_fetch_params(1, 1, 1, &validators_param, &merge_param); validators = validators_param; - if (!merge_param) { merge = 1; } else { @@ -329,7 +327,7 @@ PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -430,7 +428,6 @@ PHP_METHOD(Phalcon_Forms_Element, setAttributes) { attributes = attributes_param; - zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); RETURN_THISW(); diff --git a/ext/phalcon/forms/element/check.zep.c b/ext/phalcon/forms/element/check.zep.c index 7a7b9d4ebd5..fb18ed9c129 100644 --- a/ext/phalcon/forms/element/check.zep.c +++ b/ext/phalcon/forms/element/check.zep.c @@ -54,7 +54,7 @@ PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/date.zep.c b/ext/phalcon/forms/element/date.zep.c index b90e952db2d..b4b8ee87742 100644 --- a/ext/phalcon/forms/element/date.zep.c +++ b/ext/phalcon/forms/element/date.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/email.zep.c b/ext/phalcon/forms/element/email.zep.c index afff3edc90f..574d0e199f5 100644 --- a/ext/phalcon/forms/element/email.zep.c +++ b/ext/phalcon/forms/element/email.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/file.zep.c b/ext/phalcon/forms/element/file.zep.c index 509cc292cf6..325078ba37f 100644 --- a/ext/phalcon/forms/element/file.zep.c +++ b/ext/phalcon/forms/element/file.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/hidden.zep.c b/ext/phalcon/forms/element/hidden.zep.c index 0d2f9337459..582bb699903 100644 --- a/ext/phalcon/forms/element/hidden.zep.c +++ b/ext/phalcon/forms/element/hidden.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/numeric.zep.c b/ext/phalcon/forms/element/numeric.zep.c index a83987dad88..8e3ed366ac6 100644 --- a/ext/phalcon/forms/element/numeric.zep.c +++ b/ext/phalcon/forms/element/numeric.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/password.zep.c b/ext/phalcon/forms/element/password.zep.c index b0fb1e545f9..86ceec3f4c7 100644 --- a/ext/phalcon/forms/element/password.zep.c +++ b/ext/phalcon/forms/element/password.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/radio.zep.c b/ext/phalcon/forms/element/radio.zep.c index b0f2e2708b0..ef825aa4381 100644 --- a/ext/phalcon/forms/element/radio.zep.c +++ b/ext/phalcon/forms/element/radio.zep.c @@ -54,7 +54,7 @@ PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/select.zep.c b/ext/phalcon/forms/element/select.zep.c index 9169de47895..d80f769ee81 100644 --- a/ext/phalcon/forms/element/select.zep.c +++ b/ext/phalcon/forms/element/select.zep.c @@ -62,7 +62,7 @@ PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156,7 +156,7 @@ PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/submit.zep.c b/ext/phalcon/forms/element/submit.zep.c index 396c98cf849..0b817061560 100644 --- a/ext/phalcon/forms/element/submit.zep.c +++ b/ext/phalcon/forms/element/submit.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/text.zep.c b/ext/phalcon/forms/element/text.zep.c index 55f2de30b49..1544f3a5e42 100644 --- a/ext/phalcon/forms/element/text.zep.c +++ b/ext/phalcon/forms/element/text.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/element/textarea.zep.c b/ext/phalcon/forms/element/textarea.zep.c index 2b2b93a8c04..2c12c6c7f93 100644 --- a/ext/phalcon/forms/element/textarea.zep.c +++ b/ext/phalcon/forms/element/textarea.zep.c @@ -52,7 +52,7 @@ PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/forms/form.zep.c b/ext/phalcon/forms/form.zep.c index 2e1a1ae003b..a48ab4f0af0 100644 --- a/ext/phalcon/forms/form.zep.c +++ b/ext/phalcon/forms/form.zep.c @@ -206,7 +206,6 @@ PHP_METHOD(Phalcon_Forms_Form, setUserOptions) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); RETURN_THISW(); @@ -286,7 +285,6 @@ PHP_METHOD(Phalcon_Forms_Form, bind) { zephir_fetch_params(1, 2, 1, &data_param, &entity, &whitelist); data = data_param; - ZEPHIR_SEPARATE_PARAM(entity); if (!whitelist) { whitelist = ZEPHIR_GLOBAL(global_null); @@ -446,7 +444,7 @@ PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -454,10 +452,10 @@ PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -523,7 +521,7 @@ PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); zephir_check_call_status(); } } @@ -673,7 +671,6 @@ PHP_METHOD(Phalcon_Forms_Form, render) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -720,7 +717,6 @@ PHP_METHOD(Phalcon_Forms_Form, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -763,7 +759,6 @@ PHP_METHOD(Phalcon_Forms_Form, label) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -771,8 +766,8 @@ PHP_METHOD(Phalcon_Forms_Form, label) { ZVAL_EMPTY_STRING(name); } if (!attributes_param) { - ZEPHIR_INIT_VAR(attributes); - array_init(attributes); + ZEPHIR_INIT_VAR(attributes); + array_init(attributes); } else { zephir_get_arrval(attributes, attributes_param); } @@ -813,7 +808,6 @@ PHP_METHOD(Phalcon_Forms_Form, getLabel) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -863,7 +857,6 @@ PHP_METHOD(Phalcon_Forms_Form, getValue) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -930,7 +923,6 @@ PHP_METHOD(Phalcon_Forms_Form, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -959,7 +951,6 @@ PHP_METHOD(Phalcon_Forms_Form, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -1053,7 +1044,7 @@ PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/forms/manager.zep.c b/ext/phalcon/forms/manager.zep.c index 59214441621..c7839e1200f 100644 --- a/ext/phalcon/forms/manager.zep.c +++ b/ext/phalcon/forms/manager.zep.c @@ -63,7 +63,7 @@ PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index 6e6beec9e53..7f617c22603 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -85,7 +85,6 @@ PHP_METHOD(Phalcon_Http_Cookie, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -175,7 +174,11 @@ PHP_METHOD(Phalcon_Http_Cookie, setValue) { zephir_update_property_this(this_ptr, SL("_value"), value TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_readed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -354,7 +357,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -408,7 +411,11 @@ PHP_METHOD(Phalcon_Http_Cookie, restore) { } } } - zephir_update_property_this(this_ptr, SL("_restored"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -457,7 +464,7 @@ PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -476,7 +483,11 @@ PHP_METHOD(Phalcon_Http_Cookie, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -552,7 +563,6 @@ PHP_METHOD(Phalcon_Http_Cookie, setPath) { 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)) { zephir_get_strval(path, path_param); } else { @@ -616,7 +626,6 @@ PHP_METHOD(Phalcon_Http_Cookie, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -674,7 +683,11 @@ PHP_METHOD(Phalcon_Http_Cookie, setSecure) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_secure"), secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (secure) { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -718,7 +731,11 @@ PHP_METHOD(Phalcon_Http_Cookie, setHttpOnly) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_httpOnly"), httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (httpOnly) { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index 9177284b963..93ccd13f4c9 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -102,7 +102,7 @@ PHP_METHOD(Phalcon_Http_Request, get) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -117,7 +117,6 @@ PHP_METHOD(Phalcon_Http_Request, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -143,7 +142,19 @@ PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -165,7 +176,7 @@ PHP_METHOD(Phalcon_Http_Request, getPost) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -180,7 +191,6 @@ PHP_METHOD(Phalcon_Http_Request, getPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -206,7 +216,19 @@ PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -227,7 +249,7 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL, *_1, *_2; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -241,7 +263,6 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -274,13 +295,25 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { array_init(put); ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); - Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); - Z_UNSET_ISREF_P(put); + ZEPHIR_MAKE_REF(put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_UNREF(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (notAllowEmpty) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_INIT_VAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -305,7 +338,7 @@ PHP_METHOD(Phalcon_Http_Request, getQuery) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -320,7 +353,6 @@ PHP_METHOD(Phalcon_Http_Request, getQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -346,7 +378,19 @@ PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -361,7 +405,7 @@ PHP_METHOD(Phalcon_Http_Request, getHelper) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive, _3; zval *name = NULL; - zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2; + zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2 = NULL; zval *source = NULL; ZEPHIR_MM_GROW(); @@ -376,7 +420,6 @@ PHP_METHOD(Phalcon_Http_Request, getHelper) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -428,7 +471,13 @@ PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_CPY_WRT(filter, _1); zephir_update_property_this(this_ptr, SL("_filter"), filter TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, _2); zephir_check_call_status(); ZEPHIR_CPY_WRT(value, _1); } @@ -460,7 +509,6 @@ PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -492,7 +540,6 @@ PHP_METHOD(Phalcon_Http_Request, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -521,7 +568,6 @@ PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -550,7 +596,6 @@ PHP_METHOD(Phalcon_Http_Request, hasPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -581,7 +626,6 @@ PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -610,7 +654,6 @@ PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -640,7 +683,6 @@ PHP_METHOD(Phalcon_Http_Request, getHeader) { 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)) { zephir_get_strval(header, header_param); } else { @@ -789,7 +831,7 @@ PHP_METHOD(Phalcon_Http_Request, getRawBody) { PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { int ZEPHIR_LAST_CALL_STATUS; - zval *associative_param = NULL, *rawBody = NULL; + zval *associative_param = NULL, *rawBody = NULL, _0; zend_bool associative; ZEPHIR_MM_GROW(); @@ -807,7 +849,9 @@ PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { if (Z_TYPE_P(rawBody) != IS_STRING) { RETURN_MM_BOOL(0); } - zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval((associative ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))) TSRMLS_CC); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (associative ? 1 : 0)); + zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval(&_0) TSRMLS_CC); RETURN_MM(); } @@ -829,7 +873,7 @@ PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); zephir_check_call_status(); RETURN_MM(); @@ -1045,7 +1089,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -1120,7 +1164,7 @@ PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -1136,7 +1180,7 @@ PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -1152,7 +1196,7 @@ PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -1168,7 +1212,7 @@ PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -1184,7 +1228,7 @@ PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -1200,7 +1244,7 @@ PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -1216,7 +1260,7 @@ PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -1227,11 +1271,11 @@ PHP_METHOD(Phalcon_Http_Request, isOptions) { */ PHP_METHOD(Phalcon_Http_Request, hasFiles) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; - zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL; + zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL, *_5 = NULL; zend_bool onlySuccessful, _3; ZEPHIR_MM_GROW(); @@ -1267,7 +1311,13 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, error, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -1282,12 +1332,12 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { */ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; zend_bool onlySuccessful, _3; - zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL; + zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL, *_5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &data, &onlySuccessful_param); @@ -1314,7 +1364,13 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, value, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -1332,7 +1388,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { int ZEPHIR_LAST_CALL_STATUS; HashTable *_1, *_11; HashPosition _0, _10; - zval *files; + zval *files = NULL; zval *onlySuccessful_param = NULL, *superFiles = NULL, *prefix = NULL, *input = NULL, *smoothInput = NULL, *file = NULL, *dataFile = NULL, *_FILES, **_2, *_3 = NULL, *_4, *_5, *_6, *_7, *_8, **_12, *_14, *_15 = NULL, *_16 = NULL, *_17; zend_bool onlySuccessful, _13; @@ -1349,6 +1405,8 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { array_init(files); + ZEPHIR_INIT_NVAR(files); + array_init(files); ZEPHIR_CPY_WRT(superFiles, _FILES); if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1, &_0, 0, 0, "phalcon/http/request.zep", 720); @@ -1366,7 +1424,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -1400,7 +1458,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -1414,7 +1472,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -1442,15 +1500,10 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_fetch_params(1, 6, 0, &names_param, &types_param, &tmp_names_param, &sizes_param, &errors_param, &prefix_param); names = names_param; - types = types_param; - tmp_names = tmp_names_param; - sizes = sizes_param; - errors = errors_param; - zephir_get_strval(prefix, prefix_param); @@ -1490,7 +1543,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -1547,7 +1600,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -1566,7 +1619,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -1617,7 +1670,6 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { 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)) { zephir_get_strval(serverIndex, serverIndex_param); } else { @@ -1628,7 +1680,6 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -1647,7 +1698,7 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -1665,7 +1716,7 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -1727,7 +1778,6 @@ PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -1805,7 +1855,7 @@ PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -1827,7 +1877,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1848,7 +1898,7 @@ PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -1870,7 +1920,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1891,7 +1941,7 @@ PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -1913,7 +1963,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -1972,10 +2022,10 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { ZVAL_STRING(_0, "#(\\w+)=(['\"]?)([^'\" ,]+)\\2#", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 2); - Z_SET_ISREF_P(matches); + ZEPHIR_MAKE_REF(matches); ZEPHIR_CALL_FUNCTION(&_2, "preg_match_all", NULL, 28, _0, digest, matches, _1); zephir_check_temp_parameter(_0); - Z_UNSET_ISREF_P(matches); + ZEPHIR_UNREF(matches); zephir_check_call_status(); if (!(zephir_is_true(_2))) { RETURN_CTOR(auth); diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 9ef3368f74e..c400a1a8fcd 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -79,7 +79,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Request_File) { } /** - * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getError) { @@ -89,7 +88,6 @@ PHP_METHOD(Phalcon_Http_Request_File, getError) { } /** - * @var string|null */ PHP_METHOD(Phalcon_Http_Request_File, getKey) { @@ -99,7 +97,6 @@ PHP_METHOD(Phalcon_Http_Request_File, getKey) { } /** - * @var string */ PHP_METHOD(Phalcon_Http_Request_File, getExtension) { @@ -121,7 +118,6 @@ PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_fetch_params(1, 1, 1, &file_param, &key); file = file_param; - if (!key) { key = ZEPHIR_GLOBAL(global_null); } @@ -132,7 +128,7 @@ PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); @@ -214,15 +210,15 @@ PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -243,7 +239,7 @@ PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -267,7 +263,6 @@ PHP_METHOD(Phalcon_Http_Request_File, moveTo) { 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)) { zephir_get_strval(destination, destination_param); } else { @@ -277,7 +272,7 @@ PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index 9d51386eee6..d2fa60334b0 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -189,7 +189,7 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -526,10 +526,9 @@ PHP_METHOD(Phalcon_Http_Response, setCache) { zephir_fetch_params(1, 1, 0, &minutes_param); if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - minutes = Z_LVAL_P(minutes_param); @@ -716,7 +715,7 @@ PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -975,11 +974,15 @@ PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); zephir_check_call_status(); } } - zephir_update_property_this(this_ptr, SL("_sent"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } diff --git a/ext/phalcon/http/response/cookies.zep.c b/ext/phalcon/http/response/cookies.zep.c index e2e83c1b9c5..952aa60c0bc 100644 --- a/ext/phalcon/http/response/cookies.zep.c +++ b/ext/phalcon/http/response/cookies.zep.c @@ -84,7 +84,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -108,7 +112,7 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zval *_3; zend_bool secure, httpOnly; int expire, ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5; + zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5, *_6; zval *name = NULL, *path = NULL, *domain = NULL; ZEPHIR_MM_GROW(); @@ -118,7 +122,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -152,7 +155,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -211,11 +213,23 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setpath", NULL, 0, path); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, (secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_4); + if (secure) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, _4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setdomain", NULL, 0, domain); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, (httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (httpOnly) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, _6); zephir_check_call_status(); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_registered"), PH_NOISY_CC); @@ -255,7 +269,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -312,7 +325,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -349,7 +361,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index eddd37d4deb..d68dbfc7223 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -151,10 +151,10 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -208,7 +208,6 @@ PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { data = data_param; - ZEPHIR_INIT_VAR(headers); object_init_ex(headers, phalcon_http_response_headers_ce); if (zephir_has_constructor(headers TSRMLS_CC)) { @@ -224,7 +223,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); zephir_check_call_status(); } } diff --git a/ext/phalcon/image/adapter.zep.c b/ext/phalcon/image/adapter.zep.c index b585452e5ab..27941fe7a29 100644 --- a/ext/phalcon/image/adapter.zep.c +++ b/ext/phalcon/image/adapter.zep.c @@ -89,8 +89,6 @@ PHP_METHOD(Phalcon_Image_Adapter, getRealpath) { /** * Image width - * - * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { @@ -101,8 +99,6 @@ PHP_METHOD(Phalcon_Image_Adapter, getWidth) { /** * Image height - * - * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { @@ -114,9 +110,9 @@ PHP_METHOD(Phalcon_Image_Adapter, getHeight) { /** * Image type * + * * Driver dependent * - * @var int */ PHP_METHOD(Phalcon_Image_Adapter, getType) { @@ -127,8 +123,6 @@ PHP_METHOD(Phalcon_Image_Adapter, getType) { /** * Image mime type - * - * @var string */ PHP_METHOD(Phalcon_Image_Adapter, getMime) { @@ -535,7 +529,7 @@ PHP_METHOD(Phalcon_Image_Adapter, sharpen) { PHP_METHOD(Phalcon_Image_Adapter, reflection) { zend_bool fadeIn, _0; - zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4; + zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4, *_5; int height, opacity, ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -573,7 +567,13 @@ PHP_METHOD(Phalcon_Image_Adapter, reflection) { ZVAL_LONG(_3, height); ZEPHIR_INIT_VAR(_4); ZVAL_LONG(_4, opacity); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, (fadeIn ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (fadeIn) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, _5); zephir_check_call_status(); RETURN_THIS(); @@ -611,7 +611,7 @@ PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getwidth", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); - sub_function(_2, _0, _1 TSRMLS_CC); + zephir_sub_function(_2, _0, _1); tmp = zephir_get_numberval(_2); if (offsetX < 0) { offsetX = 0; @@ -622,7 +622,7 @@ PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getheight", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); - sub_function(_3, _0, _1 TSRMLS_CC); + zephir_sub_function(_3, _0, _1); tmp = zephir_get_numberval(_3); if (offsetY < 0) { offsetY = 0; @@ -910,7 +910,7 @@ PHP_METHOD(Phalcon_Image_Adapter, save) { } - if (!(file && Z_STRLEN_P(file))) { + if (!(!(!file) && Z_STRLEN_P(file))) { ZEPHIR_OBS_VAR(_0); zephir_read_property_this(&_0, this_ptr, SL("_realpath"), PH_NOISY_CC); zephir_get_strval(_1, _0); @@ -954,7 +954,7 @@ PHP_METHOD(Phalcon_Image_Adapter, render) { } - if (!(ext && Z_STRLEN_P(ext))) { + if (!(!(!ext) && Z_STRLEN_P(ext))) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 762231a24b1..a83982d879a 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -55,13 +55,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -79,7 +79,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -92,7 +92,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZEPHIR_MM_RESTORE(); return; } - zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _9 = zephir_fetch_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_9); @@ -113,7 +113,6 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -145,7 +144,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -161,35 +160,35 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -214,7 +213,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -237,14 +236,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -283,7 +282,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -331,11 +330,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -359,17 +358,17 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -379,16 +378,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -415,7 +414,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -441,17 +440,17 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -471,16 +470,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -508,20 +507,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -534,11 +533,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -564,7 +563,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -592,7 +591,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -616,18 +615,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -635,13 +634,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); zephir_check_call_status(); } } @@ -664,7 +663,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -713,15 +712,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -747,7 +746,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -773,7 +772,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -814,7 +813,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -826,7 +825,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -839,18 +838,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -872,21 +871,21 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -898,11 +897,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -912,11 +911,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -931,10 +930,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -966,16 +965,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -1009,12 +1008,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -1034,7 +1033,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -1046,17 +1045,17 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -1076,7 +1075,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -1085,7 +1084,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -1106,22 +1105,22 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -1131,13 +1130,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -1148,7 +1147,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -1164,9 +1163,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -1186,9 +1185,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -1201,10 +1200,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -1214,22 +1213,22 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1263,9 +1262,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -1278,11 +1277,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -1310,7 +1309,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); zephir_check_call_status(); i++; } @@ -1349,7 +1348,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -1362,7 +1361,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -1393,7 +1392,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -1401,30 +1400,30 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -1433,64 +1432,64 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -1528,25 +1527,25 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -1554,45 +1553,45 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } @@ -1624,11 +1623,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -1644,7 +1643,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/image/adapter/imagick.zep.c b/ext/phalcon/image/adapter/imagick.zep.c index 601ebbf3386..af80fcc98dd 100644 --- a/ext/phalcon/image/adapter/imagick.zep.c +++ b/ext/phalcon/image/adapter/imagick.zep.c @@ -70,16 +70,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } - zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _5 = zephir_fetch_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_5); @@ -102,7 +102,6 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -161,7 +160,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -653,7 +652,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -667,11 +666,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -710,7 +709,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -727,7 +726,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -757,7 +756,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -840,7 +839,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -905,7 +904,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -913,7 +912,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_CALL_METHOD(NULL, draw, "setfont", NULL, 0, fontfile); zephir_check_call_status(); } @@ -944,24 +943,24 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -977,13 +976,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -994,13 +993,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -1019,13 +1018,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -1036,13 +1035,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -1058,13 +1057,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -1075,13 +1074,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -1154,7 +1153,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -1207,7 +1206,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -1240,7 +1239,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -1249,11 +1248,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -1267,7 +1266,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -1434,7 +1433,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -1458,7 +1457,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -1533,7 +1532,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); diff --git a/ext/phalcon/kernel.zep.c b/ext/phalcon/kernel.zep.c index c782c708264..9c6773f02fc 100644 --- a/ext/phalcon/kernel.zep.c +++ b/ext/phalcon/kernel.zep.c @@ -49,7 +49,6 @@ PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index f5ede627402..428368c127d 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -133,7 +133,6 @@ PHP_METHOD(Phalcon_Loader, setExtensions) { extensions = extensions_param; - zephir_update_property_this(this_ptr, SL("_extensions"), extensions TSRMLS_CC); RETURN_THISW(); @@ -162,7 +161,6 @@ PHP_METHOD(Phalcon_Loader, registerNamespaces) { zephir_fetch_params(1, 1, 1, &namespaces_param, &merge_param); namespaces = namespaces_param; - if (!merge_param) { merge = 0; } else { @@ -211,7 +209,6 @@ PHP_METHOD(Phalcon_Loader, registerPrefixes) { zephir_fetch_params(1, 1, 1, &prefixes_param, &merge_param); prefixes = prefixes_param; - if (!merge_param) { merge = 0; } else { @@ -260,7 +257,6 @@ PHP_METHOD(Phalcon_Loader, registerDirs) { zephir_fetch_params(1, 1, 1, &directories_param, &merge_param); directories = directories_param; - if (!merge_param) { merge = 0; } else { @@ -308,7 +304,6 @@ PHP_METHOD(Phalcon_Loader, registerClasses) { zephir_fetch_params(1, 1, 1, &classes_param, &merge_param); classes = classes_param; - if (!merge_param) { merge = 0; } else { @@ -362,9 +357,13 @@ PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -389,9 +388,13 @@ PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -416,7 +419,6 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { 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)) { zephir_get_strval(className, className_param); } else { @@ -500,7 +502,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -571,7 +573,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -629,7 +631,7 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { diff --git a/ext/phalcon/logger/adapter.zep.c b/ext/phalcon/logger/adapter.zep.c index 824186b7baf..6f92564232a 100644 --- a/ext/phalcon/logger/adapter.zep.c +++ b/ext/phalcon/logger/adapter.zep.c @@ -115,7 +115,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, setFormatter) { PHP_METHOD(Phalcon_Logger_Adapter, begin) { - zephir_update_property_this(this_ptr, SL("_transaction"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -138,7 +142,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, commit) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 107); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_OBS_VAR(queue); zephir_read_property_this(&queue, this_ptr, SL("_queue"), PH_NOISY_CC); if (Z_TYPE_P(queue) == IS_ARRAY) { @@ -179,7 +187,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, rollback) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 139); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_queue"), _0 TSRMLS_CC); @@ -214,7 +226,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -222,11 +233,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -255,7 +265,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -263,11 +272,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -296,7 +304,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -304,11 +311,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -337,7 +343,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -345,11 +350,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -378,7 +382,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -386,11 +389,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -419,7 +421,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -427,11 +428,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -460,7 +460,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -468,11 +467,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -501,7 +499,6 @@ PHP_METHOD(Phalcon_Logger_Adapter, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -509,11 +506,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -542,11 +538,10 @@ PHP_METHOD(Phalcon_Logger_Adapter, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } diff --git a/ext/phalcon/logger/adapter/file.zep.c b/ext/phalcon/logger/adapter/file.zep.c index cbc6e025e11..80d01a80e0a 100644 --- a/ext/phalcon/logger/adapter/file.zep.c +++ b/ext/phalcon/logger/adapter/file.zep.c @@ -92,7 +92,6 @@ PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -119,7 +118,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -154,7 +153,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -243,7 +242,7 @@ 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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/adapter/firephp.zep.c b/ext/phalcon/logger/adapter/firephp.zep.c index 81351505b6e..37da13179b8 100644 --- a/ext/phalcon/logger/adapter/firephp.zep.c +++ b/ext/phalcon/logger/adapter/firephp.zep.c @@ -110,17 +110,17 @@ PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); - zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_4, this_ptr, "getformatter", NULL, 0); zephir_check_call_status(); @@ -148,7 +148,7 @@ 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", &_3, 238, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); diff --git a/ext/phalcon/logger/adapter/stream.zep.c b/ext/phalcon/logger/adapter/stream.zep.c index 24206c05730..ac5605515b4 100644 --- a/ext/phalcon/logger/adapter/stream.zep.c +++ b/ext/phalcon/logger/adapter/stream.zep.c @@ -71,7 +71,6 @@ PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -93,7 +92,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -126,7 +125,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } diff --git a/ext/phalcon/logger/adapter/syslog.zep.c b/ext/phalcon/logger/adapter/syslog.zep.c index aa06b4adb18..8247ff90da3 100644 --- a/ext/phalcon/logger/adapter/syslog.zep.c +++ b/ext/phalcon/logger/adapter/syslog.zep.c @@ -76,9 +76,13 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -147,7 +151,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal) { } zephir_array_fetch_long(&_3, appliedFormat, 0, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -167,7 +171,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/formatter/firephp.zep.c b/ext/phalcon/logger/formatter/firephp.zep.c index 2f6d27c30cc..fbdf79c1d73 100644 --- a/ext/phalcon/logger/formatter/firephp.zep.c +++ b/ext/phalcon/logger/formatter/firephp.zep.c @@ -89,7 +89,11 @@ PHP_METHOD(Phalcon_Logger_Formatter_Firephp, setShowBacktrace) { } - zephir_update_property_this(this_ptr, SL("_showBacktrace"), isShow ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isShow) { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -121,7 +125,11 @@ PHP_METHOD(Phalcon_Logger_Formatter_Firephp, enableLabels) { } - zephir_update_property_this(this_ptr, SL("_enableLabels"), isEnable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isEnable) { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -153,7 +161,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { HashPosition _6; zend_bool param, _11, _14; int type, timestamp, ZEPHIR_LAST_CALL_STATUS; - zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; + zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3 = zval_used_for_init, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; zval *message = NULL; ZEPHIR_MM_GROW(); @@ -188,16 +196,18 @@ PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_SINIT_NVAR(_3); + ZVAL_BOOL(&_3, (param ? 1 : 0)); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, &_3); zephir_check_call_status(); - Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); - Z_UNSET_ISREF_P(backtrace); + ZEPHIR_MAKE_REF(backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_UNREF(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { zephir_array_fetch_string(&_5, lastTrace, SL("file"), PH_NOISY | PH_READONLY, "phalcon/logger/formatter/firephp.zep", 133 TSRMLS_CC); diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index 7c69b0b640a..8fbd10cb556 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -13,8 +13,8 @@ #include "kernel/main.h" #include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/operators.h" +#include "kernel/memory.h" #include "kernel/string.h" #include "kernel/fcall.h" #include "kernel/concat.h" @@ -50,8 +50,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Formatter_Line) { /** * Default date format - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { @@ -62,25 +60,25 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { /** * Default date format - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } /** * Format applied to each message - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { @@ -91,18 +89,20 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { /** * Format applied to each message - * - * @var string */ PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -168,7 +168,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); diff --git a/ext/phalcon/logger/multiple.zep.c b/ext/phalcon/logger/multiple.zep.c index 5d071998813..ce295fe735d 100644 --- a/ext/phalcon/logger/multiple.zep.c +++ b/ext/phalcon/logger/multiple.zep.c @@ -118,11 +118,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -160,7 +159,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -168,11 +166,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -201,7 +198,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -209,11 +205,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -242,7 +237,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -250,11 +244,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -283,7 +276,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -291,11 +283,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -324,7 +315,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -332,11 +322,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -365,7 +354,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -373,11 +361,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -406,7 +393,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -414,11 +400,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -447,7 +432,6 @@ PHP_METHOD(Phalcon_Logger_Multiple, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -455,11 +439,10 @@ PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } diff --git a/ext/phalcon/mvc/application.zep.c b/ext/phalcon/mvc/application.zep.c index a9443bc462e..6afc51cccc3 100644 --- a/ext/phalcon/mvc/application.zep.c +++ b/ext/phalcon/mvc/application.zep.c @@ -116,7 +116,11 @@ PHP_METHOD(Phalcon_Mvc_Application, useImplicitView) { implicitView = zephir_get_boolval(implicitView_param); - zephir_update_property_this(this_ptr, SL("_implicitView"), implicitView ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitView) { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -202,7 +206,6 @@ PHP_METHOD(Phalcon_Mvc_Application, getModule) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -243,7 +246,6 @@ PHP_METHOD(Phalcon_Mvc_Application, setDefaultModule) { 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)) { zephir_get_strval(defaultModule, defaultModule_param); } else { diff --git a/ext/phalcon/mvc/collection.zep.c b/ext/phalcon/mvc/collection.zep.c index 913ac4e27a8..aa24c8f8338 100644 --- a/ext/phalcon/mvc/collection.zep.c +++ b/ext/phalcon/mvc/collection.zep.c @@ -275,7 +275,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, getReservedAttributes) { PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { int ZEPHIR_LAST_CALL_STATUS; - zval *useImplicitObjectIds_param = NULL, *_0; + zval *useImplicitObjectIds_param = NULL, *_0, *_1; zend_bool useImplicitObjectIds; ZEPHIR_MM_GROW(); @@ -285,7 +285,13 @@ PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, (useImplicitObjectIds ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (useImplicitObjectIds) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -306,7 +312,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -359,7 +364,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -438,7 +442,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -478,7 +481,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -510,7 +512,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { document = document_param; - ZEPHIR_INIT_VAR(clonedCollection); if (zephir_clone(clonedCollection, collection TSRMLS_CC) == FAILURE) { RETURN_MM(); @@ -628,7 +629,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -858,7 +859,13 @@ PHP_METHOD(Phalcon_Mvc_Collection, _postSave) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, (disableEvents ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (disableEvents) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, _1); zephir_check_call_status(); RETURN_MM_BOOL(0); @@ -973,7 +980,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -1009,7 +1015,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -1019,7 +1024,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -1175,7 +1180,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save) { zval *_3; int ZEPHIR_LAST_CALL_STATUS; zend_bool success; - zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL; + zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL, *_4; ZEPHIR_MM_GROW(); @@ -1211,7 +1216,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -1240,7 +1245,13 @@ PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_INIT_VAR(_4); + if (success) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, _4, exists); zephir_check_call_status(); RETURN_MM(); @@ -1269,7 +1280,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, findById) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -1336,8 +1347,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -1347,7 +1358,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -1409,8 +1420,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -1420,7 +1431,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -1454,8 +1465,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -1465,7 +1476,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -1493,8 +1504,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -1504,7 +1515,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -1543,7 +1554,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, summatory) { 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)) { zephir_get_strval(field, field_param); } else { @@ -1562,7 +1572,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, summatory) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -1736,7 +1746,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -1820,7 +1834,6 @@ PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { diff --git a/ext/phalcon/mvc/collection/behavior.zep.c b/ext/phalcon/mvc/collection/behavior.zep.c index e0fed786d0a..699b5510659 100644 --- a/ext/phalcon/mvc/collection/behavior.zep.c +++ b/ext/phalcon/mvc/collection/behavior.zep.c @@ -70,7 +70,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -106,7 +105,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { diff --git a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c b/ext/phalcon/mvc/collection/behavior/softdelete.zep.c index 47ca6a85fa4..c231f286159 100644 --- a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c +++ b/ext/phalcon/mvc/collection/behavior/softdelete.zep.c @@ -56,7 +56,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { diff --git a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c index 350fca03b52..f30732c9678 100644 --- a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -84,7 +83,7 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); diff --git a/ext/phalcon/mvc/collection/document.zep.c b/ext/phalcon/mvc/collection/document.zep.c index 770e59bd4c2..fc53f2f5e72 100644 --- a/ext/phalcon/mvc/collection/document.zep.c +++ b/ext/phalcon/mvc/collection/document.zep.c @@ -55,7 +55,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -83,7 +82,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -116,7 +114,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -197,7 +194,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { diff --git a/ext/phalcon/mvc/collection/manager.zep.c b/ext/phalcon/mvc/collection/manager.zep.c index f8e6ede872b..13b4f28ebd0 100644 --- a/ext/phalcon/mvc/collection/manager.zep.c +++ b/ext/phalcon/mvc/collection/manager.zep.c @@ -219,7 +219,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -260,7 +259,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -384,7 +382,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -466,7 +463,6 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { diff --git a/ext/phalcon/mvc/dispatcher.zep.c b/ext/phalcon/mvc/dispatcher.zep.c index 1652c0fd777..fc6c957f18d 100644 --- a/ext/phalcon/mvc/dispatcher.zep.c +++ b/ext/phalcon/mvc/dispatcher.zep.c @@ -72,7 +72,6 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { 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)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { @@ -101,7 +100,6 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -130,7 +128,6 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -190,7 +187,6 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { 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)) { zephir_get_strval(message, message_param); } else { diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index 546f4975167..41cd40c853c 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -149,7 +149,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -189,7 +188,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -229,7 +227,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -269,7 +266,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -309,7 +305,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -349,7 +344,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -389,7 +383,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -429,7 +422,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -484,7 +476,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -627,7 +619,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL; + zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL, *_0; zval *serviceName = NULL; ZEPHIR_MM_GROW(); @@ -637,7 +629,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -656,11 +647,17 @@ 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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, _0); zephir_check_call_status(); RETURN_MM(); @@ -682,7 +679,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, hasService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -696,11 +692,11 @@ 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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -725,7 +721,6 @@ PHP_METHOD(Phalcon_Mvc_Micro, getService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -739,11 +734,11 @@ 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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -770,11 +765,11 @@ 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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -870,7 +865,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(beforeHandlers); zephir_read_property_this(&beforeHandlers, this_ptr, SL("_beforeHandlers"), PH_NOISY_CC); if (Z_TYPE_P(beforeHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(beforeHandlers, &_6, &_5, 0, 0, "phalcon/mvc/micro.zep", 687); for ( ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS @@ -928,7 +927,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(afterHandlers); zephir_read_property_this(&afterHandlers, this_ptr, SL("_afterHandlers"), PH_NOISY_CC); if (Z_TYPE_P(afterHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(afterHandlers, &_10, &_9, 0, 0, "phalcon/mvc/micro.zep", 742); for ( ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS @@ -1004,7 +1007,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(finishHandlers); zephir_read_property_this(&finishHandlers, this_ptr, SL("_finishHandlers"), PH_NOISY_CC); if (Z_TYPE_P(finishHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(params); ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_15, &_14, 0, 0, "phalcon/mvc/micro.zep", 832); @@ -1117,7 +1124,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { PHP_METHOD(Phalcon_Mvc_Micro, stop) { - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } diff --git a/ext/phalcon/mvc/micro/collection.zep.c b/ext/phalcon/mvc/micro/collection.zep.c index fcad2fca92b..7337143cb01 100644 --- a/ext/phalcon/mvc/micro/collection.zep.c +++ b/ext/phalcon/mvc/micro/collection.zep.c @@ -79,7 +79,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { 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)) { zephir_get_strval(method, method_param); } else { @@ -114,7 +113,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { 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)) { zephir_get_strval(prefix, prefix_param); } else { @@ -172,7 +170,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, setHandler) { zephir_update_property_this(this_ptr, SL("_handler"), handler TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -191,11 +193,14 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } - lazy = Z_BVAL_P(lazy_param); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -243,7 +248,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -284,7 +288,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -326,7 +329,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -368,7 +370,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -410,7 +411,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -452,7 +452,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -494,7 +493,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -535,7 +533,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { diff --git a/ext/phalcon/mvc/micro/lazyloader.zep.c b/ext/phalcon/mvc/micro/lazyloader.zep.c index 5bef02af51b..15c2a83eb6c 100644 --- a/ext/phalcon/mvc/micro/lazyloader.zep.c +++ b/ext/phalcon/mvc/micro/lazyloader.zep.c @@ -53,7 +53,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { 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)) { zephir_get_strval(definition, definition_param); } else { @@ -89,7 +88,6 @@ PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -105,7 +103,7 @@ PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(handler); zephir_fetch_safe_class(_0, definition); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(handler, _1); if (zephir_has_constructor(handler TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, handler, "__construct", NULL, 0); diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index 2b693297d18..60609c030eb 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -336,7 +336,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -385,7 +384,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -434,7 +432,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -466,7 +463,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -498,7 +494,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -665,7 +660,6 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_fetch_params(1, 1, 2, &data_param, &dataColumnMap, &whiteList); data = data_param; - if (!dataColumnMap) { dataColumnMap = ZEPHIR_GLOBAL(global_null); } @@ -787,7 +781,6 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_fetch_params(1, 3, 2, &base, &data_param, &columnMap, &dirtyState_param, &keepSnapshots_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -919,7 +912,6 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { zephir_fetch_params(1, 3, 0, &data_param, &columnMap, &hydrationMode_param); data = data_param; - hydrationMode = zephir_get_intval(hydrationMode_param); @@ -1009,7 +1001,6 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_fetch_params(1, 2, 1, &base, &data_param, &dirtyState_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -1285,12 +1276,12 @@ 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, 303, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 302, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -1492,7 +1483,6 @@ PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(functionName, functionName_param); } else { @@ -1503,7 +1493,6 @@ PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -1818,7 +1807,6 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -1855,7 +1843,6 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -1865,7 +1852,7 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -2683,7 +2670,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (ZEPHIR_IS_FALSE_IDENTICAL(_3)) { RETURN_MM_BOOL(0); } - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } if (exists) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "beforeUpdate", ZEPHIR_TEMP_PARAM_COPY); @@ -3075,9 +3066,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -3175,12 +3166,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { */ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL, *_6 = NULL, *_11 = NULL, *_12 = NULL; - HashTable *_2, *_9; - HashPosition _1, _8; + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_8 = NULL, *_13 = NULL, *_14 = NULL; + HashTable *_3, *_11; + HashPosition _2, _10; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting; - zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0 = NULL, **_3, *_7 = NULL, **_10; + zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0, *_1 = NULL, **_4, *_6 = NULL, *_9 = NULL, **_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -3188,29 +3179,41 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { nesting = 0; - ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (nesting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); zephir_get_class(className, this_ptr, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, 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", 2592); + ZEPHIR_CPY_WRT(manager, _1); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2592); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) ) { - ZEPHIR_GET_HMKEY(name, _2, _1); - ZEPHIR_GET_HVALUE(record, _3); - ZEPHIR_CALL_METHOD(&_0, manager, "getrelationbyalias", &_4, 0, className, name); + ZEPHIR_GET_HMKEY(name, _3, _2); + ZEPHIR_GET_HVALUE(record, _4); + ZEPHIR_CALL_METHOD(&_1, manager, "getrelationbyalias", &_5, 0, className, name); zephir_check_call_status(); - ZEPHIR_CPY_WRT(relation, _0); + ZEPHIR_CPY_WRT(relation, _1); if (Z_TYPE_P(relation) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&type, relation, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(type, 0)) { if (Z_TYPE_P(record) != IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2541); return; @@ -3222,36 +3225,48 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } - ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, record, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_0))) { - ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); + if (!(zephir_is_true(_1))) { + ZEPHIR_CALL_METHOD(&_9, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); + zephir_is_iterable(_9, &_11, &_10, 0, 0, "phalcon/mvc/model.zep", 2579); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS + ; zephir_hash_move_forward_ex(_11, &_10) ) { - ZEPHIR_GET_HVALUE(message, _10); + ZEPHIR_GET_HVALUE(message, _12); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_11, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_13, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_12, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_14, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } - ZEPHIR_CALL_METHOD(&_7, record, "readattribute", NULL, 0, referencedFields); + ZEPHIR_CALL_METHOD(&_9, record, "readattribute", NULL, 0, referencedFields); zephir_check_call_status(); - zephir_update_property_zval_zval(this_ptr, columns, _7 TSRMLS_CC); + zephir_update_property_zval_zval(this_ptr, columns, _9 TSRMLS_CC); } } } @@ -3268,12 +3283,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { */ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_11 = NULL, *_20 = NULL, *_21 = NULL, *_22 = NULL, *_27 = NULL, *_28 = NULL; - HashTable *_2, *_14, *_18, *_25; - HashPosition _1, _13, _17, _24; + zephir_fcall_cache_entry *_4 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_21 = NULL, *_22 = NULL, *_23 = NULL, *_28 = NULL, *_29 = NULL; + HashTable *_2, *_15, *_19, *_26; + HashPosition _1, _14, _18, _25; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting, isThrough, _5; - zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_9 = NULL, *_10 = NULL, *_12 = NULL, **_15, *_16 = NULL, **_19, *_23 = NULL, **_26; + zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_6 = NULL, *_10 = NULL, *_11 = NULL, *_13 = NULL, **_16, *_17 = NULL, **_20, *_24 = NULL, **_27; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -3307,7 +3322,13 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { _5 = Z_TYPE_P(record) != IS_ARRAY; } if (_5) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2631); return; @@ -3319,7 +3340,13 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; @@ -3333,21 +3360,27 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, columns, PH_SILENT_CC))) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "The column '", columns, "' needs to be present in the model"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, relation, "isthrough", NULL, 0); zephir_check_call_status(); - isThrough = zephir_get_boolval(_12); + isThrough = zephir_get_boolval(_13); if (isThrough) { ZEPHIR_CALL_METHOD(&intermediateModelName, relation, "getintermediatemodel", NULL, 0); zephir_check_call_status(); @@ -3356,42 +3389,48 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); + zephir_is_iterable(relatedRecords, &_15, &_14, 0, 0, "phalcon/mvc/model.zep", 2769); for ( - ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS - ; zephir_hash_move_forward_ex(_14, &_13) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(recordAfter, _15); + ZEPHIR_GET_HVALUE(recordAfter, _16); if (!(isThrough)) { ZEPHIR_CALL_METHOD(NULL, recordAfter, "writeattribute", NULL, 0, referencedFields, value); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&_12, recordAfter, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, recordAfter, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); + if (!(zephir_is_true(_13))) { + ZEPHIR_CALL_METHOD(&_17, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); + zephir_is_iterable(_17, &_19, &_18, 0, 0, "phalcon/mvc/model.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS - ; zephir_hash_move_forward_ex(_18, &_17) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(message, _19); + ZEPHIR_GET_HVALUE(message, _20); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_21, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_22, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } if (isThrough) { - ZEPHIR_INIT_NVAR(_9); - ZVAL_BOOL(_9, 1); - ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_22, 0, intermediateModelName, _9); + ZEPHIR_INIT_NVAR(_10); + ZVAL_BOOL(_10, 1); + ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_23, 0, intermediateModelName, _10); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateFields, value); zephir_check_call_status(); @@ -3399,25 +3438,31 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateReferencedFields, intermediateValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_16, intermediateModel, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_17, intermediateModel, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_16))) { - ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); + if (!(zephir_is_true(_17))) { + ZEPHIR_CALL_METHOD(&_24, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); + zephir_is_iterable(_24, &_26, &_25, 0, 0, "phalcon/mvc/model.zep", 2763); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS + ; zephir_hash_move_forward_ex(_26, &_25) ) { - ZEPHIR_GET_HVALUE(message, _26); + ZEPHIR_GET_HVALUE(message, _27); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_27, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_10); + if (nesting) { + ZVAL_BOOL(_10, 1); + } else { + ZVAL_BOOL(_10, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, _10); zephir_check_call_status(); RETURN_MM_BOOL(0); } @@ -3425,21 +3470,33 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } } else { if (Z_TYPE_P(record) != IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_29, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVS(_11, "There are no defined relations for the model '", className, "' using alias '", name, "'"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(1); @@ -3549,7 +3606,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); zephir_check_call_status(); zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3845,7 +3902,11 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "beforeDelete", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_2, this_ptr, "fireeventcancel", NULL, 0, _6); @@ -4016,7 +4077,11 @@ PHP_METHOD(Phalcon_Mvc_Model, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -4039,7 +4104,6 @@ PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -4076,7 +4140,6 @@ PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -4121,7 +4184,6 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); @@ -4173,7 +4235,6 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); @@ -4223,7 +4284,6 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); @@ -4273,7 +4333,6 @@ PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); @@ -4321,7 +4380,6 @@ PHP_METHOD(Phalcon_Mvc_Model, hasOne) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -4370,7 +4428,6 @@ PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -4418,7 +4475,6 @@ PHP_METHOD(Phalcon_Mvc_Model, hasMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -4483,7 +4539,6 @@ PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -4494,7 +4549,6 @@ PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -4574,7 +4628,7 @@ PHP_METHOD(Phalcon_Mvc_Model, addBehavior) { PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { int ZEPHIR_LAST_CALL_STATUS; - zval *keepSnapshot_param = NULL, *_0; + zval *keepSnapshot_param = NULL, *_0, *_1; zend_bool keepSnapshot; ZEPHIR_MM_GROW(); @@ -4584,7 +4638,13 @@ PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, (keepSnapshot ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (keepSnapshot) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -4610,7 +4670,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { zephir_fetch_params(1, 1, 1, &data_param, &columnMap); data = data_param; - if (!columnMap) { columnMap = ZEPHIR_GLOBAL(global_null); } @@ -4896,7 +4955,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { int ZEPHIR_LAST_CALL_STATUS; - zval *dynamicUpdate_param = NULL, *_0; + zval *dynamicUpdate_param = NULL, *_0, *_1; zend_bool dynamicUpdate; ZEPHIR_MM_GROW(); @@ -4906,7 +4965,13 @@ PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, (dynamicUpdate ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (dynamicUpdate) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -4993,7 +5058,6 @@ PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -5004,7 +5068,6 @@ PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -5132,7 +5195,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { } ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_3, modelName); - _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _4); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -5205,7 +5268,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) != IS_NULL) { RETURN_CCTOR(records); @@ -5255,7 +5318,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) == IS_NULL) { ZEPHIR_INIT_VAR(_1); @@ -5378,7 +5441,6 @@ PHP_METHOD(Phalcon_Mvc_Model, __get) { 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)) { zephir_get_strval(property, property_param); } else { @@ -5453,7 +5515,6 @@ PHP_METHOD(Phalcon_Mvc_Model, __isset) { 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)) { zephir_get_strval(property, property_param); } else { @@ -5511,7 +5572,6 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -5666,7 +5726,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setup) { options = options_param; - ZEPHIR_OBS_VAR(disableEvents); if (zephir_array_isset_string_fetch(&disableEvents, options, SS("events"), 0 TSRMLS_CC)) { ZEPHIR_GLOBAL(orm).events = zend_is_true(disableEvents); diff --git a/ext/phalcon/mvc/model/behavior.zep.c b/ext/phalcon/mvc/model/behavior.zep.c index 2454eb58dc8..3bbd460701e 100644 --- a/ext/phalcon/mvc/model/behavior.zep.c +++ b/ext/phalcon/mvc/model/behavior.zep.c @@ -70,7 +70,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -106,7 +105,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { diff --git a/ext/phalcon/mvc/model/behavior/softdelete.zep.c b/ext/phalcon/mvc/model/behavior/softdelete.zep.c index 31654d5ff91..a50b15a8016 100644 --- a/ext/phalcon/mvc/model/behavior/softdelete.zep.c +++ b/ext/phalcon/mvc/model/behavior/softdelete.zep.c @@ -56,7 +56,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index d08c56120c5..43d54c92a23 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -84,7 +83,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index a0704d13e88..7e0c596842e 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -111,7 +111,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -150,7 +149,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, bind) { bindParams = bindParams_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bind", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindParams TSRMLS_CC); @@ -173,7 +171,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, bindTypes) { bindTypes = bindTypes_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bindTypes", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindTypes TSRMLS_CC); @@ -249,7 +246,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { 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)) { zephir_get_strval(model, model_param); } else { @@ -321,7 +317,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -365,7 +360,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -409,7 +403,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -448,7 +441,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -515,7 +507,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -551,7 +542,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -623,7 +613,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -701,7 +690,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -754,7 +742,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -809,7 +796,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -819,7 +805,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -875,7 +860,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -885,7 +869,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -933,7 +916,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -967,7 +949,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -998,7 +979,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -1154,7 +1134,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, cache) { cache = cache_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "cache", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, cache TSRMLS_CC); @@ -1314,7 +1293,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -1322,7 +1300,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZVAL_EMPTY_STRING(modelName); } data = data_param; - if (!operator_param) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); @@ -1331,7 +1308,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(operator, operator_param); } else { @@ -1351,7 +1327,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { zephir_check_call_status(); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_1, modelName); - _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _2); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -1415,12 +1391,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 308, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 307, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 309, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 308, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index c8d888852fe..90db68207cb 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -293,7 +293,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -337,7 +336,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -358,7 +356,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { if (zephir_array_isset_fetch(&model, _0, _1, 0 TSRMLS_CC)) { if (newInstance) { zephir_fetch_safe_class(_2, modelName); - _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _3); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -373,7 +371,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { } if (zephir_class_exists(modelName, 1 TSRMLS_CC)) { zephir_fetch_safe_class(_5, modelName); - _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _6); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -409,7 +407,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -471,7 +468,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -526,7 +522,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -558,7 +553,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -589,7 +583,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -775,7 +768,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -858,7 +850,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -1047,7 +1038,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -1081,7 +1071,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1134,7 +1124,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -1168,7 +1157,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1220,7 +1209,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -1255,7 +1243,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1311,7 +1299,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -1322,7 +1309,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -1365,9 +1351,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 311, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 310, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -1413,7 +1399,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -1424,7 +1409,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -1465,7 +1449,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -1476,7 +1459,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -1517,7 +1499,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -1528,7 +1509,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -1569,7 +1549,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -1580,7 +1559,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -1620,7 +1598,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -1631,7 +1608,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -1696,12 +1672,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1128); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1130 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1130); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -1728,12 +1704,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1149); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1151 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1151); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -1761,12 +1737,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } else { if (Z_TYPE_P(findParamsTwo) == IS_STRING) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1174); + zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1176 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", findParamsTwo); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1176); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } } @@ -1797,7 +1773,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -1851,7 +1826,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not supported", "phalcon/mvc/model/manager.zep", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 312, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 311, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -1916,10 +1891,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 312, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 311, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 312, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 311, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); @@ -1996,7 +1971,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -2007,7 +1981,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -2039,7 +2012,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -2050,7 +2022,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -2090,7 +2061,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -2101,7 +2071,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -2152,7 +2121,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -2163,7 +2131,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -2214,7 +2181,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -2225,7 +2191,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -2403,7 +2368,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -2477,7 +2441,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(first, first_param); } else { @@ -2488,7 +2451,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(second, second_param); } else { @@ -2545,7 +2507,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -2592,7 +2553,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -2720,7 +2680,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { diff --git a/ext/phalcon/mvc/model/message.zep.c b/ext/phalcon/mvc/model/message.zep.c index 4b63cf82189..90e7e9c5bf9 100644 --- a/ext/phalcon/mvc/model/message.zep.c +++ b/ext/phalcon/mvc/model/message.zep.c @@ -84,7 +84,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -127,7 +126,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -166,7 +164,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -267,7 +264,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_mvc_model_message_ce); zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); diff --git a/ext/phalcon/mvc/model/metadata.zep.c b/ext/phalcon/mvc/model/metadata.zep.c index 9d8d8a594b3..53aa93e612c 100644 --- a/ext/phalcon/mvc/model/metadata.zep.c +++ b/ext/phalcon/mvc/model/metadata.zep.c @@ -464,16 +464,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMapIndex) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 374); @@ -493,16 +493,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 391); @@ -522,16 +522,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 2); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 408); @@ -551,16 +551,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 3); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 425); @@ -580,16 +580,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 4); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 442); @@ -609,16 +609,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 5); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 5); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 459); @@ -641,16 +641,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, _0; + zval *model, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 8); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 8); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, _0); zephir_check_call_status(); RETURN_MM(); @@ -666,16 +666,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 9); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 9); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 491); @@ -695,16 +695,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 508); @@ -724,16 +724,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 525); @@ -754,7 +754,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -762,9 +762,9 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -781,7 +781,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -789,9 +789,9 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -808,7 +808,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -816,9 +816,9 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -834,16 +834,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 578); @@ -863,16 +863,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDefaultValues) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 12); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 12); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 595); @@ -893,16 +893,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { @@ -927,16 +927,16 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData, getReverseColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { diff --git a/ext/phalcon/mvc/model/metadata/apc.zep.c b/ext/phalcon/mvc/model/metadata/apc.zep.c index ba829bb0be6..0ee6d161bff 100644 --- a/ext/phalcon/mvc/model/metadata/apc.zep.c +++ b/ext/phalcon/mvc/model/metadata/apc.zep.c @@ -99,7 +99,6 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136,7 +135,6 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { diff --git a/ext/phalcon/mvc/model/metadata/files.zep.c b/ext/phalcon/mvc/model/metadata/files.zep.c index 71a5a5b4f9c..f637425e3a0 100644 --- a/ext/phalcon/mvc/model/metadata/files.zep.c +++ b/ext/phalcon/mvc/model/metadata/files.zep.c @@ -93,7 +93,6 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -138,7 +137,6 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -157,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, "funcs->get_current_data(_0, &ZEPHIR_TMP_ITERATOR_PTR TSRMLS_CC); ZEPHIR_CPY_WRT(record, (*ZEPHIR_TMP_ITERATOR_PTR)); } - zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/resultset.zep", 546); + zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(processedRecord); ZEPHIR_CALL_USER_FUNC_ARRAY(processedRecord, filter, parameters); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/model/resultset/complex.zep.c b/ext/phalcon/mvc/model/resultset/complex.zep.c index 1e81645d7db..1feba45d63f 100644 --- a/ext/phalcon/mvc/model/resultset/complex.zep.c +++ b/ext/phalcon/mvc/model/resultset/complex.zep.c @@ -72,7 +72,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_this(this_ptr, SL("_columnTypes"), columnTypes TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 352, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 351, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105,7 +105,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { RETURN_CCTOR(row); } if (Z_TYPE_P(row) != IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_activeRow"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_activeRow"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_activeRow"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } ZEPHIR_OBS_VAR(hydrateMode); @@ -318,7 +322,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -327,7 +330,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { } - zephir_update_property_this(this_ptr, SL("_disableHydration"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_disableHydration"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disableHydration"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 75, data); zephir_check_call_status(); if (Z_TYPE_P(resultset) != IS_ARRAY) { diff --git a/ext/phalcon/mvc/model/resultset/simple.zep.c b/ext/phalcon/mvc/model/resultset/simple.zep.c index e30b23aea1d..c1b4b3e96b7 100644 --- a/ext/phalcon/mvc/model/resultset/simple.zep.c +++ b/ext/phalcon/mvc/model/resultset/simple.zep.c @@ -78,7 +78,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_this(this_ptr, SL("_model"), model TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_columnMap"), columnMap TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_keepSnapshots"), keepSnapshots TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 352, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 351, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -104,7 +104,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { ZEPHIR_OBS_VAR(row); zephir_read_property_this(&row, this_ptr, SL("_row"), PH_NOISY_CC); if (Z_TYPE_P(row) != IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_activeRow"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_activeRow"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_activeRow"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } ZEPHIR_OBS_VAR(hydrateMode); @@ -136,12 +140,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 353, _2, row, columnMap, _3, _6); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_5, 352, _2, row, columnMap, _3, _6); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 354, row, columnMap, hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_7, 353, row, columnMap, hydrateMode); zephir_check_call_status(); break; } while(0); @@ -303,7 +307,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { diff --git a/ext/phalcon/mvc/model/row.zep.c b/ext/phalcon/mvc/model/row.zep.c index 665f6ff1aa6..4a41f044051 100644 --- a/ext/phalcon/mvc/model/row.zep.c +++ b/ext/phalcon/mvc/model/row.zep.c @@ -185,7 +185,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { diff --git a/ext/phalcon/mvc/model/transaction.zep.c b/ext/phalcon/mvc/model/transaction.zep.c index 52b1701599f..1b3595de90d 100644 --- a/ext/phalcon/mvc/model/transaction.zep.c +++ b/ext/phalcon/mvc/model/transaction.zep.c @@ -248,7 +248,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 355, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 354, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -270,7 +270,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 356); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 355); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); @@ -297,7 +297,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, setIsNewTransaction) { isNew = zephir_get_boolval(isNew_param); - zephir_update_property_this(this_ptr, SL("_isNewTransaction"), isNew ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isNew) { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -314,7 +318,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, setRollbackOnAbort) { rollbackOnAbort = zephir_get_boolval(rollbackOnAbort_param); - zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), rollbackOnAbort ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (rollbackOnAbort) { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } diff --git a/ext/phalcon/mvc/model/transaction/failed.zep.c b/ext/phalcon/mvc/model/transaction/failed.zep.c index 134046fc1da..50dc8b3892b 100644 --- a/ext/phalcon/mvc/model/transaction/failed.zep.c +++ b/ext/phalcon/mvc/model/transaction/failed.zep.c @@ -51,7 +51,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { 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)) { zephir_get_strval(message, message_param); } else { diff --git a/ext/phalcon/mvc/model/transaction/manager.zep.c b/ext/phalcon/mvc/model/transaction/manager.zep.c index 573c705a0aa..7c58f8e7328 100644 --- a/ext/phalcon/mvc/model/transaction/manager.zep.c +++ b/ext/phalcon/mvc/model/transaction/manager.zep.c @@ -161,7 +161,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { 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)) { zephir_get_strval(service, service_param); } else { @@ -200,7 +199,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setRollbackPendent) { rollbackPendent = zephir_get_boolval(rollbackPendent_param); - zephir_update_property_this(this_ptr, SL("_rollbackPendent"), rollbackPendent ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (rollbackPendent) { + zephir_update_property_this(this_ptr, SL("_rollbackPendent"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_rollbackPendent"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -236,7 +239,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { int ZEPHIR_LAST_CALL_STATUS; zval *_2; - zval *autoBegin_param = NULL, *_0, *_1, *_3; + zval *autoBegin_param = NULL, *_0, *_1, *_3 = NULL; zend_bool autoBegin; ZEPHIR_MM_GROW(); @@ -259,12 +262,22 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "rollbackPendent", 1); zephir_array_fast_append(_2, _3); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 357, _2); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 356, _2); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_initialized"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_initialized"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_initialized"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getorcreatetransaction", NULL, 0, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_3); + if (autoBegin) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getorcreatetransaction", NULL, 0, _3); zephir_check_call_status(); RETURN_MM(); @@ -321,9 +334,15 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) { ZEPHIR_INIT_VAR(transaction); object_init_ex(transaction, phalcon_mvc_model_transaction_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_service"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 358, dependencyInjector, (autoBegin ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), _5); + ZEPHIR_INIT_NVAR(_4); + if (autoBegin) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, transaction, "__construct", NULL, 357, dependencyInjector, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 359, this_ptr); + ZEPHIR_CALL_METHOD(NULL, transaction, "settransactionmanager", NULL, 358, 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)); diff --git a/ext/phalcon/mvc/model/validationfailed.zep.c b/ext/phalcon/mvc/model/validationfailed.zep.c index 0cdfdb01cab..91e185fcebf 100644 --- a/ext/phalcon/mvc/model/validationfailed.zep.c +++ b/ext/phalcon/mvc/model/validationfailed.zep.c @@ -56,7 +56,6 @@ PHP_METHOD(Phalcon_Mvc_Model_ValidationFailed, __construct) { validationMessages = validationMessages_param; - if (zephir_fast_count_int(validationMessages TSRMLS_CC) > 0) { ZEPHIR_OBS_VAR(message); zephir_array_fetch_long(&message, validationMessages, 0, PH_NOISY, "phalcon/mvc/model/validationfailed.zep", 51 TSRMLS_CC); diff --git a/ext/phalcon/mvc/model/validator.zep.c b/ext/phalcon/mvc/model/validator.zep.c index 60df7b6da00..9611f80fe63 100644 --- a/ext/phalcon/mvc/model/validator.zep.c +++ b/ext/phalcon/mvc/model/validator.zep.c @@ -53,7 +53,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator, __construct) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); } @@ -78,7 +77,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -151,7 +149,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -188,7 +185,6 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { 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)) { zephir_get_strval(option, option_param); } else { diff --git a/ext/phalcon/mvc/model/validator/email.zep.c b/ext/phalcon/mvc/model/validator/email.zep.c index f4f640aff05..ead2b41264c 100644 --- a/ext/phalcon/mvc/model/validator/email.zep.c +++ b/ext/phalcon/mvc/model/validator/email.zep.c @@ -94,7 +94,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/model/validator/inclusionin.zep.c b/ext/phalcon/mvc/model/validator/inclusionin.zep.c index 25d69fda3ec..f95d7b38208 100644 --- a/ext/phalcon/mvc/model/validator/inclusionin.zep.c +++ b/ext/phalcon/mvc/model/validator/inclusionin.zep.c @@ -131,7 +131,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { zephir_check_temp_parameter(_0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 360, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_5, "in_array", NULL, 359, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_5))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/model/validator/ip.zep.c b/ext/phalcon/mvc/model/validator/ip.zep.c index d44083f5bcc..afb6bf89221 100644 --- a/ext/phalcon/mvc/model/validator/ip.zep.c +++ b/ext/phalcon/mvc/model/validator/ip.zep.c @@ -148,7 +148,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_array_update_string(&options, SL("flags"), &_6, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 275); - ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 193, value, &_5, options); + ZEPHIR_CALL_FUNCTION(&_7, "filter_var", NULL, 192, value, &_5, options); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/model/validator/stringlength.zep.c b/ext/phalcon/mvc/model/validator/stringlength.zep.c index 268dbbc2c22..c493d5450c8 100644 --- a/ext/phalcon/mvc/model/validator/stringlength.zep.c +++ b/ext/phalcon/mvc/model/validator/stringlength.zep.c @@ -118,7 +118,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); diff --git a/ext/phalcon/mvc/model/validator/url.zep.c b/ext/phalcon/mvc/model/validator/url.zep.c index b5734f622a2..7008417e89f 100644 --- a/ext/phalcon/mvc/model/validator/url.zep.c +++ b/ext/phalcon/mvc/model/validator/url.zep.c @@ -95,7 +95,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_0); diff --git a/ext/phalcon/mvc/router.zep.c b/ext/phalcon/mvc/router.zep.c index 68830237dae..19c600bf9be 100644 --- a/ext/phalcon/mvc/router.zep.c +++ b/ext/phalcon/mvc/router.zep.c @@ -113,7 +113,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *routes, *_1, *_4; + zval *routes = NULL, *_1, *_4; zval *defaultRoutes_param = NULL, *_0 = NULL, *_2 = NULL, *_5; zend_bool defaultRoutes; @@ -127,13 +127,14 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - defaultRoutes = Z_BVAL_P(defaultRoutes_param); } ZEPHIR_INIT_VAR(routes); array_init(routes); + ZEPHIR_INIT_NVAR(routes); + array_init(routes); if (defaultRoutes) { ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_mvc_router_route_ce); @@ -289,11 +290,14 @@ PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } - remove = Z_BVAL_P(remove_param); - zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (remove) { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -313,7 +317,6 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { 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)) { zephir_get_strval(namespaceName, namespaceName_param); } else { @@ -342,7 +345,6 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { 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)) { zephir_get_strval(moduleName, moduleName_param); } else { @@ -371,7 +373,6 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -400,7 +401,6 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -435,7 +435,6 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaults) { defaults = defaults_param; - if (zephir_array_isset_string_fetch(&namespaceName, defaults, SS("namespace"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_defaultNamespace"), namespaceName TSRMLS_CC); } @@ -517,7 +516,7 @@ PHP_METHOD(Phalcon_Mvc_Router, handle) { } - if (!(uri && Z_STRLEN_P(uri))) { + if (!(!(!uri) && Z_STRLEN_P(uri))) { ZEPHIR_CALL_METHOD(&realUri, this_ptr, "getrewriteuri", NULL, 0); zephir_check_call_status(); } else { @@ -548,7 +547,11 @@ PHP_METHOD(Phalcon_Mvc_Router, handle) { array_init(params); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_matchedRoute"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_OBS_VAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); @@ -734,9 +737,17 @@ PHP_METHOD(Phalcon_Mvc_Router, handle) { } } if (zephir_is_true(routeFound)) { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } if (!(zephir_is_true(routeFound))) { ZEPHIR_OBS_VAR(notFoundPaths); @@ -845,7 +856,6 @@ PHP_METHOD(Phalcon_Mvc_Router, add) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -907,7 +917,6 @@ PHP_METHOD(Phalcon_Mvc_Router, addGet) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -948,7 +957,6 @@ PHP_METHOD(Phalcon_Mvc_Router, addPost) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -989,7 +997,6 @@ PHP_METHOD(Phalcon_Mvc_Router, addPut) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -1030,7 +1037,6 @@ PHP_METHOD(Phalcon_Mvc_Router, addPatch) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -1071,7 +1077,6 @@ PHP_METHOD(Phalcon_Mvc_Router, addDelete) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -1112,7 +1117,6 @@ PHP_METHOD(Phalcon_Mvc_Router, addOptions) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -1153,7 +1157,6 @@ PHP_METHOD(Phalcon_Mvc_Router, addHead) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -1419,7 +1422,6 @@ PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { diff --git a/ext/phalcon/mvc/router/annotations.zep.c b/ext/phalcon/mvc/router/annotations.zep.c index 6d4dc170326..3ae5fb4d2dc 100644 --- a/ext/phalcon/mvc/router/annotations.zep.c +++ b/ext/phalcon/mvc/router/annotations.zep.c @@ -77,7 +77,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { 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)) { zephir_get_strval(handler, handler_param); } else { @@ -92,7 +91,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { 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)) { zephir_get_strval(prefix, prefix_param); } else { @@ -107,7 +105,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { zephir_array_fast_append(_0, prefix); zephir_array_fast_append(_0, handler); zephir_update_property_array_append(this_ptr, SL("_handlers"), _0 TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_processed"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_processed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_processed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -130,7 +132,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { 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)) { zephir_get_strval(module, module_param); } else { @@ -141,7 +142,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { 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)) { zephir_get_strval(handler, handler_param); } else { @@ -156,7 +156,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { 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)) { zephir_get_strval(prefix, prefix_param); } else { @@ -172,7 +171,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { zephir_array_fast_append(_0, handler); zephir_array_fast_append(_0, module); zephir_update_property_array_append(this_ptr, SL("_handlers"), _0 TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_processed"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_processed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_processed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -200,7 +203,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { 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)) { zephir_get_strval(uri, uri_param); } else { @@ -210,7 +212,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } - if (!(uri && Z_STRLEN_P(uri))) { + if (!(!(!uri) && Z_STRLEN_P(uri))) { ZEPHIR_CALL_METHOD(&realUri, this_ptr, "getrewriteuri", NULL, 0); zephir_check_call_status(); } else { @@ -324,9 +326,13 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } } } - zephir_update_property_this(this_ptr, SL("_processed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_processed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_processed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 362, realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_18, 361, realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -348,7 +354,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { 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)) { zephir_get_strval(handler, handler_param); } else { @@ -390,7 +395,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { 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)) { zephir_get_strval(module, module_param); } else { @@ -401,7 +405,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { 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)) { zephir_get_strval(namespaceName, namespaceName_param); } else { @@ -412,7 +415,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { 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)) { zephir_get_strval(controller, controller_param); } else { @@ -423,7 +425,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { 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)) { zephir_get_strval(action, action_param); } else { @@ -618,7 +619,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { 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)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { @@ -647,7 +647,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { 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)) { zephir_get_strval(actionSuffix, actionSuffix_param); } else { diff --git a/ext/phalcon/mvc/router/group.zep.c b/ext/phalcon/mvc/router/group.zep.c index e4f1d4bff61..547cff144f0 100644 --- a/ext/phalcon/mvc/router/group.zep.c +++ b/ext/phalcon/mvc/router/group.zep.c @@ -253,7 +253,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, add) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -294,7 +293,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -335,7 +333,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -376,7 +373,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -417,7 +413,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -458,7 +453,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -499,7 +493,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -540,7 +533,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -594,7 +586,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -635,7 +626,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_CALL_METHOD(NULL, route, "__construct", NULL, 77, _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, 363, this_ptr); + ZEPHIR_CALL_METHOD(NULL, route, "setgroup", NULL, 362, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); diff --git a/ext/phalcon/mvc/router/route.zep.c b/ext/phalcon/mvc/router/route.zep.c index f468fe23aa7..ee1d394e9ee 100644 --- a/ext/phalcon/mvc/router/route.zep.c +++ b/ext/phalcon/mvc/router/route.zep.c @@ -76,7 +76,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -124,7 +123,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -235,7 +233,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -453,7 +450,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -762,7 +758,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { 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)) { zephir_get_strval(hostname, hostname_param); } else { @@ -827,7 +822,6 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -857,7 +851,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, getConverters) { PHP_METHOD(Phalcon_Mvc_Router_Route, reset) { - zephir_update_static_property_ce(phalcon_mvc_router_route_ce, SL("_uniqueId"), &(ZEPHIR_GLOBAL(global_null)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_mvc_router_route_ce, SL("_uniqueId"), &ZEPHIR_GLOBAL(global_null) TSRMLS_CC); } diff --git a/ext/phalcon/mvc/url.zep.c b/ext/phalcon/mvc/url.zep.c index 02039ab9cec..8084d1deae1 100644 --- a/ext/phalcon/mvc/url.zep.c +++ b/ext/phalcon/mvc/url.zep.c @@ -104,7 +104,6 @@ PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { 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)) { zephir_get_strval(baseUri, baseUri_param); } else { @@ -141,7 +140,6 @@ PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { 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)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { @@ -228,7 +226,6 @@ PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { 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)) { zephir_get_strval(basePath, basePath_param); } else { @@ -412,7 +409,7 @@ PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 364, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 363, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index e04508cdd5f..6405662e7de 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -164,7 +164,6 @@ PHP_METHOD(Phalcon_Mvc_View, getCurrentRenderLevel) { } /** - * @var array */ PHP_METHOD(Phalcon_Mvc_View, getRegisteredEngines) { @@ -553,7 +552,6 @@ PHP_METHOD(Phalcon_Mvc_View, setParamToView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -588,7 +586,6 @@ PHP_METHOD(Phalcon_Mvc_View, setVars) { zephir_fetch_params(1, 1, 1, ¶ms_param, &merge_param); params = params_param; - if (!merge_param) { merge = 1; } else { @@ -636,7 +633,6 @@ PHP_METHOD(Phalcon_Mvc_View, setVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -668,7 +664,6 @@ PHP_METHOD(Phalcon_Mvc_View, getVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -774,7 +769,7 @@ PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 365, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 364, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -837,13 +832,13 @@ PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { */ PHP_METHOD(Phalcon_Mvc_View, _engineRender) { - zephir_fcall_cache_entry *_9 = NULL, *_10 = NULL; + zephir_fcall_cache_entry *_9 = NULL, *_11 = NULL; HashTable *_6; HashPosition _5; int renderLevel, cacheLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean, notExists; zval *viewPath = NULL; - zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_11; + zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_10 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &engines, &viewPath_param, &silence_param, &mustClean_param, &cache); @@ -934,14 +929,20 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender) { continue; } } - ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_8); + if (mustClean) { + ZVAL_BOOL(_8, 1); + } else { + ZVAL_BOOL(_8, 0); + } + ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, _8); zephir_check_call_status(); notExists = 0; if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_STRING(_8, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_10, 0, _8, this_ptr); - zephir_check_temp_parameter(_8); + ZEPHIR_INIT_NVAR(_10); + ZVAL_STRING(_10, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_11, 0, _10, this_ptr); + zephir_check_temp_parameter(_10); zephir_check_call_status(); } break; @@ -959,9 +960,9 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender) { if (!(silence)) { ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_mvc_view_exception_ce); - ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVS(_11, "View '", viewsDirPath, "' was not found in the views directory"); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _11); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "View '", viewsDirPath, "' was not found in the views directory"); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _12); zephir_check_call_status(); zephir_throw_exception_debug(_8, "phalcon/mvc/view.zep", 684 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -993,7 +994,6 @@ PHP_METHOD(Phalcon_Mvc_View, registerEngines) { engines = engines_param; - zephir_update_property_this(this_ptr, SL("_registeredEngines"), engines TSRMLS_CC); RETURN_THISW(); @@ -1017,7 +1017,6 @@ PHP_METHOD(Phalcon_Mvc_View, exists) { 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)) { zephir_get_strval(view, view_param); } else { @@ -1074,12 +1073,12 @@ PHP_METHOD(Phalcon_Mvc_View, exists) { */ PHP_METHOD(Phalcon_Mvc_View, render) { - HashTable *_11, *_15; - HashPosition _10, _14; - zephir_fcall_cache_entry *_2 = NULL, *_9 = NULL; + HashTable *_12, *_17; + HashPosition _11, _16; + zephir_fcall_cache_entry *_2 = NULL, *_10 = NULL; int renderLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean; - zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, **_12, *_13 = NULL, **_16, *_17 = NULL, *_18, *_19 = NULL, *_20 = NULL; + zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, *_9 = NULL, **_13, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21, *_22 = NULL, *_23 = NULL; zval *controllerName = NULL, *actionName = NULL, *_3; ZEPHIR_MM_GROW(); @@ -1089,7 +1088,6 @@ PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -1100,7 +1098,6 @@ PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -1193,7 +1190,19 @@ PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 1); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, renderView, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_7); + if (silence) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_INIT_VAR(_9); + if (mustClean) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, renderView, _7, _9, cache); zephir_check_call_status(); } } @@ -1206,15 +1215,27 @@ PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesBefore, this_ptr, SL("_templatesBefore"), PH_NOISY_CC); if (Z_TYPE_P(templatesBefore) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesBefore, &_11, &_10, 0, 0, "phalcon/mvc/view.zep", 881); + zephir_is_iterable(templatesBefore, &_12, &_11, 0, 0, "phalcon/mvc/view.zep", 881); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zephir_hash_move_forward_ex(_12, &_11) ) { - ZEPHIR_GET_HVALUE(templateBefore, _12); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, templateBefore); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateBefore, _13); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, templateBefore); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } silence = 1; @@ -1226,9 +1247,21 @@ PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 3); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, layoutName); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, layoutName); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } } @@ -1241,15 +1274,27 @@ PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesAfter, this_ptr, SL("_templatesAfter"), PH_NOISY_CC); if (Z_TYPE_P(templatesAfter) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesAfter, &_15, &_14, 0, 0, "phalcon/mvc/view.zep", 912); + zephir_is_iterable(templatesAfter, &_17, &_16, 0, 0, "phalcon/mvc/view.zep", 912); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) ) { - ZEPHIR_GET_HVALUE(templateAfter, _16); - ZEPHIR_INIT_LNVAR(_17); - ZEPHIR_CONCAT_VV(_17, layoutsDir, templateAfter); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _17, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateAfter, _18); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_VV(_19, layoutsDir, templateAfter); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_20); + if (mustClean) { + ZVAL_BOOL(_20, 1); + } else { + ZVAL_BOOL(_20, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _19, _9, _20, cache); zephir_check_call_status(); } silence = 1; @@ -1262,20 +1307,32 @@ PHP_METHOD(Phalcon_Mvc_View, render) { ZVAL_LONG(_5, 5); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_mainView"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _5, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _5, _9, _15, cache); zephir_check_call_status(); } } - ZEPHIR_INIT_ZVAL_NREF(_18); - ZVAL_LONG(_18, 0); - zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _18 TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_21); + ZVAL_LONG(_21, 0); + zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _21 TSRMLS_CC); if (Z_TYPE_P(cache) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(&_19, cache, "isstarted", NULL, 0); + ZEPHIR_CALL_METHOD(&_22, cache, "isstarted", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_19)) { - ZEPHIR_CALL_METHOD(&_20, cache, "isfresh", NULL, 0); + if (ZEPHIR_IS_TRUE(_22)) { + ZEPHIR_CALL_METHOD(&_23, cache, "isfresh", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_20)) { + if (ZEPHIR_IS_TRUE(_23)) { ZEPHIR_CALL_METHOD(NULL, cache, "save", NULL, 0); zephir_check_call_status(); } else { @@ -1382,7 +1439,6 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -1398,7 +1454,7 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 284); zephir_check_call_status(); RETURN_MM(); @@ -1433,7 +1489,6 @@ PHP_METHOD(Phalcon_Mvc_View, partial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -1504,7 +1559,6 @@ PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -1515,7 +1569,6 @@ PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -1774,7 +1827,11 @@ PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath) { PHP_METHOD(Phalcon_Mvc_View, disable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -1785,7 +1842,11 @@ PHP_METHOD(Phalcon_Mvc_View, disable) { PHP_METHOD(Phalcon_Mvc_View, enable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -1798,8 +1859,16 @@ PHP_METHOD(Phalcon_Mvc_View, reset) { zval *_0; - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_engines"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (0) { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_cache"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(_0, 5); @@ -1836,7 +1905,6 @@ PHP_METHOD(Phalcon_Mvc_View, __set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -1872,7 +1940,6 @@ PHP_METHOD(Phalcon_Mvc_View, __get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -1921,7 +1988,6 @@ PHP_METHOD(Phalcon_Mvc_View, __isset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { diff --git a/ext/phalcon/mvc/view/engine.zep.c b/ext/phalcon/mvc/view/engine.zep.c index 2f78441cc6b..1b66c736a5f 100644 --- a/ext/phalcon/mvc/view/engine.zep.c +++ b/ext/phalcon/mvc/view/engine.zep.c @@ -92,7 +92,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index 3ead02c0335..a0587b4a0ba 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -55,7 +55,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { 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)) { zephir_get_strval(path, path_param); } else { @@ -70,7 +69,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 365); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index ac6b0528c20..7be03af8a94 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, setOptions) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); } @@ -89,18 +88,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(compiler); object_init_ex(compiler, phalcon_mvc_view_engine_volt_compiler_ce); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_view"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 367, _0); + ZEPHIR_CALL_METHOD(NULL, compiler, "__construct", NULL, 366, _0); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _1); if (Z_TYPE_P(dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 368, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, compiler, "setdi", NULL, 367, dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(options); zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 369, options); + ZEPHIR_CALL_METHOD(NULL, compiler, "setoptions", NULL, 368, options); zephir_check_call_status(); } zephir_update_property_this(this_ptr, SL("_compiler"), compiler TSRMLS_CC); @@ -128,7 +127,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { 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)) { zephir_get_strval(templatePath, templatePath_param); } else { @@ -143,7 +141,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 366); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 365); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -205,7 +203,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { ZVAL_LONG(length, zephir_fast_count_int(item TSRMLS_CC)); } else { if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, item); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, item); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -234,7 +232,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SS("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 370, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0, "mb_strpos", NULL, 369, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(_0)); } @@ -265,7 +263,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { 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)) { zephir_get_strval(from, from_param); } else { @@ -276,7 +273,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { 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)) { zephir_get_strval(to, to_param); } else { @@ -290,7 +286,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 371, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 370, text); zephir_check_call_status(); RETURN_MM(); } @@ -299,17 +295,17 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _1 = ZEPHIR_IS_STRING(from, "utf8"); } if (_1) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 372, text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 371, text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, text, from, to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, text, from, to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SS("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 373, from, to, text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 372, from, to, text); zephir_check_call_status(); RETURN_MM(); } @@ -383,7 +379,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 374, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 373, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } @@ -391,13 +387,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { if (Z_TYPE_P(length) != IS_NULL) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5, length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 374, value, &_5, length); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 375, value, &_5); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_6, 374, value, &_5); zephir_check_call_status(); RETURN_MM(); } @@ -429,9 +425,9 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { zephir_get_arrval(value, value_param); - Z_SET_ISREF_P(value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 376, value); - Z_UNSET_ISREF_P(value); + ZEPHIR_MAKE_REF(value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 375, value); + ZEPHIR_UNREF(value); zephir_check_call_status(); RETURN_CTOR(value); @@ -454,7 +450,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -477,7 +472,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 377, macro, arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 376, macro, arguments); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index 522e7bd50d6..6f850da88e8 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -152,7 +152,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOptions) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); } @@ -175,7 +174,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -207,7 +205,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -257,7 +254,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -357,7 +353,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -396,7 +391,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -435,7 +429,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { 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)) { zephir_get_strval(prefix, prefix_param); } else { @@ -505,7 +498,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { expr = expr_param; - ZEPHIR_INIT_VAR(exprCode); ZVAL_NULL(exprCode); ZEPHIR_OBS_VAR(left); @@ -545,7 +537,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 378, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_4, 377, 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", 339 TSRMLS_CC); @@ -567,7 +559,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_7, right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 352 TSRMLS_CC); zephir_concat_self(&exprCode, _7 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 378, right); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_4, 377, right); zephir_check_call_status(); zephir_concat_self(&exprCode, _1 TSRMLS_CC); } @@ -592,14 +584,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { expr = expr_param; - ZEPHIR_INIT_VAR(code); ZVAL_NULL(code); ZEPHIR_INIT_VAR(funcArguments); ZVAL_NULL(funcArguments); ZEPHIR_OBS_NVAR(funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, expr, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 378, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 377, funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(arguments); @@ -622,7 +613,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(_1, funcArguments); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "compileFunction", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _2, _1); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _2, _1); zephir_check_temp_parameter(_2); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -684,7 +675,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(exprLevel); zephir_read_property_this(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 380, block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 379, block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(exprLevel, 1)) { ZEPHIR_CPY_WRT(escapedCode, code); @@ -780,7 +771,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 377, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -802,7 +793,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { zephir_fetch_params(1, 2, 0, &test_param, &left_param); test = test_param; - zephir_get_strval(left, left_param); @@ -843,28 +833,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -886,7 +876,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_fetch_params(1, 2, 0, &filter_param, &left_param); filter = filter_param; - zephir_get_strval(left, left_param); @@ -938,12 +927,12 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); - Z_UNSET_ISREF_P(funcArguments); + ZEPHIR_MAKE_REF(funcArguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, funcArguments, _4); + ZEPHIR_UNREF(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 377, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -958,7 +947,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -1146,7 +1135,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { expr = expr_param; - ZEPHIR_INIT_VAR(exprCode); ZVAL_NULL(exprCode); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("_exprLevel") TSRMLS_CC)); @@ -1159,7 +1147,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 378, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -1177,7 +1165,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -1199,7 +1187,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 377, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -1210,13 +1198,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 381, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 377, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -1392,7 +1380,7 @@ 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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 377, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -1400,7 +1388,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 377, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -1492,7 +1480,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -1571,7 +1559,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends) { } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 382, statements); zephir_check_call_status(); RETURN_MM(); } @@ -1590,14 +1578,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, *_12, *_13 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -1622,7 +1609,7 @@ 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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, 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", 1369 TSRMLS_CC); @@ -1652,7 +1639,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (extendsMode) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 382, blockStatements, _5); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -1660,27 +1653,27 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_SVSVS(_4, "length = count($", prefixLevel, "iterator); "); + ZEPHIR_CONCAT_SVS(_7, "$", prefixLevel, "loop = new stdClass(); "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_VAR(_8); - ZEPHIR_CONCAT_SVS(_8, "$", prefixLevel, "loop->index = 1; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->length = count($", prefixLevel, "iterator); "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index0 = 1; "); + ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index = 1; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); + ZEPHIR_CONCAT_SVS(_10, "$", prefixLevel, "loop->index0 = 1; "); zephir_concat_self(&compilation, _10 TSRMLS_CC); ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); zephir_concat_self(&compilation, _11 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVSVS(_12, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + zephir_concat_self(&compilation, _12 TSRMLS_CC); ZEPHIR_INIT_VAR(iterator); ZEPHIR_CONCAT_SVS(iterator, "$", prefixLevel, "iterator"); } else { @@ -1690,48 +1683,48 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_array_fetch_string(&variable, statement, SL("variable"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1424 TSRMLS_CC); ZEPHIR_OBS_VAR(key); if (zephir_array_isset_string_fetch(&key, statement, SS("key"), 0 TSRMLS_CC)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, " $", variable, ") { "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVSVSVS(_6, " $", variable, ") { "); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, "if (", _13, ") { ?>"); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("?>") TSRMLS_CC); } if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, "first = ($", prefixLevel, "incr == 0); "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_6); - ZEPHIR_CONCAT_SVSVS(_6, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); + ZEPHIR_CONCAT_SVSVS(_6, "first = ($", prefixLevel, "incr == 0); "); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); - ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_8); - ZEPHIR_CONCAT_SVSVSVS(_8, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); + ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); zephir_concat_self(&compilation, _10 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVSVS(_11, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + zephir_concat_self(&compilation, _11 TSRMLS_CC); } if (Z_TYPE_P(forElse) == IS_STRING) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } zephir_concat_self(&compilation, code TSRMLS_CC); if (zephir_array_isset_string(statement, SS("if_expr"))) { @@ -1741,9 +1734,9 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } else { if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } @@ -1781,17 +1774,16 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForElse) { */ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { - zephir_fcall_cache_entry *_3 = NULL; + zephir_fcall_cache_entry *_4 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_4 = NULL, *_5; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_3, *_5 = NULL, *_6, *_7; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -1804,20 +1796,32 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_3); + if (extendsMode) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 382, _2, _3); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (extendsMode) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_statementlist", &_4, 382, blockStatements, _6); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SV(_5, "", _4); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, "", _5); + zephir_concat_self(&compilation, _7 TSRMLS_CC); } zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); RETURN_CCTOR(compilation); @@ -1839,13 +1843,12 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1860,14 +1863,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7, *_8; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -1880,9 +1882,9 @@ 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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -1912,16 +1914,22 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_7); + if (extendsMode) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 382, _3, _7); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); if (zephir_array_isset_string_fetch(&lifetime, statement, SS("lifetime"), 0 TSRMLS_CC)) { zephir_array_fetch_string(&_4, lifetime, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1599 TSRMLS_CC); if (ZEPHIR_IS_LONG(_4, 265)) { - zephir_array_fetch_string(&_7, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); + zephir_array_fetch_string(&_8, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _7, "); "); + ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _8, "); "); zephir_concat_self(&compilation, _5 TSRMLS_CC); } else { zephir_array_fetch_string(&_4, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1602 TSRMLS_CC); @@ -1959,7 +1967,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { statement = statement_param; - ZEPHIR_OBS_VAR(assignments); if (!(zephir_array_isset_string_fetch(&assignments, statement, SS("assignments"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1623); @@ -1974,10 +1981,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 377, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 377, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -2032,13 +2039,12 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -2060,13 +2066,12 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileReturn) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -2080,14 +2085,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0; + zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0, *_1; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -2100,7 +2104,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 382, _0, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -2126,13 +2136,12 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -2171,7 +2180,6 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { statement = statement_param; - ZEPHIR_OBS_VAR(pathExpr); if (!(zephir_array_isset_string_fetch(&pathExpr, statement, SS("path"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1799); @@ -2209,14 +2217,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 377, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 377, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -2233,14 +2241,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1 = NULL, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -2300,7 +2307,7 @@ 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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 377, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -2316,7 +2323,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 382, blockStatements, _1); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 416, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -160,7 +160,7 @@ PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 417, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -270,7 +270,7 @@ PHP_METHOD(Phalcon_Tag_Select, _optionsFromResultset) { ZEPHIR_INIT_NVAR(params); array_init(params); } - zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE, "phalcon/tag/select.zep", 218); + zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(_4); ZEPHIR_CALL_USER_FUNC_ARRAY(_4, using, params); zephir_check_call_status(); @@ -313,12 +313,12 @@ PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 417, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index b8b309f43fb..e9389e02038 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -67,7 +67,6 @@ PHP_METHOD(Phalcon_Text, camelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -101,7 +100,6 @@ PHP_METHOD(Phalcon_Text, uncamelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -194,13 +192,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -211,13 +209,13 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -228,7 +226,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -237,7 +235,7 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -245,21 +243,21 @@ PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 419, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -292,7 +290,7 @@ PHP_METHOD(Phalcon_Text, random) { PHP_METHOD(Phalcon_Text, startsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *start = NULL; ZEPHIR_MM_GROW(); @@ -307,7 +305,9 @@ PHP_METHOD(Phalcon_Text, startsWith) { } - RETURN_MM_BOOL(zephir_start_with(str, start, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_start_with(str, start, &_0)); } @@ -323,7 +323,7 @@ PHP_METHOD(Phalcon_Text, startsWith) { PHP_METHOD(Phalcon_Text, endsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *end = NULL; ZEPHIR_MM_GROW(); @@ -338,7 +338,9 @@ PHP_METHOD(Phalcon_Text, endsWith) { } - RETURN_MM_BOOL(zephir_end_with(str, end, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_end_with(str, end, &_0)); } @@ -362,7 +364,6 @@ PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(str, str_param); } else { @@ -377,7 +378,6 @@ PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -388,7 +388,7 @@ PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -417,7 +417,6 @@ PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(str, str_param); } else { @@ -432,7 +431,6 @@ PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -443,7 +441,7 @@ PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -509,24 +507,24 @@ PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 374, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 373, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -575,7 +573,6 @@ PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(text, text_param); } else { @@ -590,7 +587,6 @@ PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { @@ -606,7 +602,6 @@ PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { @@ -622,7 +617,6 @@ PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(separator, separator_param); } else { @@ -632,24 +626,24 @@ PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 422, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 422, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 423, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 424, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 424, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -661,7 +655,7 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 425, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } diff --git a/ext/phalcon/translate/adapter.zep.c b/ext/phalcon/translate/adapter.zep.c index e9b995e8ca4..900e1772bcc 100644 --- a/ext/phalcon/translate/adapter.zep.c +++ b/ext/phalcon/translate/adapter.zep.c @@ -51,7 +51,6 @@ PHP_METHOD(Phalcon_Translate_Adapter, __construct) { options = options_param; - ZEPHIR_OBS_VAR(interpolator); if (!(zephir_array_isset_string_fetch(&interpolator, options, SS("interpolator"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(interpolator); @@ -100,7 +99,6 @@ PHP_METHOD(Phalcon_Translate_Adapter, t) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -138,7 +136,6 @@ PHP_METHOD(Phalcon_Translate_Adapter, _) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -191,7 +188,6 @@ PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -243,7 +239,6 @@ PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -276,7 +271,6 @@ PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { 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)) { zephir_get_strval(translation, translation_param); } else { diff --git a/ext/phalcon/translate/adapter/csv.zep.c b/ext/phalcon/translate/adapter/csv.zep.c index 415074fdf61..ebc0d4a00fd 100644 --- a/ext/phalcon/translate/adapter/csv.zep.c +++ b/ext/phalcon/translate/adapter/csv.zep.c @@ -59,8 +59,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { options = options_param; - - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 426, 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", 43); @@ -73,7 +72,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 427, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -103,7 +102,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -117,7 +116,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 428, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -162,7 +161,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -200,7 +198,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { 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)) { zephir_get_strval(index, index_param); } else { diff --git a/ext/phalcon/translate/adapter/gettext.zep.c b/ext/phalcon/translate/adapter/gettext.zep.c index 149576046be..cf4b9e58b33 100644 --- a/ext/phalcon/translate/adapter/gettext.zep.c +++ b/ext/phalcon/translate/adapter/gettext.zep.c @@ -75,8 +75,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { options = options_param; - - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -105,7 +104,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -117,22 +115,22 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 420, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 429, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 430, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -157,7 +155,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -197,7 +194,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid1, msgid1_param); } else { @@ -208,7 +204,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid2, msgid2_param); } else { @@ -216,10 +211,9 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZVAL_EMPTY_STRING(msgid2); } if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - count = Z_LVAL_P(count_param); if (!placeholders) { placeholders = ZEPHIR_GLOBAL(global_null); @@ -232,7 +226,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -242,15 +235,15 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { } - if (!(domain && Z_STRLEN_P(domain))) { + if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 431, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 432, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -281,7 +274,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -290,7 +282,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, domain); zephir_check_call_status(); RETURN_MM(); @@ -310,7 +302,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, _0); zephir_check_call_status(); RETURN_MM(); @@ -331,7 +323,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -381,14 +372,14 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -427,7 +418,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { 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)) { zephir_get_strval(locale, locale_param); } else { @@ -437,7 +427,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -450,12 +440,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 435, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 415, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -496,7 +486,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, prepareOptions) { options = options_param; - if (!(zephir_array_isset_string(options, SS("locale")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter \"locale\" is required", "phalcon/translate/adapter/gettext.zep", 231); return; diff --git a/ext/phalcon/translate/adapter/nativearray.zep.c b/ext/phalcon/translate/adapter/nativearray.zep.c index 54e771dd4c1..83c9ce58bf2 100644 --- a/ext/phalcon/translate/adapter/nativearray.zep.c +++ b/ext/phalcon/translate/adapter/nativearray.zep.c @@ -54,8 +54,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { options = options_param; - - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -87,7 +86,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -125,7 +123,6 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { 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)) { zephir_get_strval(index, index_param); } else { diff --git a/ext/phalcon/translate/interpolator/associativearray.zep.c b/ext/phalcon/translate/interpolator/associativearray.zep.c index bf1c739ed94..bc45d13a984 100644 --- a/ext/phalcon/translate/interpolator/associativearray.zep.c +++ b/ext/phalcon/translate/interpolator/associativearray.zep.c @@ -48,7 +48,6 @@ PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceholders) 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)) { zephir_get_strval(translation, translation_param); } else { diff --git a/ext/phalcon/translate/interpolator/indexedarray.zep.c b/ext/phalcon/translate/interpolator/indexedarray.zep.c index c4f50fe41aa..34c3c9af018 100644 --- a/ext/phalcon/translate/interpolator/indexedarray.zep.c +++ b/ext/phalcon/translate/interpolator/indexedarray.zep.c @@ -45,7 +45,6 @@ PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholders) { 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)) { zephir_get_strval(translation, translation_param); } else { @@ -62,9 +61,9 @@ PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholders) { _0 = (zephir_fast_count_int(placeholders TSRMLS_CC)) ? 1 : 0; } if (_0) { - Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, placeholders, translation); - Z_UNSET_ISREF_P(placeholders); + ZEPHIR_MAKE_REF(placeholders); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, placeholders, translation); + ZEPHIR_UNREF(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "sprintf", 0); diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index 2c1a2c3d074..e28e8b1cd18 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -77,8 +77,8 @@ PHP_METHOD(Phalcon_Validation, __construct) { zephir_fetch_params(1, 0, 1, &validators_param); if (!validators_param) { - ZEPHIR_INIT_VAR(validators); - array_init(validators); + ZEPHIR_INIT_VAR(validators); + array_init(validators); } else { zephir_get_arrval(validators, validators_param); } @@ -253,7 +253,6 @@ PHP_METHOD(Phalcon_Validation, rules) { 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)) { zephir_get_strval(field, field_param); } else { @@ -263,7 +262,6 @@ PHP_METHOD(Phalcon_Validation, rules) { validators = validators_param; - zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 175); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS @@ -429,7 +427,6 @@ PHP_METHOD(Phalcon_Validation, getDefaultMessage) { 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)) { zephir_get_strval(type, type_param); } else { @@ -471,7 +468,6 @@ PHP_METHOD(Phalcon_Validation, setLabels) { labels = labels_param; - zephir_update_property_this(this_ptr, SL("_labels"), labels TSRMLS_CC); } @@ -494,7 +490,6 @@ PHP_METHOD(Phalcon_Validation, getLabel) { 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)) { zephir_get_strval(field, field_param); } else { @@ -595,7 +590,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CONCAT_SV(_0, "get", field); ZEPHIR_CPY_WRT(method, _0); if ((zephir_method_exists(entity, method TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); zephir_check_call_status(); } else { if ((zephir_method_exists_ex(entity, SS("readattribute") TSRMLS_CC) == SUCCESS)) { diff --git a/ext/phalcon/validation/message.zep.c b/ext/phalcon/validation/message.zep.c index 49032533a89..1410e8eec2e 100644 --- a/ext/phalcon/validation/message.zep.c +++ b/ext/phalcon/validation/message.zep.c @@ -59,7 +59,6 @@ PHP_METHOD(Phalcon_Validation_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -110,7 +109,6 @@ PHP_METHOD(Phalcon_Validation_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -149,7 +147,6 @@ PHP_METHOD(Phalcon_Validation_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -188,7 +185,6 @@ PHP_METHOD(Phalcon_Validation_Message, setField) { 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)) { zephir_get_strval(field, field_param); } else { @@ -269,12 +265,11 @@ PHP_METHOD(Phalcon_Validation_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_validation_message_ce); 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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 436, _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 a302c5708a5..962539ae9c5 100644 --- a/ext/phalcon/validation/message/group.zep.c +++ b/ext/phalcon/validation/message/group.zep.c @@ -84,10 +84,9 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } - index = Z_LVAL_P(index_param); @@ -118,10 +117,9 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { zephir_fetch_params(1, 2, 0, &index_param, &message); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - index = Z_LVAL_P(index_param); @@ -286,7 +284,6 @@ PHP_METHOD(Phalcon_Validation_Message_Group, filter) { 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)) { zephir_get_strval(fieldName, fieldName_param); } else { diff --git a/ext/phalcon/validation/validator.zep.c b/ext/phalcon/validation/validator.zep.c index f292a9bba68..9943e2b67fe 100644 --- a/ext/phalcon/validation/validator.zep.c +++ b/ext/phalcon/validation/validator.zep.c @@ -82,7 +82,6 @@ PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -111,7 +110,6 @@ PHP_METHOD(Phalcon_Validation_Validator, hasOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -141,7 +139,6 @@ PHP_METHOD(Phalcon_Validation_Validator, getOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -179,7 +176,6 @@ PHP_METHOD(Phalcon_Validation_Validator, setOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { diff --git a/ext/phalcon/validation/validator/alnum.zep.c b/ext/phalcon/validation/validator/alnum.zep.c index b98ff9f2a7a..9037560d168 100644 --- a/ext/phalcon/validation/validator/alnum.zep.c +++ b/ext/phalcon/validation/validator/alnum.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -81,7 +80,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 437, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +113,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/alpha.zep.c b/ext/phalcon/validation/validator/alpha.zep.c index 6b961f8cc0f..a975169e52e 100644 --- a/ext/phalcon/validation/validator/alpha.zep.c +++ b/ext/phalcon/validation/validator/alpha.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -81,7 +80,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +113,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/between.zep.c b/ext/phalcon/validation/validator/between.zep.c index 90a878b2813..5cef416368d 100644 --- a/ext/phalcon/validation/validator/between.zep.c +++ b/ext/phalcon/validation/validator/between.zep.c @@ -61,7 +61,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -131,7 +130,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/confirmation.zep.c b/ext/phalcon/validation/validator/confirmation.zep.c index f3cf5b4da8d..f27c408be2a 100644 --- a/ext/phalcon/validation/validator/confirmation.zep.c +++ b/ext/phalcon/validation/validator/confirmation.zep.c @@ -59,7 +59,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -77,7 +76,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 439, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -120,7 +119,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -162,12 +161,12 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } diff --git a/ext/phalcon/validation/validator/creditcard.zep.c b/ext/phalcon/validation/validator/creditcard.zep.c index 088a8c5bb7b..dd16237a61c 100644 --- a/ext/phalcon/validation/validator/creditcard.zep.c +++ b/ext/phalcon/validation/validator/creditcard.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -69,7 +68,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, 441, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -102,7 +101,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138,7 +137,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 441, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -158,7 +157,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 442, _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/digit.zep.c b/ext/phalcon/validation/validator/digit.zep.c index c410feef700..71ef080445b 100644 --- a/ext/phalcon/validation/validator/digit.zep.c +++ b/ext/phalcon/validation/validator/digit.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -81,7 +80,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 443, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -114,7 +113,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/email.zep.c b/ext/phalcon/validation/validator/email.zep.c index a577f7fd586..effdbd3c0df 100644 --- a/ext/phalcon/validation/validator/email.zep.c +++ b/ext/phalcon/validation/validator/email.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -83,7 +82,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -116,7 +115,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/exclusionin.zep.c b/ext/phalcon/validation/validator/exclusionin.zep.c index ce375d01d42..02df66f062a 100644 --- a/ext/phalcon/validation/validator/exclusionin.zep.c +++ b/ext/phalcon/validation/validator/exclusionin.zep.c @@ -60,7 +60,6 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -126,7 +125,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/file.zep.c b/ext/phalcon/validation/validator/file.zep.c index 340682df313..53a77ad17a4 100644 --- a/ext/phalcon/validation/validator/file.zep.c +++ b/ext/phalcon/validation/validator/file.zep.c @@ -18,7 +18,6 @@ #include "kernel/array.h" #include "kernel/string.h" #include "kernel/concat.h" -#include "kernel/math.h" #include "kernel/exception.h" #include "kernel/object.h" #include "ext/spl/spl_exceptions.h" @@ -71,7 +70,6 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136,7 +134,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 436, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -176,7 +174,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -202,7 +200,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -239,7 +237,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -285,7 +283,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -295,9 +293,9 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -322,7 +320,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 436, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -348,12 +346,12 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -384,7 +382,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -408,7 +406,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -469,7 +467,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -525,7 +523,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 436, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); diff --git a/ext/phalcon/validation/validator/identical.zep.c b/ext/phalcon/validation/validator/identical.zep.c index 6d032c04220..0ba7c32086f 100644 --- a/ext/phalcon/validation/validator/identical.zep.c +++ b/ext/phalcon/validation/validator/identical.zep.c @@ -60,7 +60,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -129,7 +128,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/inclusionin.zep.c b/ext/phalcon/validation/validator/inclusionin.zep.c index 5ab4b7e0022..041f5523f6b 100644 --- a/ext/phalcon/validation/validator/inclusionin.zep.c +++ b/ext/phalcon/validation/validator/inclusionin.zep.c @@ -60,7 +60,6 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -110,7 +109,7 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 360, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 359, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -146,7 +145,7 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/numericality.zep.c b/ext/phalcon/validation/validator/numericality.zep.c index 1b93abd93e3..dd998b0d375 100644 --- a/ext/phalcon/validation/validator/numericality.zep.c +++ b/ext/phalcon/validation/validator/numericality.zep.c @@ -59,7 +59,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -118,7 +117,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); diff --git a/ext/phalcon/validation/validator/presenceof.zep.c b/ext/phalcon/validation/validator/presenceof.zep.c index 61946931bb0..c304b68a05d 100644 --- a/ext/phalcon/validation/validator/presenceof.zep.c +++ b/ext/phalcon/validation/validator/presenceof.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -104,7 +103,7 @@ PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/validation/validator/regex.zep.c b/ext/phalcon/validation/validator/regex.zep.c index a4f5eeb9ce7..60cec9ff3fb 100644 --- a/ext/phalcon/validation/validator/regex.zep.c +++ b/ext/phalcon/validation/validator/regex.zep.c @@ -60,7 +60,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -129,7 +128,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); diff --git a/ext/phalcon/validation/validator/stringlength.zep.c b/ext/phalcon/validation/validator/stringlength.zep.c index d9d9e8171fe..fb1960dee7b 100644 --- a/ext/phalcon/validation/validator/stringlength.zep.c +++ b/ext/phalcon/validation/validator/stringlength.zep.c @@ -66,7 +66,6 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -117,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -152,7 +151,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 436, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -189,7 +188,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 436, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index e7cae8aed92..3d388647e69 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -70,7 +70,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -162,7 +161,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); diff --git a/ext/phalcon/validation/validator/url.zep.c b/ext/phalcon/validation/validator/url.zep.c index 34f3c2d1498..1b51bb8538d 100644 --- a/ext/phalcon/validation/validator/url.zep.c +++ b/ext/phalcon/validation/validator/url.zep.c @@ -58,7 +58,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -83,7 +82,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -116,7 +115,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/ext/phalcon/version.zep.c b/ext/phalcon/version.zep.c index d56143f815b..220f54ab4c5 100644 --- a/ext/phalcon/version.zep.c +++ b/ext/phalcon/version.zep.c @@ -178,7 +178,7 @@ PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 444, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -219,11 +219,11 @@ PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 444, _1); zephir_check_call_status(); break; } diff --git a/ext/php_phalcon.h b/ext/php_phalcon.h index 71240e5a589..43bb13d7e64 100644 --- a/ext/php_phalcon.h +++ b/ext/php_phalcon.h @@ -14,7 +14,7 @@ #define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.7.1b" +#define PHP_PHALCON_ZEPVERSION "0.8.0a" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { From 58cb694bb77164ac4366d430b65c39ca5753470d Mon Sep 17 00:00:00 2001 From: Andres Gutierrez Date: Fri, 25 Sep 2015 11:49:19 -0500 Subject: [PATCH 60/60] Regenerating build [ci skip] --- build/32bits/phalcon.zep.c | 5600 ++++++++++++++++++------------------ build/32bits/php_phalcon.h | 2 +- build/64bits/phalcon.zep.c | 5600 ++++++++++++++++++------------------ build/64bits/php_phalcon.h | 2 +- build/safe/phalcon.zep.c | 5600 ++++++++++++++++++------------------ build/safe/php_phalcon.h | 2 +- 6 files changed, 8433 insertions(+), 8373 deletions(-) diff --git a/build/32bits/phalcon.zep.c b/build/32bits/phalcon.zep.c index b651cd1557c..148cef29977 100644 --- a/build/32bits/phalcon.zep.c +++ b/build/32bits/phalcon.zep.c @@ -967,6 +967,7 @@ static int zephir_init_global(char *global, unsigned int global_length TSRMLS_DC static int zephir_get_global(zval **arr, const char *global, unsigned int global_length TSRMLS_DC); static int zephir_is_callable(zval *var TSRMLS_DC); +static int zephir_is_scalar(zval *var); static int zephir_function_exists(const zval *function_name TSRMLS_DC); static int zephir_function_exists_ex(const char *func_name, unsigned int func_len TSRMLS_DC); static int zephir_function_quick_exists_ex(const char *func_name, unsigned int func_len, unsigned long key TSRMLS_DC); @@ -1366,6 +1367,9 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { object_properties_init(object, class_type); \ } +#define ZEPHIR_MAKE_REF(obj) Z_SET_ISREF_P(obj); +#define ZEPHIR_UNREF(obj) Z_UNSET_ISREF_P(obj); + #define ZEPHIR_REGISTER_INTERFACE(ns, classname, lower_ns, name, methods) \ { \ zend_class_entry ce; \ @@ -1449,7 +1453,7 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define ZEPHIR_CHECK_POINTER(v) if (!v) fprintf(stderr, "%s:%d\n", __PRETTY_FUNCTION__, __LINE__); -#define zephir_is_php_version(id) ((PHP_VERSION_ID >= id && PHP_VERSION_ID <= (id + 10000)) ? 1 : 0) +#define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -1775,11 +1779,7 @@ static void zephir_throw_exception_format(zend_class_entry *ce TSRMLS_DC, const #include #include -#if PHP_VERSION_ID < 70000 static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); -#else -static void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent); -#endif 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); @@ -2435,185 +2435,27 @@ typedef enum _zephir_call_type { } while (0) -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - method(0, return_value, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* Saves the if pointer, and called/calling scope */ +#define ZEPHIR_BACKUP_THIS_PTR() \ + zval *old_this_ptr = this_ptr; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, return_value, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_THIS_PTR() ZEPHIR_SET_THIS(old_this_ptr) +#define ZEPHIR_SET_THIS(pzv) EG(This) = pzv; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_BACKUP_SCOPE() \ + zend_class_entry *old_scope = EG(scope); \ + zend_class_entry *old_called_scope = EG(called_scope); -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_SCOPE() \ + EG(called_scope) = old_called_scope; \ + EG(scope) = old_scope; \ -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P4(object, method, p1, p2, p3, p4) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - Z_ADDREF_P(p4); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - Z_DELREF_P(p4); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_SET_SCOPE(_scope, _scope_called) \ + EG(scope) = _scope; \ + EG(called_scope) = _scope_called; \ -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - method(0, rv, rvp, object, 0 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, rv, rvp, object, 0, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, rv, rvp, object, 0, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, rv, rvp, object, 0, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P0(return_value_ptr, object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - method(0, *return_value_ptr, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P1(return_value_ptr, object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P2(return_value_ptr, object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P3(return_value_ptr, object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* End internal calls */ #define ZEPHIR_CALL_METHODW(return_value_ptr, object, method, cache, cache_slot, ...) \ do { \ @@ -3322,12 +3164,12 @@ static int zephir_fclose(zval *stream_zval TSRMLS_DC); static void zephir_make_printable_zval(zval *expr, zval *expr_copy, int *use_copy); +#define zephir_add_function(result, left, right) zephir_add_function_ex(result, left, right TSRMLS_CC) + #if PHP_VERSION_ID < 50400 -#define zephir_sub_function(result, left, right, t) sub_function(result, left, right TSRMLS_CC) -#define zephir_add_function(result, left, right, t) zephir_add_function_ex(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) sub_function(result, left, right TSRMLS_CC) #else -#define zephir_add_function(result, left, right, t) fast_add_function(result, left, right TSRMLS_CC) -#define zephir_sub_function(result, left, right, t) fast_sub_function(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) fast_sub_function(result, left, right TSRMLS_CC) #endif #if PHP_VERSION_ID < 50600 @@ -4098,6 +3940,20 @@ static int zephir_is_callable(zval *var TSRMLS_DC) { return (int) retval; } +static int zephir_is_scalar(zval *var) { + + switch (Z_TYPE_P(var)) { + case IS_BOOL: + case IS_DOUBLE: + case IS_LONG: + case IS_STRING: + return 1; + break; + } + + return 0; +} + 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)) { @@ -5104,8 +4960,6 @@ static void zephir_throw_exception_zval(zend_class_entry *ce, zval *message TSRM #include -#if PHP_VERSION_ID < 70000 - static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) { #if PHP_VERSION_ID < 50400 @@ -5161,42 +5015,6 @@ static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction return SUCCESS; } -#else - -static void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent) -{ - #if ZEND_DEBUG - ht->inconsistent = 0; - #endif - - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->nNumUsed = 0; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->arData = NULL; - ht->arHash = (zend_uint*)&uninitialized_bucket; - ht->pDestructor = pDestructor; - ht->nInternalPointer = INVALID_IDX; - if (persistent) { - ht->u.flags = HASH_FLAG_PERSISTENT | HASH_FLAG_APPLY_PROTECTION; - } else { - ht->u.flags = HASH_FLAG_APPLY_PROTECTION; - } -} - -#endif - - static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) { ulong h; @@ -6571,7 +6389,7 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ 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 (likely(zephir_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 */ @@ -6608,6 +6426,9 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ } } + } else { + EG(scope) = old_scope; + return zephir_update_property_zval(object, property_name, property_length, value TSRMLS_CC); } } @@ -8570,7 +8391,7 @@ static int zephir_call_func_aparams_fast(zval **return_value_ptr, zephir_fcall_c zend_class_entry *calling_scope = NULL; zend_class_entry *called_scope = NULL; zend_execute_data execute_data; - zval ***params, ***params_ptr, ***params_array = NULL; + zval ***params, ***params_array = NULL; zval **static_params_array[10]; zend_class_entry *old_scope = EG(scope); zend_function_state *function_state = &EX(function_state); @@ -10289,7 +10110,7 @@ static void zephir_fast_str_replace(zval **return_value_ptr, zval *search, zval do { zval *params[] = { search, replace, subject }; zval_ptr_dtor(return_value_ptr); - return_value_ptr = NULL; + *return_value_ptr = NULL; zephir_call_func_aparams(return_value_ptr, "str_replace", sizeof("str_replace")-1, NULL, 0, 3, params TSRMLS_CC); return; } while(0); @@ -12600,7 +12421,56 @@ static int zephir_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci static void zephir_eval_php(zval *str, zval *retval_ptr, char *context TSRMLS_DC) { - zend_eval_string_ex(Z_STRVAL_P(str), retval_ptr, context, 1 TSRMLS_CC); + zend_op_array *new_op_array = NULL; + zend_uint original_compiler_options; + zend_op_array *original_active_op_array = EG(active_op_array); + + original_compiler_options = CG(compiler_options); + CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; + new_op_array = zend_compile_string(str, context TSRMLS_CC); + CG(compiler_options) = original_compiler_options; + + if (new_op_array) + { + zval *local_retval_ptr = NULL; + zval **original_return_value_ptr_ptr = EG(return_value_ptr_ptr); + zend_op **original_opline_ptr = EG(opline_ptr); + int orig_interactive = CG(interactive); + + EG(return_value_ptr_ptr) = &local_retval_ptr; + EG(active_op_array) = new_op_array; + EG(no_extensions) = 1; + if (!EG(active_symbol_table)) { + zend_rebuild_symbol_table(TSRMLS_C); + } + CG(interactive) = 0; + + zend_try { + zend_execute(new_op_array TSRMLS_CC); + } zend_catch { + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + zend_bailout(); + } zend_end_try(); + + CG(interactive) = orig_interactive; + if (local_retval_ptr) { + if (retval_ptr) { + COPY_PZVAL_TO_ZVAL(*retval_ptr, local_retval_ptr); + } else { + zval_ptr_dtor(&local_retval_ptr); + } + } else if (retval_ptr) { + INIT_ZVAL(*retval_ptr); + } + + EG(no_extensions) = 0; + EG(opline_ptr) = original_opline_ptr; + EG(active_op_array) = original_active_op_array; + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + EG(return_value_ptr_ptr) = original_return_value_ptr_ptr; + } } @@ -12620,7 +12490,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, mode; + int ret, use_ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -12634,7 +12504,7 @@ static int zephir_require_ret(zval **return_value_ptr, const char *require_path if (!require_path) { /* @TODO, throw an exception here */ return FAILURE; - } + } use_ret = !!return_value_ptr; @@ -13495,7 +13365,11 @@ static int zephir_add_function_ex(zval *result, zval *op1, zval *op2 TSRMLS_DC) int status; int ref_count = Z_REFCOUNT_P(result); int is_ref = Z_ISREF_P(result); +#if PHP_VERSION_ID < 50400 status = add_function(result, op1, op2 TSRMLS_CC); +#else + status = fast_add_function(result, op1, op2 TSRMLS_CC); +#endif Z_SET_REFCOUNT_P(result, ref_count); Z_SET_ISREF_TO_P(result, is_ref); return status; @@ -17727,7 +17601,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 445, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -17797,11 +17671,10 @@ static PHP_METHOD(Phalcon_Config, __construct) { zephir_fetch_params(1, 0, 1, &arrayConfig_param); if (!arrayConfig_param) { - ZEPHIR_INIT_VAR(arrayConfig); - array_init(arrayConfig); + ZEPHIR_INIT_VAR(arrayConfig); + array_init(arrayConfig); } else { arrayConfig = arrayConfig_param; - } @@ -18007,7 +17880,6 @@ static PHP_METHOD(Phalcon_Config, __set_state) { data = data_param; - object_init_ex(return_value, phalcon_config_ce); ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 22, data); zephir_check_call_status(); @@ -18132,10 +18004,9 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } - scheme = Z_LVAL_P(scheme_param); @@ -18158,7 +18029,6 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { 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)) { zephir_get_strval(cipher, cipher_param); } else { @@ -18191,7 +18061,6 @@ static PHP_METHOD(Phalcon_Crypt, setMode) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18224,7 +18093,6 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -18261,7 +18129,6 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18269,16 +18136,14 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZVAL_EMPTY_STRING(mode); } if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a long/integer") TSRMLS_CC); + 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - paddingType = Z_LVAL_P(paddingType_param); ZEPHIR_INIT_VAR(padding); ZVAL_NULL(padding); @@ -18432,7 +18297,6 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18440,16 +18304,14 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_EMPTY_STRING(mode); } if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a long/integer") TSRMLS_CC); + 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - paddingType = Z_LVAL_P(paddingType_param); @@ -18650,7 +18512,6 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18665,7 +18526,6 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -18752,7 +18612,6 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18836,7 +18695,6 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18853,7 +18711,6 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - safe = Z_BVAL_P(safe_param); } @@ -18894,7 +18751,6 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18911,7 +18767,6 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - safe = Z_BVAL_P(safe_param); } @@ -19072,7 +18927,6 @@ static PHP_METHOD(Phalcon_Db, setup) { options = options_param; - ZEPHIR_OBS_VAR(escapeIdentifiers); if (zephir_array_isset_string_fetch(&escapeIdentifiers, options, SS("escapeSqlIdentifiers"), 0 TSRMLS_CC)) { ZEPHIR_GLOBAL(db).escape_identifiers = zend_is_true(escapeIdentifiers); @@ -19135,7 +18989,6 @@ static PHP_METHOD(Phalcon_Debug, setUri) { 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)) { zephir_get_strval(uri, uri_param); } else { @@ -19159,7 +19012,11 @@ static PHP_METHOD(Phalcon_Debug, setShowBackTrace) { showBackTrace = zephir_get_boolval(showBackTrace_param); - zephir_update_property_this(this_ptr, SL("_showBackTrace"), showBackTrace ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showBackTrace) { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19174,7 +19031,11 @@ static PHP_METHOD(Phalcon_Debug, setShowFiles) { showFiles = zephir_get_boolval(showFiles_param); - zephir_update_property_this(this_ptr, SL("_showFiles"), showFiles ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFiles) { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19189,7 +19050,11 @@ static PHP_METHOD(Phalcon_Debug, setShowFileFragment) { showFileFragment = zephir_get_boolval(showFileFragment_param); - zephir_update_property_this(this_ptr, SL("_showFileFragment"), showFileFragment ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFileFragment) { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19355,19 +19220,18 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { static PHP_METHOD(Phalcon_Debug, _getArrayDump) { + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_9 = NULL; HashTable *_2; HashPosition _1; zend_bool _0; - zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL; + zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL; zval *argument = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &argument_param, &n); argument = argument_param; - if (!n) { ZEPHIR_INIT_VAR(n); ZVAL_LONG(n, 0); @@ -19395,47 +19259,45 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); - zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_scalar(v)) { ZEPHIR_INIT_NVAR(varDump); if (ZEPHIR_IS_STRING(v, "")) { ZEPHIR_CONCAT_SVS(varDump, "[", k, "] => (empty string)"); } else { - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_escapestring", &_7, 0, v); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_escapestring", &_5, 0, v); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _6); + ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _4); } zephir_array_append(&dump, varDump, PH_SEPARATE, "phalcon/debug.zep", 178); continue; } if (Z_TYPE_P(v) == IS_ARRAY) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, (zephir_get_numberval(n) + 1)); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_getarraydump", &_7, 154, v, _6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 183); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Array(", _4, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 183); continue; } if (Z_TYPE_P(v) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - zephir_get_class(_8, v, 0 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Object(", _8, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 188); + ZEPHIR_INIT_NVAR(_6); + zephir_get_class(_6, v, 0 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Object(", _6, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 188); continue; } if (Z_TYPE_P(v) == IS_NULL) { - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "[", k, "] => null"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 193); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "[", k, "] => null"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 193); continue; } - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSV(_10, "[", k, "] => ", v); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 197); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "[", k, "] => ", v); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 197); } zephir_fast_join_str(return_value, SL(", "), dump TSRMLS_CC); RETURN_MM(); @@ -19444,18 +19306,16 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { static PHP_METHOD(Phalcon_Debug, _getVarDump) { - zephir_fcall_cache_entry *_2 = NULL; + zephir_fcall_cache_entry *_1 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *variable, *className, *dumpedObject = NULL, *_0 = NULL, *_1 = NULL; + zval *variable, *className, *dumpedObject = NULL, *_0 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &variable); - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); - zephir_check_call_status(); - if (zephir_is_true(_0)) { + if (zephir_is_scalar(variable)) { if (Z_TYPE_P(variable) == IS_BOOL) { if (zephir_is_true(variable)) { RETURN_MM_STRING("true", 1); @@ -19477,9 +19337,9 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { if ((zephir_method_exists_ex(variable, SS("dump") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&dumpedObject, variable, "dump", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 0, dumpedObject); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 0, dumpedObject); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _1, ")"); + ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _0, ")"); RETURN_MM(); } else { ZEPHIR_CONCAT_SVS(return_value, "Object(", className, ")"); @@ -19487,9 +19347,9 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 154, variable); zephir_check_call_status(); - ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); + ZEPHIR_CONCAT_SVS(return_value, "Array(", _0, ")"); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_NULL) { @@ -19508,7 +19368,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -19527,7 +19387,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -19593,7 +19453,6 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { trace = trace_param; - ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, n); ZEPHIR_INIT_VAR(_1); @@ -19621,7 +19480,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -19654,9 +19513,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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -19717,7 +19576,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -19824,7 +19683,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -19833,7 +19692,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19858,7 +19717,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); @@ -19871,7 +19730,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zend_print_zval(_1, 0); RETURN_MM_NULL(); } - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); ZEPHIR_INIT_VAR(className); zephir_get_class(className, exception, 0 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_1, exception, "getmessage", NULL, 0); @@ -19925,7 +19784,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -19944,7 +19803,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, "
"); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, ""); @@ -19970,7 +19829,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", _13, "
", keyRequest, "", value, "
", keyRequest, "", _13, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 165); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -19985,7 +19844,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); @@ -20018,7 +19877,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_VS(_18, _1, ""); zephir_concat_self(&html, _18 TSRMLS_CC); zend_print_zval(html, 0); - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_false)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_false) TSRMLS_CC); RETURN_MM_BOOL(1); } @@ -20094,7 +19953,7 @@ static PHP_METHOD(Phalcon_Di, set) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20104,7 +19963,6 @@ static PHP_METHOD(Phalcon_Di, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20120,7 +19978,13 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20130,7 +19994,7 @@ static PHP_METHOD(Phalcon_Di, set) { static PHP_METHOD(Phalcon_Di, setShared) { int ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *definition, *service, _0; + zval *name_param = NULL, *definition, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20140,7 +20004,6 @@ static PHP_METHOD(Phalcon_Di, setShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20151,9 +20014,9 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_SINIT_VAR(_0); - ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_BOOL(_0, 1); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20172,7 +20035,6 @@ static PHP_METHOD(Phalcon_Di, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20193,7 +20055,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20203,7 +20065,6 @@ static PHP_METHOD(Phalcon_Di, attempt) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20221,7 +20082,13 @@ static PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (shared) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _1); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20242,7 +20109,6 @@ static PHP_METHOD(Phalcon_Di, setRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20270,7 +20136,6 @@ static PHP_METHOD(Phalcon_Di, getRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20311,7 +20176,6 @@ static PHP_METHOD(Phalcon_Di, getService) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20351,7 +20215,6 @@ static PHP_METHOD(Phalcon_Di, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20471,7 +20334,6 @@ static PHP_METHOD(Phalcon_Di, getShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20486,12 +20348,20 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_OBS_VAR(instance); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_sharedInstances"), PH_NOISY_CC); if (zephir_array_isset_fetch(&instance, _0, name, 0 TSRMLS_CC)) { - zephir_update_property_this(this_ptr, SL("_freshInstance"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { ZEPHIR_CALL_METHOD(&instance, this_ptr, "get", NULL, 0, name, parameters); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_sharedInstances"), name, instance TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_freshInstance"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_CCTOR(instance); @@ -20509,7 +20379,6 @@ static PHP_METHOD(Phalcon_Di, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20550,7 +20419,6 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20578,7 +20446,6 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20606,7 +20473,6 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20633,7 +20499,6 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20660,7 +20525,6 @@ static PHP_METHOD(Phalcon_Di, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -20743,7 +20607,7 @@ static PHP_METHOD(Phalcon_Di, getDefault) { static PHP_METHOD(Phalcon_Di, reset) { - zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &(ZEPHIR_GLOBAL(global_null)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &ZEPHIR_GLOBAL(global_null) TSRMLS_CC); } @@ -21218,7 +21082,11 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { numberDispatches = 0; ZEPHIR_OBS_VAR(actionSuffix); zephir_read_property_this(&actionSuffix, this_ptr, SL("_actionSuffix"), PH_NOISY_CC); - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } while (1) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); if (!(!(zephir_is_true(_0)))) { @@ -21235,7 +21103,11 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { zephir_check_call_status(); break; } - zephir_update_property_this(this_ptr, SL("_finished"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_CALL_METHOD(NULL, this_ptr, "_resolveemptyproperties", &_5, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(namespaceName); @@ -21514,8 +21386,16 @@ static PHP_METHOD(Phalcon_Dispatcher, forward) { if (zephir_array_isset_string_fetch(¶ms, forward, SS("params"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_params"), params TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_forwarded"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (1) { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -21748,13 +21628,13 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); zephir_check_call_status(); RETURN_MM(); @@ -21776,11 +21656,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21800,7 +21680,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -21821,7 +21701,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21839,7 +21719,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -21858,7 +21738,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -21877,7 +21757,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); zephir_check_call_status(); RETURN_MM(); @@ -22003,7 +21883,6 @@ static PHP_METHOD(Phalcon_Filter, add) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -22124,7 +22003,6 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { 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)) { zephir_get_strval(filter, filter_param); } else { @@ -22156,16 +22034,16 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22175,14 +22053,14 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22192,7 +22070,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -22215,13 +22093,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } @@ -22230,7 +22108,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } @@ -22352,7 +22230,11 @@ static PHP_METHOD(Phalcon_Flash, setImplicitFlush) { implicitFlush = zephir_get_boolval(implicitFlush_param); - zephir_update_property_this(this_ptr, SL("_implicitFlush"), implicitFlush ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitFlush) { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -22367,7 +22249,11 @@ static PHP_METHOD(Phalcon_Flash, setAutomaticHtml) { automaticHtml = zephir_get_boolval(automaticHtml_param); - zephir_update_property_this(this_ptr, SL("_automaticHtml"), automaticHtml ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (automaticHtml) { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -22382,7 +22268,6 @@ static PHP_METHOD(Phalcon_Flash, setCssClasses) { cssClasses = cssClasses_param; - zephir_update_property_this(this_ptr, SL("_cssClasses"), cssClasses TSRMLS_CC); RETURN_THISW(); @@ -22668,7 +22553,6 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -22814,7 +22698,6 @@ static PHP_METHOD(Phalcon_Loader, setExtensions) { extensions = extensions_param; - zephir_update_property_this(this_ptr, SL("_extensions"), extensions TSRMLS_CC); RETURN_THISW(); @@ -22837,7 +22720,6 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { zephir_fetch_params(1, 1, 1, &namespaces_param, &merge_param); namespaces = namespaces_param; - if (!merge_param) { merge = 0; } else { @@ -22879,7 +22761,6 @@ static PHP_METHOD(Phalcon_Loader, registerPrefixes) { zephir_fetch_params(1, 1, 1, &prefixes_param, &merge_param); prefixes = prefixes_param; - if (!merge_param) { merge = 0; } else { @@ -22921,7 +22802,6 @@ static PHP_METHOD(Phalcon_Loader, registerDirs) { zephir_fetch_params(1, 1, 1, &directories_param, &merge_param); directories = directories_param; - if (!merge_param) { merge = 0; } else { @@ -22963,7 +22843,6 @@ static PHP_METHOD(Phalcon_Loader, registerClasses) { zephir_fetch_params(1, 1, 1, &classes_param, &merge_param); classes = classes_param; - if (!merge_param) { merge = 0; } else { @@ -23011,9 +22890,13 @@ static PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -23035,9 +22918,13 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -23059,7 +22946,6 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { 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)) { zephir_get_strval(className, className_param); } else { @@ -23143,7 +23029,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23214,7 +23100,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23272,7 +23158,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23412,7 +23298,6 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23438,7 +23323,6 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23465,7 +23349,6 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23491,7 +23374,6 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23524,9 +23406,9 @@ static PHP_METHOD(Phalcon_Registry, next) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 393, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23540,9 +23422,9 @@ static PHP_METHOD(Phalcon_Registry, key) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 394, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM(); @@ -23556,9 +23438,9 @@ static PHP_METHOD(Phalcon_Registry, rewind) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 395, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23572,9 +23454,9 @@ static PHP_METHOD(Phalcon_Registry, valid) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 394, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23588,9 +23470,9 @@ static PHP_METHOD(Phalcon_Registry, current) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 396, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM(); @@ -23609,7 +23491,6 @@ static PHP_METHOD(Phalcon_Registry, __set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23618,7 +23499,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 397, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23637,7 +23518,6 @@ static PHP_METHOD(Phalcon_Registry, __get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23646,7 +23526,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 398, key); zephir_check_call_status(); RETURN_MM(); @@ -23665,7 +23545,6 @@ static PHP_METHOD(Phalcon_Registry, __isset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23674,7 +23553,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23693,7 +23572,6 @@ static PHP_METHOD(Phalcon_Registry, __unset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23702,7 +23580,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 400, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23809,10 +23687,9 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } - randomBytes = Z_LVAL_P(randomBytes_param); @@ -23858,7 +23735,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 401, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23827,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 402, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23973,11 +23850,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZVAL_STRING(&_5, "%02s", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, workFactor); - ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 189, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 188, &_5, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 402, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +23894,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 402, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +23958,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 401, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24000,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 401, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24284,7 +24161,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { int ZEPHIR_LAST_CALL_STATUS; zend_bool raw; - zval *data, *key, *algo, *raw_param = NULL, *hmac = NULL, *_0, *_1; + zval *data, *key, *algo, *raw_param = NULL, *hmac = NULL, _0, *_1, *_2; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &data, &key, &algo, &raw_param); @@ -24296,16 +24173,18 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (raw ? 1 : 0)); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 403, algo, data, key, &_0); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { - ZEPHIR_INIT_VAR(_0); - object_init_ex(_0, phalcon_security_exception_ce); ZEPHIR_INIT_VAR(_1); - ZEPHIR_CONCAT_SV(_1, "Unknown hashing algorithm: %s", algo); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); + object_init_ex(_1, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "Unknown hashing algorithm: %s", algo); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/security.zep", 441 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/security.zep", 441 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -24428,7 +24307,6 @@ static PHP_METHOD(Phalcon_Tag, getEscaper) { params = params_param; - ZEPHIR_OBS_VAR(autoescape); if (!(zephir_array_isset_string_fetch(&autoescape, params, SS("escape"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(autoescape); @@ -24463,7 +24341,6 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { 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)) { zephir_get_strval(code, code_param); } else { @@ -24473,7 +24350,6 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { attributes = attributes_param; - ZEPHIR_INIT_VAR(order); zephir_create_array(order, 10, 0 TSRMLS_CC); zephir_array_update_string(&order, SL("rel"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -24685,7 +24561,6 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { 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)) { zephir_get_strval(id, id_param); } else { @@ -24719,7 +24594,6 @@ static PHP_METHOD(Phalcon_Tag, setDefaults) { zephir_fetch_params(1, 1, 1, &values_param, &merge_param); values = values_param; - if (!merge_param) { merge = 0; } else { @@ -24943,7 +24817,7 @@ static PHP_METHOD(Phalcon_Tag, _inputField) { ZEPHIR_OBS_VAR(id); if (!(zephir_array_isset_long_fetch(&id, params, 0, 0 TSRMLS_CC))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 443 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 443); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(name); if (zephir_array_isset_string_fetch(&name, params, SS("name"), 0 TSRMLS_CC)) { @@ -25011,7 +24885,7 @@ static PHP_METHOD(Phalcon_Tag, _inputFieldChecked) { } if (!(zephir_array_isset_long(params, 0))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 509 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 509); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(id); zephir_array_fetch_long(&id, params, 0, PH_NOISY, "phalcon/tag.zep", 512 TSRMLS_CC); @@ -25087,7 +24961,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +24981,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25001,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25021,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25041,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25061,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25081,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25101,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25121,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25141,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25161,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25181,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25201,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25221,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25241,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25261,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25281,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25301,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25321,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25343,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25365,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25512,7 +25386,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25532,7 +25406,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25558,7 +25432,7 @@ static PHP_METHOD(Phalcon_Tag, textArea) { if (!(zephir_array_isset_long(params, 0))) { if (zephir_array_isset_string(params, SS("id"))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 933 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 933); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } ZEPHIR_OBS_VAR(id); @@ -26043,13 +25917,13 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 415, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "ASCII//TRANSLIT", 0); - ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 373, &_0, &_3, text); + ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 372, &_0, &_3, text); zephir_check_call_status(); zephir_get_strval(text, _5); } @@ -26112,7 +25986,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 415, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26375,7 +26249,6 @@ static PHP_METHOD(Phalcon_Text, camelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26402,7 +26275,6 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26480,13 +26352,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26369,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26386,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26395,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26403,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 419, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26569,7 +26441,7 @@ static PHP_METHOD(Phalcon_Text, random) { static PHP_METHOD(Phalcon_Text, startsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *start = NULL; ZEPHIR_MM_GROW(); @@ -26584,14 +26456,16 @@ static PHP_METHOD(Phalcon_Text, startsWith) { } - RETURN_MM_BOOL(zephir_start_with(str, start, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_start_with(str, start, &_0)); } static PHP_METHOD(Phalcon_Text, endsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *end = NULL; ZEPHIR_MM_GROW(); @@ -26606,7 +26480,9 @@ static PHP_METHOD(Phalcon_Text, endsWith) { } - RETURN_MM_BOOL(zephir_end_with(str, end, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_end_with(str, end, &_0)); } @@ -26623,7 +26499,6 @@ static PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26638,7 +26513,6 @@ static PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -26649,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26671,7 +26545,6 @@ static PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26686,7 +26559,6 @@ static PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -26697,7 +26569,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26742,24 +26614,24 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 374, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 373, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -26799,7 +26671,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(text, text_param); } else { @@ -26814,7 +26685,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { @@ -26830,7 +26700,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { @@ -26846,7 +26715,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(separator, separator_param); } else { @@ -26856,24 +26724,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 422, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 422, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 423, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 424, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 424, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26753,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 425, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -26975,8 +26843,8 @@ static PHP_METHOD(Phalcon_Validation, __construct) { zephir_fetch_params(1, 0, 1, &validators_param); if (!validators_param) { - ZEPHIR_INIT_VAR(validators); - array_init(validators); + ZEPHIR_INIT_VAR(validators); + array_init(validators); } else { zephir_get_arrval(validators, validators_param); } @@ -27135,7 +27003,6 @@ static PHP_METHOD(Phalcon_Validation, rules) { 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)) { zephir_get_strval(field, field_param); } else { @@ -27145,7 +27012,6 @@ static PHP_METHOD(Phalcon_Validation, rules) { validators = validators_param; - zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 175); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS @@ -27282,7 +27148,6 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { 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)) { zephir_get_strval(type, type_param); } else { @@ -27318,7 +27183,6 @@ static PHP_METHOD(Phalcon_Validation, setLabels) { labels = labels_param; - zephir_update_property_this(this_ptr, SL("_labels"), labels TSRMLS_CC); } @@ -27335,7 +27199,6 @@ static PHP_METHOD(Phalcon_Validation, getLabel) { 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)) { zephir_get_strval(field, field_param); } else { @@ -27419,7 +27282,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CONCAT_SV(_0, "get", field); ZEPHIR_CPY_WRT(method, _0); if ((zephir_method_exists(entity, method TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); zephir_check_call_status(); } else { if ((zephir_method_exists_ex(entity, SS("readattribute") TSRMLS_CC) == SUCCESS)) { @@ -27619,7 +27482,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 444, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27653,11 +27516,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -27686,7 +27549,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 444, _1); zephir_check_call_status(); break; } @@ -27933,7 +27796,6 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -27953,7 +27815,7 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); @@ -28048,7 +27910,6 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -28068,7 +27929,7 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); @@ -28266,7 +28127,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { if (!(zephir_array_isset(_3, roleName))) { zephir_update_property_array(this_ptr, SL("_roleInherits"), roleName, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } - zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 1, roleName); + zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 2, roleName); RETURN_MM_BOOL(1); } @@ -29101,7 +28962,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, __construct) { reflectionData = reflectionData_param; - zephir_array_fetch_string(&_0, reflectionData, SL("name"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 58 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_name"), _0 TSRMLS_CC); ZEPHIR_OBS_VAR(exprArguments); @@ -29152,7 +29012,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { expr = expr_param; - ZEPHIR_OBS_VAR(type); zephir_array_fetch_string(&type, expr, SL("type"), PH_NOISY, "phalcon/annotations/annotation.zep", 96 TSRMLS_CC); do { @@ -29283,7 +29142,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -29313,7 +29171,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -31312,7 +31169,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations) { zephir_update_property_this(this_ptr, SL("_classAnnotations"), collection TSRMLS_CC); RETURN_CCTOR(collection); } - zephir_update_property_this(this_ptr, SL("_classAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_classAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_classAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CTOR(annotations); @@ -31355,7 +31216,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { RETURN_CCTOR(collections); } } - zephir_update_property_this(this_ptr, SL("_methodAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_methodAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_methodAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CCTOR(annotations); @@ -31398,7 +31263,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { RETURN_CCTOR(collections); } } - zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CCTOR(annotations); @@ -32507,7 +32376,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32540,7 +32408,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32646,7 +32513,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32665,7 +32531,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, " 0, 1, 0) FROM `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_NAME`= '", tableName, "' AND `TABLE_SCHEMA` = '", schemaName, "'"); RETURN_MM(); } @@ -52226,7 +52106,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -52241,7 +52120,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT IF(COUNT(*) > 0, 1, 0) FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_NAME`= '", viewName, "' AND `TABLE_SCHEMA`='", schemaName, "'"); RETURN_MM(); } @@ -52263,7 +52142,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52301,7 +52179,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SHOW TABLES FROM `", schemaName, "`"); RETURN_MM(); } @@ -52325,7 +52203,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52335,7 +52212,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT `TABLE_NAME` AS view_name FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_SCHEMA` = '", schemaName, "' ORDER BY view_name"); RETURN_MM(); } @@ -52356,7 +52233,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52390,7 +52266,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52407,7 +52282,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { ZVAL_STRING(sql, "SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,REFERENCED_TABLE_SCHEMA,REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME IS NOT NULL AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "CONSTRAINT_SCHEMA = '", schema, "' AND TABLE_NAME = '", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -52432,7 +52307,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52449,7 +52323,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { ZVAL_STRING(sql, "SELECT TABLES.TABLE_TYPE AS table_type,TABLES.AUTO_INCREMENT AS auto_increment,TABLES.ENGINE AS engine,TABLES.TABLE_COLLATION AS table_collation FROM INFORMATION_SCHEMA.TABLES WHERE ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_VSVSVS(return_value, sql, "TABLES.TABLE_SCHEMA = '", schema, "' AND TABLES.TABLE_NAME = '", table, "'"); RETURN_MM(); } @@ -52469,7 +52343,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { definition = definition_param; - ZEPHIR_OBS_VAR(options); if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { ZEPHIR_INIT_VAR(tableOptions); @@ -52550,7 +52423,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { 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)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { @@ -52696,7 +52568,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52707,7 +52578,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52733,7 +52603,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52744,7 +52613,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52773,7 +52641,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52784,7 +52651,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52811,7 +52677,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52822,7 +52687,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52848,7 +52712,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52859,7 +52722,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52870,7 +52732,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -52913,7 +52774,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52924,7 +52784,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52950,7 +52809,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52961,7 +52819,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52987,7 +52844,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52998,7 +52854,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53009,7 +52864,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -53036,7 +52890,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53047,7 +52900,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53057,7 +52909,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { definition = definition_param; - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; @@ -53077,7 +52928,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53088,7 +52938,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53102,7 +52951,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -53132,7 +52980,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53140,7 +52987,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -53175,7 +53021,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53195,7 +53040,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -53225,7 +53069,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53297,7 +53140,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53341,7 +53183,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53413,7 +53254,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53457,7 +53297,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53505,7 +53344,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53552,7 +53390,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53810,7 +53647,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53821,7 +53657,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53897,7 +53732,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53908,7 +53742,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54052,7 +53885,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54063,7 +53895,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54074,7 +53905,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -54103,7 +53933,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54114,7 +53943,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54169,7 +53997,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54180,7 +54007,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54191,7 +54017,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -54218,7 +54043,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54229,7 +54053,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54262,7 +54085,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54273,7 +54095,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54302,7 +54123,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54313,7 +54133,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54369,7 +54188,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54380,7 +54198,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54391,7 +54208,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -54424,7 +54240,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54435,7 +54250,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54445,7 +54259,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { definition = definition_param; - ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); @@ -54667,7 +54480,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54687,7 +54499,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -54718,7 +54529,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54726,7 +54536,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -54761,7 +54570,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54781,7 +54589,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -54810,7 +54617,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54825,7 +54631,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM information_schema.tables WHERE table_schema = '", schemaName, "' AND table_name='", tableName, "'"); RETURN_MM(); } @@ -54846,7 +54652,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54861,7 +54666,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM pg_views WHERE viewname='", viewName, "' AND schemaname='", schemaName, "'"); RETURN_MM(); } @@ -54882,7 +54687,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -54897,7 +54701,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { } - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT DISTINCT c.column_name AS Field, c.data_type AS Type, c.character_maximum_length AS Size, c.numeric_precision AS NumericSize, c.numeric_scale AS NumericScale, c.is_nullable AS Null, CASE WHEN pkc.column_name NOTNULL THEN 'PRI' ELSE '' END AS Key, CASE WHEN c.data_type LIKE '%int%' AND c.column_default LIKE '%nextval%' THEN 'auto_increment' ELSE '' END AS Extra, c.ordinal_position AS Position, c.column_default FROM information_schema.columns c LEFT JOIN ( SELECT kcu.column_name, kcu.table_name, kcu.table_schema FROM information_schema.table_constraints tc INNER JOIN information_schema.key_column_usage kcu on (kcu.constraint_name = tc.constraint_name and kcu.table_name=tc.table_name and kcu.table_schema=tc.table_schema) WHERE tc.constraint_type='PRIMARY KEY') pkc ON (c.column_name=pkc.column_name AND c.table_schema = pkc.table_schema AND c.table_name=pkc.table_name) WHERE c.table_schema='", schema, "' AND c.table_name='", table, "' ORDER BY c.ordinal_position"); RETURN_MM(); } @@ -54922,7 +54726,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT table_name FROM information_schema.tables WHERE table_schema = '", schemaName, "' ORDER BY table_name"); RETURN_MM(); } @@ -54961,7 +54765,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -54993,7 +54796,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -55010,7 +54812,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZVAL_STRING(sql, "SELECT tc.table_name as TABLE_NAME, kcu.column_name as COLUMN_NAME, tc.constraint_name as CONSTRAINT_NAME, tc.table_catalog as REFERENCED_TABLE_SCHEMA, ccu.table_name AS REFERENCED_TABLE_NAME, ccu.column_name AS REFERENCED_COLUMN_NAME FROM information_schema.table_constraints AS tc JOIN information_schema.key_column_usage AS kcu ON tc.constraint_name = kcu.constraint_name JOIN information_schema.constraint_column_usage AS ccu ON ccu.constraint_name = tc.constraint_name WHERE constraint_type = 'FOREIGN KEY' AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "tc.table_schema = '", schema, "' AND tc.table_name='", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -55035,7 +54837,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -55064,7 +54865,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, _getTableOptions) { definition = definition_param; - RETURN_STRING("", 1); } @@ -55258,7 +55058,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55269,7 +55068,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55334,7 +55132,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55345,7 +55142,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55374,7 +55170,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55385,7 +55180,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55396,7 +55190,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -55423,7 +55216,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55434,7 +55226,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55451,7 +55242,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { } else { ZVAL_STRING(sql, "CREATE INDEX \"", 1); } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CALL_METHOD(&_0, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); @@ -55487,7 +55278,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55498,7 +55288,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55509,7 +55298,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -55518,7 +55306,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "DROP INDEX \"", schemaName, "\".\"", indexName, "\""); RETURN_MM(); } @@ -55539,7 +55327,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55550,7 +55337,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55576,7 +55362,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55587,7 +55372,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55613,7 +55397,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55624,7 +55407,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55650,7 +55432,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55661,7 +55442,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55672,7 +55452,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -55704,7 +55483,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55715,7 +55493,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55725,7 +55502,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { definition = definition_param; - ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(temporary); @@ -55909,7 +55685,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55929,7 +55704,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -55960,7 +55734,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -55968,7 +55741,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -56003,7 +55775,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -56023,7 +55794,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -56051,7 +55821,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -56083,7 +55852,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -56115,7 +55883,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56171,7 +55938,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -56197,7 +55963,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56229,7 +55994,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { 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)) { zephir_get_strval(index, index_param); } else { @@ -56255,7 +56019,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56287,7 +56050,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56340,13 +56102,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56359,13 +56125,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56378,13 +56148,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56397,13 +56171,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } @@ -56416,13 +56194,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } @@ -56440,7 +56222,7 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getTotalElapsedSeconds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finalTime"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_initialTime"), PH_NOISY_CC); - sub_function(return_value, _0, _1 TSRMLS_CC); + zephir_sub_function(return_value, _0, _1); return; } @@ -56877,8 +56659,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { zephir_fetch_params(1, 0, 2, &styles_param, &detailed_param); if (!styles_param) { - ZEPHIR_INIT_VAR(styles); - array_init(styles); + ZEPHIR_INIT_VAR(styles); + array_init(styles); } else { zephir_get_arrval(styles, styles_param); } @@ -56902,7 +56684,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { ZEPHIR_INIT_VAR(_1); array_init(_1); zephir_update_property_this(this_ptr, SL("_methods"), _1 TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_detailed"), detailed ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (detailed) { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -56921,7 +56707,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -56941,7 +56727,6 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { 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)) { zephir_get_strval(type, type_param); } else { @@ -57027,13 +56812,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, one) { static PHP_METHOD(Phalcon_Debug_Dump, output) { zend_bool _15, _16, _17; - HashTable *_8, *_24, *_35; - HashPosition _7, _23, _34; - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_19 = NULL, *_21 = NULL, *_28 = NULL, *_29 = NULL, *_30 = NULL, *_32 = NULL; + HashTable *_8, *_25, *_36; + HashPosition _7, _24, _35; + zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_20 = NULL, *_22 = NULL, *_29 = NULL, *_30 = NULL, *_31 = NULL, *_33 = NULL; zval *_1 = NULL, *_12 = NULL, *_38 = NULL; int tab, ZEPHIR_LAST_CALL_STATUS; zval *name = NULL, *_0; - zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_20 = NULL, *_22, **_25, *_26 = NULL, *_27 = NULL, *_31, *_33, **_36, *_37 = NULL, *_39 = NULL, _40; + zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_19 = NULL, *_21 = NULL, *_23, **_26, *_27 = NULL, *_28 = NULL, *_32, *_34, **_37, *_39 = NULL, _40; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &variable, &name_param, &tab_param); @@ -57055,7 +56840,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(space, " ", 1); ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - if (name && Z_STRLEN_P(name)) { + if (!(!name) && Z_STRLEN_P(name)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_VS(_0, name, " "); ZEPHIR_CPY_WRT(output, _0); @@ -57119,14 +56904,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_5); @@ -57153,7 +56938,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -57164,7 +56949,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -57174,17 +56959,17 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _18 TSRMLS_CC); } zephir_concat_self_str(&output, SL(" (\n") TSRMLS_CC); - _22 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); - if (!(zephir_is_true(_22))) { + _23 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); + if (!(zephir_is_true(_23))) { ZEPHIR_CALL_FUNCTION(&_10, "get_object_vars", NULL, 24, variable); zephir_check_call_status(); - zephir_is_iterable(_10, &_24, &_23, 0, 0, "phalcon/debug/dump.zep", 171); + zephir_is_iterable(_10, &_25, &_24, 0, 0, "phalcon/debug/dump.zep", 171); for ( - ; zephir_hash_get_current_data_ex(_24, (void**) &_25, &_23) == SUCCESS - ; zephir_hash_move_forward_ex(_24, &_23) + ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zephir_hash_move_forward_ex(_25, &_24) ) { - ZEPHIR_GET_HMKEY(key, _24, _23); - ZEPHIR_GET_HVALUE(value, _25); + ZEPHIR_GET_HMKEY(key, _25, _24); + ZEPHIR_GET_HVALUE(value, _26); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); @@ -57193,35 +56978,35 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":key"), &key, PH_COPY | PH_SEPARATE); add_assoc_stringl_ex(_12, SS(":type"), SL("public"), 1); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _13, _26); + ZEPHIR_CONCAT_VV(_14, _13, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } else { do { - Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); - Z_UNSET_ISREF_P(variable); + ZEPHIR_MAKE_REF(variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_29, 170, variable); + ZEPHIR_UNREF(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { continue; @@ -57236,9 +57021,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_30, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_31, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -57247,8 +57032,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_array_isset_long(key, 1)) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "private", 1); - zephir_array_fetch_long(&_31, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); - if (ZEPHIR_IS_STRING(_31, "*")) { + zephir_array_fetch_long(&_32, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); + if (ZEPHIR_IS_STRING(_32, "*")) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "protected", 1); } @@ -57261,36 +57046,36 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); - Z_UNSET_ISREF_P(key); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + ZEPHIR_MAKE_REF(key); + ZEPHIR_CALL_FUNCTION(&_27, "end", &_33, 171, key); + ZEPHIR_UNREF(key); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":key"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":type"), &type, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _18, _26); + ZEPHIR_CONCAT_VV(_14, _18, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); @@ -57317,25 +57102,25 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); zephir_get_class(_3, variable, 0 TSRMLS_CC); - _33 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); - if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { + _34 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); + if (zephir_fast_in_array(_3, _34 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "[already listed]\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } else { - zephir_is_iterable(attr, &_35, &_34, 0, 0, "phalcon/debug/dump.zep", 219); + zephir_is_iterable(attr, &_36, &_35, 0, 0, "phalcon/debug/dump.zep", 219); for ( - ; zephir_hash_get_current_data_ex(_35, (void**) &_36, &_34) == SUCCESS - ; zephir_hash_move_forward_ex(_35, &_34) + ; zephir_hash_get_current_data_ex(_36, (void**) &_37, &_35) == SUCCESS + ; zephir_hash_move_forward_ex(_36, &_35) ) { - ZEPHIR_GET_HVALUE(value, _36); - ZEPHIR_INIT_NVAR(_37); - zephir_get_class(_37, variable, 0 TSRMLS_CC); - zephir_update_property_array_append(this_ptr, SL("_methods"), _37 TSRMLS_CC); + ZEPHIR_GET_HVALUE(value, _37); + ZEPHIR_INIT_NVAR(_19); + zephir_get_class(_19, variable, 0 TSRMLS_CC); + zephir_update_property_array_append(this_ptr, SL("_methods"), _19 TSRMLS_CC); if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); @@ -57343,10 +57128,10 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_13, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":method"), &value, PH_COPY | PH_SEPARATE); @@ -57360,23 +57145,23 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); + ZEPHIR_CALL_FUNCTION(&_27, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); - zephir_array_update_string(&_38, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_38, SL(":style"), &_28, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_38, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:method();\n", 0); - ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _38); + ZEPHIR_CALL_FUNCTION(&_28, "strtr", &_6, 54, &_5, _38); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_39); - ZEPHIR_CONCAT_VV(_39, _26, _27); + ZEPHIR_CONCAT_VV(_39, _27, _28); zephir_concat_self(&output, _39 TSRMLS_CC); } } @@ -57384,9 +57169,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, ")\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, ")\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); @@ -57412,7 +57197,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -57465,14 +57250,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(&_40, "utf-8", 0); ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); + ZEPHIR_CALL_FUNCTION(&_27, "nl2br", NULL, 174, _2); zephir_check_call_status(); - zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_1, SL(":var"), &_27, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "String (:length) \":var\"", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _1); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); - ZEPHIR_CONCAT_VV(return_value, output, _26); + ZEPHIR_CONCAT_VV(return_value, output, _27); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_BOOL) { @@ -57583,7 +57368,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( @@ -57685,7 +57470,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault) { static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; @@ -57702,9 +57487,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57715,9 +57500,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57728,9 +57513,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57741,9 +57526,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57754,9 +57539,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57767,9 +57552,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57780,9 +57565,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57793,9 +57578,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57806,9 +57591,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57819,9 +57604,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57832,9 +57617,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57845,9 +57630,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57858,9 +57643,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57871,9 +57656,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flash", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57884,9 +57669,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flashSession", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57897,9 +57682,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57910,9 +57695,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57934,9 +57719,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57947,9 +57732,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57960,9 +57745,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "assets", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58064,7 +57849,6 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { 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)) { zephir_get_strval(propertyName, propertyName_param); } else { @@ -58092,7 +57876,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { RETURN_CCTOR(service); } if (ZEPHIR_IS_STRING(propertyName, "di")) { - zephir_update_property_zval(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); RETURN_CCTOR(dependencyInjector); } if (ZEPHIR_IS_STRING(propertyName, "persistent")) { @@ -58107,7 +57891,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CPY_WRT(persistent, _3); - zephir_update_property_zval(this_ptr, SL("persistent"), persistent TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("persistent"), persistent TSRMLS_CC); RETURN_CCTOR(persistent); } ZEPHIR_INIT_VAR(_6); @@ -58188,7 +57972,6 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -58204,7 +57987,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -58226,7 +58013,11 @@ static PHP_METHOD(Phalcon_Di_Service, setShared) { shared = zephir_get_boolval(shared_param); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -58342,7 +58133,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, 177, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 176, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -58364,7 +58155,11 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { if (zephir_is_true(shared)) { zephir_update_property_this(this_ptr, SL("_sharedInstance"), instance TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_resolved"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_CCTOR(instance); } @@ -58382,7 +58177,6 @@ static PHP_METHOD(Phalcon_Di_Service, setParameter) { parameter = parameter_param; - ZEPHIR_OBS_VAR(definition); zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); if (Z_TYPE_P(definition) != IS_ARRAY) { @@ -58391,11 +58185,11 @@ static PHP_METHOD(Phalcon_Di_Service, setParameter) { } ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE, "phalcon/di/service.zep", 228); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { ZEPHIR_INIT_NVAR(arguments); zephir_create_array(arguments, 1, 0 TSRMLS_CC); - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY, "phalcon/di/service.zep", 230); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY ZEPHIR_DEBUG_PARAMS_DUMMY); } zephir_array_update_string(&definition, SL("arguments"), &arguments, PH_COPY | PH_SEPARATE); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); @@ -58448,7 +58242,6 @@ static PHP_METHOD(Phalcon_Di_Service, __set_state) { attributes = attributes_param; - ZEPHIR_OBS_VAR(name); if (!(zephir_array_isset_string_fetch(&name, attributes, SS("_name"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "The attribute '_name' is required", "phalcon/di/service.zep", 289); @@ -58533,14 +58326,14 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault_Cli) { static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 175); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -58550,9 +58343,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58563,9 +58356,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58576,9 +58369,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58589,9 +58382,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58602,9 +58395,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58615,9 +58408,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58628,9 +58421,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58641,9 +58434,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58654,9 +58447,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58667,9 +58460,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58715,7 +58508,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { argument = argument_param; - ZEPHIR_OBS_VAR(type); if (!(zephir_array_isset_string_fetch(&type, argument, SS("type"), 0 TSRMLS_CC))) { ZEPHIR_INIT_VAR(_0); @@ -58832,7 +58624,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { arguments = arguments_param; - ZEPHIR_INIT_VAR(buildArguments); array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); @@ -58842,7 +58633,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -58863,7 +58654,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { zephir_fetch_params(1, 2, 1, &dependencyInjector, &definition_param, ¶meters); definition = definition_param; - if (!parameters) { parameters = ZEPHIR_GLOBAL(global_null); } @@ -58887,7 +58677,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -58957,7 +58747,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -59021,7 +58811,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } @@ -59086,13 +58876,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -59149,7 +58943,6 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59172,7 +58965,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { zephir_update_property_this(this_ptr, SL("_data"), data TSRMLS_CC); } if (cancelable != 1) { - zephir_update_property_this(this_ptr, SL("_cancelable"), cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (cancelable) { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -59188,7 +58985,11 @@ static PHP_METHOD(Phalcon_Events_Event, stop) { ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_events_exception_ce, "Trying to cancel a non-cancelable event", "phalcon/events/event.zep", 93); return; } - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59289,7 +59090,6 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59300,10 +59100,9 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { priority = 100; } else { if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - priority = Z_LVAL_P(priority_param); } @@ -59325,7 +59124,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -59335,7 +59134,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -59359,7 +59158,6 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59384,7 +59182,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -59406,13 +59204,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _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, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -59434,7 +59232,11 @@ static PHP_METHOD(Phalcon_Events_Manager, enablePriorities) { enablePriorities = zephir_get_boolval(enablePriorities_param); - zephir_update_property_this(this_ptr, SL("_enablePriorities"), enablePriorities ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (enablePriorities) { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59455,7 +59257,11 @@ static PHP_METHOD(Phalcon_Events_Manager, collectResponses) { collect = zephir_get_boolval(collect_param); - zephir_update_property_this(this_ptr, SL("_collect"), collect ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (collect) { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59489,7 +59295,6 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59529,7 +59334,6 @@ static PHP_METHOD(Phalcon_Events_Manager, dettachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59568,7 +59372,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -59715,7 +59519,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool cancelable, _3; - zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0, *_2; + zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0 = NULL, *_2; zval *eventType = NULL, *_1; ZEPHIR_MM_GROW(); @@ -59725,7 +59529,6 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59781,9 +59584,15 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -59797,10 +59606,16 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -59820,7 +59635,6 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59846,7 +59660,6 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { 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)) { zephir_get_strval(type, type_param); } else { @@ -60013,7 +59826,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -60139,7 +59952,6 @@ static PHP_METHOD(Phalcon_Flash_Session, _setSessionMessages) { messages = messages_param; - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -60225,7 +60037,7 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { int ZEPHIR_LAST_CALL_STATUS; zend_bool remove; - zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages; + zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 2, &type, &remove_param); @@ -60240,7 +60052,13 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(type) != IS_STRING) { RETURN_CCTOR(messages); @@ -60255,11 +60073,11 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { static PHP_METHOD(Phalcon_Flash_Session, output) { - zephir_fcall_cache_entry *_3 = NULL, *_4 = NULL; - HashTable *_1; - HashPosition _0; + zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; + HashTable *_2; + HashPosition _1; int ZEPHIR_LAST_CALL_STATUS; - zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, **_2; + zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, *_0, **_3; zend_bool remove; ZEPHIR_MM_GROW(); @@ -60272,21 +60090,27 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { - zephir_is_iterable(messages, &_1, &_0, 0, 0, "phalcon/flash/session.zep", 162); + zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/flash/session.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zephir_hash_move_forward_ex(_2, &_1) ) { - ZEPHIR_GET_HMKEY(type, _1, _0); - ZEPHIR_GET_HVALUE(message, _2); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_3, 0, type, message); + ZEPHIR_GET_HMKEY(type, _2, _1); + ZEPHIR_GET_HVALUE(message, _3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_4, 0, type, message); zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60304,7 +60128,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, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60411,7 +60235,6 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -60504,7 +60327,6 @@ static PHP_METHOD(Phalcon_Forms_Element, addValidators) { zephir_fetch_params(1, 1, 1, &validators_param, &merge_param); validators = validators_param; - if (!merge_param) { merge = 1; } else { @@ -60574,7 +60396,7 @@ static PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -60658,7 +60480,6 @@ static PHP_METHOD(Phalcon_Forms_Element, setAttributes) { attributes = attributes_param; - zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); RETURN_THISW(); @@ -61203,7 +61024,6 @@ static PHP_METHOD(Phalcon_Forms_Form, setUserOptions) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); RETURN_THISW(); @@ -61256,7 +61076,6 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { zephir_fetch_params(1, 2, 1, &data_param, &entity, &whitelist); data = data_param; - ZEPHIR_SEPARATE_PARAM(entity); if (!whitelist) { whitelist = ZEPHIR_GLOBAL(global_null); @@ -61409,7 +61228,7 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -61417,10 +61236,10 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -61483,7 +61302,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); zephir_check_call_status(); } } @@ -61606,7 +61425,6 @@ static PHP_METHOD(Phalcon_Forms_Form, render) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61650,7 +61468,6 @@ static PHP_METHOD(Phalcon_Forms_Form, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61690,7 +61507,6 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61698,8 +61514,8 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { ZVAL_EMPTY_STRING(name); } if (!attributes_param) { - ZEPHIR_INIT_VAR(attributes); - array_init(attributes); + ZEPHIR_INIT_VAR(attributes); + array_init(attributes); } else { zephir_get_arrval(attributes, attributes_param); } @@ -61737,7 +61553,6 @@ static PHP_METHOD(Phalcon_Forms_Form, getLabel) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61781,7 +61596,6 @@ static PHP_METHOD(Phalcon_Forms_Form, getValue) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61845,7 +61659,6 @@ static PHP_METHOD(Phalcon_Forms_Form, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61871,7 +61684,6 @@ static PHP_METHOD(Phalcon_Forms_Form, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61953,7 +61765,7 @@ static PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -62045,7 +61857,7 @@ static PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); @@ -62154,7 +61966,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); zephir_check_call_status(); RETURN_MM(); @@ -62199,7 +62011,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); @@ -62244,7 +62056,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); @@ -62289,7 +62101,7 @@ static PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); @@ -62334,7 +62146,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); @@ -62379,7 +62191,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); @@ -62424,7 +62236,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); @@ -62471,7 +62283,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); @@ -62522,7 +62334,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -62593,7 +62405,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -62638,7 +62450,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); zephir_check_call_status(); RETURN_MM(); @@ -62683,7 +62495,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); @@ -62728,7 +62540,7 @@ static PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); @@ -62794,7 +62606,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -62872,7 +62683,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setValue) { zephir_update_property_this(this_ptr, SL("_value"), value TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_readed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -63040,7 +62855,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -63090,7 +62905,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, restore) { } } } - zephir_update_property_this(this_ptr, SL("_restored"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -63136,7 +62955,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -63152,7 +62971,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -63216,7 +63039,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, setPath) { 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)) { zephir_get_strval(path, path_param); } else { @@ -63271,7 +63093,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -63323,7 +63144,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setSecure) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_secure"), secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (secure) { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -63361,7 +63186,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setHttpOnly) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_httpOnly"), httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (httpOnly) { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -63506,7 +63335,7 @@ static PHP_METHOD(Phalcon_Http_Request, get) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63521,7 +63350,6 @@ static PHP_METHOD(Phalcon_Http_Request, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63547,7 +63375,19 @@ static PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63557,7 +63397,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63572,7 +63412,6 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63598,7 +63437,19 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63608,7 +63459,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL, *_1, *_2; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63622,7 +63473,6 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63655,13 +63505,25 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { array_init(put); ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); - Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); - Z_UNSET_ISREF_P(put); + ZEPHIR_MAKE_REF(put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_UNREF(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (notAllowEmpty) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_INIT_VAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -63671,7 +63533,7 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63686,7 +63548,6 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63712,7 +63573,19 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63723,7 +63596,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive, _3; zval *name = NULL; - zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2; + zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2 = NULL; zval *source = NULL; ZEPHIR_MM_GROW(); @@ -63738,7 +63611,6 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63790,7 +63662,13 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_CPY_WRT(filter, _1); zephir_update_property_this(this_ptr, SL("_filter"), filter TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, _2); zephir_check_call_status(); ZEPHIR_CPY_WRT(value, _1); } @@ -63819,7 +63697,6 @@ static PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63848,7 +63725,6 @@ static PHP_METHOD(Phalcon_Http_Request, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63874,7 +63750,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63900,7 +63775,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63928,7 +63802,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63954,7 +63827,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63981,7 +63853,6 @@ static PHP_METHOD(Phalcon_Http_Request, getHeader) { 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)) { zephir_get_strval(header, header_param); } else { @@ -64112,7 +63983,7 @@ static PHP_METHOD(Phalcon_Http_Request, getRawBody) { static PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { int ZEPHIR_LAST_CALL_STATUS; - zval *associative_param = NULL, *rawBody = NULL; + zval *associative_param = NULL, *rawBody = NULL, _0; zend_bool associative; ZEPHIR_MM_GROW(); @@ -64130,7 +64001,9 @@ static PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { if (Z_TYPE_P(rawBody) != IS_STRING) { RETURN_MM_BOOL(0); } - zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval((associative ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))) TSRMLS_CC); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (associative ? 1 : 0)); + zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval(&_0) TSRMLS_CC); RETURN_MM(); } @@ -64149,7 +64022,7 @@ static PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); zephir_check_call_status(); RETURN_MM(); @@ -64340,7 +64213,7 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -64412,7 +64285,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -64425,7 +64298,7 @@ static PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -64438,7 +64311,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -64451,7 +64324,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -64464,7 +64337,7 @@ static PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -64477,7 +64350,7 @@ static PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -64490,7 +64363,7 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -64498,11 +64371,11 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { static PHP_METHOD(Phalcon_Http_Request, hasFiles) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; - zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL; + zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL, *_5 = NULL; zend_bool onlySuccessful, _3; ZEPHIR_MM_GROW(); @@ -64538,7 +64411,13 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, error, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64550,12 +64429,12 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; zend_bool onlySuccessful, _3; - zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL; + zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL, *_5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &data, &onlySuccessful_param); @@ -64582,7 +64461,13 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, value, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64597,7 +64482,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { int ZEPHIR_LAST_CALL_STATUS; HashTable *_1, *_11; HashPosition _0, _10; - zval *files; + zval *files = NULL; zval *onlySuccessful_param = NULL, *superFiles = NULL, *prefix = NULL, *input = NULL, *smoothInput = NULL, *file = NULL, *dataFile = NULL, *_FILES, **_2, *_3 = NULL, *_4, *_5, *_6, *_7, *_8, **_12, *_14, *_15 = NULL, *_16 = NULL, *_17; zend_bool onlySuccessful, _13; @@ -64614,6 +64499,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { array_init(files); + ZEPHIR_INIT_NVAR(files); + array_init(files); ZEPHIR_CPY_WRT(superFiles, _FILES); if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1, &_0, 0, 0, "phalcon/http/request.zep", 720); @@ -64631,7 +64518,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -64665,7 +64552,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -64679,7 +64566,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -64704,15 +64591,10 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_fetch_params(1, 6, 0, &names_param, &types_param, &tmp_names_param, &sizes_param, &errors_param, &prefix_param); names = names_param; - types = types_param; - tmp_names = tmp_names_param; - sizes = sizes_param; - errors = errors_param; - zephir_get_strval(prefix, prefix_param); @@ -64752,7 +64634,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -64806,7 +64688,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -64825,7 +64707,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -64870,7 +64752,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { 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)) { zephir_get_strval(serverIndex, serverIndex_param); } else { @@ -64881,7 +64762,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -64900,7 +64780,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -64918,7 +64798,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -64977,7 +64857,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -65049,7 +64928,7 @@ static PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65068,7 +64947,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65086,7 +64965,7 @@ static PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65105,7 +64984,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65123,7 +65002,7 @@ static PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65142,7 +65021,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65195,10 +65074,10 @@ static PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { ZVAL_STRING(_0, "#(\\w+)=(['\"]?)([^'\" ,]+)\\2#", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 2); - Z_SET_ISREF_P(matches); + ZEPHIR_MAKE_REF(matches); ZEPHIR_CALL_FUNCTION(&_2, "preg_match_all", NULL, 28, _0, digest, matches, _1); zephir_check_temp_parameter(_0); - Z_UNSET_ISREF_P(matches); + ZEPHIR_UNREF(matches); zephir_check_call_status(); if (!(zephir_is_true(_2))) { RETURN_CTOR(auth); @@ -65462,7 +65341,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -65743,10 +65622,9 @@ static PHP_METHOD(Phalcon_Http_Response, setCache) { zephir_fetch_params(1, 1, 0, &minutes_param); if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - minutes = Z_LVAL_P(minutes_param); @@ -65889,7 +65767,7 @@ static PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -66109,11 +65987,15 @@ static PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); zephir_check_call_status(); } } - zephir_update_property_this(this_ptr, SL("_sent"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -66338,7 +66220,6 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_fetch_params(1, 1, 1, &file_param, &key); file = file_param; - if (!key) { key = ZEPHIR_GLOBAL(global_null); } @@ -66349,7 +66230,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); @@ -66415,15 +66296,15 @@ static PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -66441,7 +66322,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -66462,7 +66343,6 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { 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)) { zephir_get_strval(destination, destination_param); } else { @@ -66472,7 +66352,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); zephir_check_call_status(); RETURN_MM(); @@ -66573,7 +66453,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -66590,7 +66474,7 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zval *_3; zend_bool secure, httpOnly; int expire, ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5; + zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5, *_6; zval *name = NULL, *path = NULL, *domain = NULL; ZEPHIR_MM_GROW(); @@ -66600,7 +66484,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66634,7 +66517,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -66693,11 +66575,23 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setpath", NULL, 0, path); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, (secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_4); + if (secure) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, _4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setdomain", NULL, 0, domain); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, (httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (httpOnly) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, _6); zephir_check_call_status(); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_registered"), PH_NOISY_CC); @@ -66734,7 +66628,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66788,7 +66681,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66821,7 +66713,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -67062,10 +66953,10 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -67110,7 +67001,6 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { data = data_param; - ZEPHIR_INIT_VAR(headers); object_init_ex(headers, phalcon_http_response_headers_ce); if (zephir_has_constructor(headers TSRMLS_CC)) { @@ -67126,7 +67016,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); zephir_check_call_status(); } } @@ -67639,7 +67529,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, sharpen) { static PHP_METHOD(Phalcon_Image_Adapter, reflection) { zend_bool fadeIn, _0; - zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4; + zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4, *_5; int height, opacity, ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -67677,7 +67567,13 @@ static PHP_METHOD(Phalcon_Image_Adapter, reflection) { ZVAL_LONG(_3, height); ZEPHIR_INIT_VAR(_4); ZVAL_LONG(_4, opacity); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, (fadeIn ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (fadeIn) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, _5); zephir_check_call_status(); RETURN_THIS(); @@ -67712,7 +67608,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getwidth", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); - sub_function(_2, _0, _1 TSRMLS_CC); + zephir_sub_function(_2, _0, _1); tmp = zephir_get_numberval(_2); if (offsetX < 0) { offsetX = 0; @@ -67723,7 +67619,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getheight", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); - sub_function(_3, _0, _1 TSRMLS_CC); + zephir_sub_function(_3, _0, _1); tmp = zephir_get_numberval(_3); if (offsetY < 0) { offsetY = 0; @@ -67993,7 +67889,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, save) { } - if (!(file && Z_STRLEN_P(file))) { + if (!(!(!file) && Z_STRLEN_P(file))) { ZEPHIR_OBS_VAR(_0); zephir_read_property_this(&_0, this_ptr, SL("_realpath"), PH_NOISY_CC); zephir_get_strval(_1, _0); @@ -68034,7 +67930,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, render) { } - if (!(ext && Z_STRLEN_P(ext))) { + if (!(!(!ext) && Z_STRLEN_P(ext))) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); @@ -68174,13 +68070,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -68198,7 +68094,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -68211,7 +68107,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZEPHIR_MM_RESTORE(); return; } - zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _9 = zephir_fetch_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_9); @@ -68232,7 +68128,6 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -68264,7 +68159,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -68280,35 +68175,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -68333,7 +68228,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -68356,14 +68251,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -68402,7 +68297,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -68450,11 +68345,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -68478,17 +68373,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -68498,16 +68393,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -68534,7 +68429,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -68560,17 +68455,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -68590,16 +68485,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -68627,20 +68522,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68653,11 +68548,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -68683,7 +68578,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -68711,7 +68606,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -68735,18 +68630,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -68754,13 +68649,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); zephir_check_call_status(); } } @@ -68783,7 +68678,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -68832,15 +68727,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -68866,7 +68761,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68892,7 +68787,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -68933,7 +68828,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -68945,7 +68840,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -68958,18 +68853,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -68991,21 +68886,21 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -69017,11 +68912,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -69031,11 +68926,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -69050,10 +68945,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69085,16 +68980,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -69128,12 +69023,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -69153,7 +69048,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -69165,17 +69060,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -69195,7 +69090,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -69204,7 +69099,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69225,22 +69120,22 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -69250,13 +69145,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -69267,7 +69162,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -69283,9 +69178,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -69305,9 +69200,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -69320,10 +69215,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -69333,22 +69228,22 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -69382,9 +69277,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -69397,11 +69292,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -69429,7 +69324,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); zephir_check_call_status(); i++; } @@ -69468,7 +69363,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -69481,7 +69376,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -69512,7 +69407,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -69520,30 +69415,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -69552,64 +69447,64 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -69647,25 +69542,25 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -69673,45 +69568,45 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } @@ -69743,11 +69638,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -69763,7 +69658,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69816,16 +69711,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } - zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _5 = zephir_fetch_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_5); @@ -69845,7 +69740,6 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -69904,7 +69798,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -70370,7 +70264,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70384,11 +70278,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -70427,7 +70321,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -70444,7 +70338,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70474,7 +70368,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -70554,7 +70448,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -70616,7 +70510,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -70624,7 +70518,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_CALL_METHOD(NULL, draw, "setfont", NULL, 0, fontfile); zephir_check_call_status(); } @@ -70655,24 +70549,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70688,13 +70582,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70705,13 +70599,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70730,13 +70624,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70747,13 +70641,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70769,13 +70663,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70786,13 +70680,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70860,7 +70754,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -70910,7 +70804,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -70943,7 +70837,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -70952,11 +70846,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -70970,7 +70864,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -71124,7 +71018,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -71148,7 +71042,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -71220,7 +71114,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); @@ -71379,7 +71273,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, setFormatter) { static PHP_METHOD(Phalcon_Logger_Adapter, begin) { - zephir_update_property_this(this_ptr, SL("_transaction"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -71399,7 +71297,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, commit) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 107); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_OBS_VAR(queue); zephir_read_property_this(&queue, this_ptr, SL("_queue"), PH_NOISY_CC); if (Z_TYPE_P(queue) == IS_ARRAY) { @@ -71437,7 +71339,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, rollback) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 139); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_queue"), _0 TSRMLS_CC); @@ -71466,7 +71372,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71474,11 +71379,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71504,7 +71408,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71512,11 +71415,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71542,7 +71444,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71550,11 +71451,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71580,7 +71480,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71588,11 +71487,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71618,7 +71516,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71626,11 +71523,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71656,7 +71552,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71664,11 +71559,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71694,7 +71588,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71702,11 +71595,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71732,7 +71624,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71740,11 +71631,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71770,11 +71660,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72221,11 +72110,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72260,7 +72148,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72268,11 +72155,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72298,7 +72184,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72306,11 +72191,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72336,7 +72220,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72344,11 +72227,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72374,7 +72256,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72382,11 +72263,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72412,7 +72292,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72420,11 +72299,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72450,7 +72328,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72458,11 +72335,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72488,7 +72364,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72496,11 +72371,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72526,7 +72400,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72534,11 +72407,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72599,7 +72471,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -72626,7 +72497,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -72658,7 +72529,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72738,7 +72609,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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -72823,17 +72694,17 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); - zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_4, this_ptr, "getformatter", NULL, 0); zephir_check_call_status(); @@ -72861,7 +72732,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", &_3, 238, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); @@ -72917,7 +72788,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -72939,7 +72809,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -72969,7 +72839,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -73071,9 +72941,13 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -73131,7 +73005,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", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -73146,7 +73020,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -73223,7 +73097,11 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, setShowBacktrace) { } - zephir_update_property_this(this_ptr, SL("_showBacktrace"), isShow ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isShow) { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73249,7 +73127,11 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, enableLabels) { } - zephir_update_property_this(this_ptr, SL("_enableLabels"), isEnable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isEnable) { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73268,7 +73150,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { HashPosition _6; zend_bool param, _11, _14; int type, timestamp, ZEPHIR_LAST_CALL_STATUS; - zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; + zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3 = zval_used_for_init, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; zval *message = NULL; ZEPHIR_MM_GROW(); @@ -73303,16 +73185,18 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_SINIT_NVAR(_3); + ZVAL_BOOL(&_3, (param ? 1 : 0)); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, &_3); zephir_check_call_status(); - Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); - Z_UNSET_ISREF_P(backtrace); + ZEPHIR_MAKE_REF(backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_UNREF(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { zephir_array_fetch_string(&_5, lastTrace, SL("file"), PH_NOISY | PH_READONLY, "phalcon/logger/formatter/firephp.zep", 133 TSRMLS_CC); @@ -73482,13 +73366,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73501,13 +73389,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73558,7 +73450,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); @@ -73702,7 +73594,11 @@ static PHP_METHOD(Phalcon_Mvc_Application, useImplicitView) { implicitView = zephir_get_boolval(implicitView_param); - zephir_update_property_this(this_ptr, SL("_implicitView"), implicitView ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitView) { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73761,7 +73657,6 @@ static PHP_METHOD(Phalcon_Mvc_Application, getModule) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -73799,7 +73694,6 @@ static PHP_METHOD(Phalcon_Mvc_Application, setDefaultModule) { 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)) { zephir_get_strval(defaultModule, defaultModule_param); } else { @@ -74308,7 +74202,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, getReservedAttributes) { static PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { int ZEPHIR_LAST_CALL_STATUS; - zval *useImplicitObjectIds_param = NULL, *_0; + zval *useImplicitObjectIds_param = NULL, *_0, *_1; zend_bool useImplicitObjectIds; ZEPHIR_MM_GROW(); @@ -74318,7 +74212,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, (useImplicitObjectIds ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (useImplicitObjectIds) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -74336,7 +74236,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -74383,7 +74282,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -74444,7 +74342,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -74474,7 +74371,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -74503,7 +74399,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { document = document_param; - ZEPHIR_INIT_VAR(clonedCollection); if (zephir_clone(clonedCollection, collection TSRMLS_CC) == FAILURE) { RETURN_MM(); @@ -74612,7 +74507,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -74823,7 +74718,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _postSave) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, (disableEvents ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (disableEvents) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, _1); zephir_check_call_status(); RETURN_MM_BOOL(0); @@ -74889,7 +74790,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -74922,7 +74822,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -74932,7 +74831,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -75039,7 +74938,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zval *_3; int ZEPHIR_LAST_CALL_STATUS; zend_bool success; - zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL; + zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL, *_4; ZEPHIR_MM_GROW(); @@ -75075,7 +74974,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -75104,7 +75003,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_INIT_VAR(_4); + if (success) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, _4, exists); zephir_check_call_status(); RETURN_MM(); @@ -75127,7 +75032,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findById) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75171,8 +75076,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75182,7 +75087,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75209,8 +75114,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75220,7 +75125,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75247,8 +75152,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75258,7 +75163,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75283,8 +75188,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75294,7 +75199,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -75330,7 +75235,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { 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)) { zephir_get_strval(field, field_param); } else { @@ -75349,7 +75253,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -75505,7 +75409,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -75576,7 +75484,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -75773,7 +75680,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { 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)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { @@ -75799,7 +75705,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -75825,7 +75730,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -75873,7 +75777,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { 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)) { zephir_get_strval(message, message_param); } else { @@ -76150,7 +76053,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76183,7 +76085,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76216,7 +76117,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76249,7 +76149,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76282,7 +76181,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76315,7 +76213,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76348,7 +76245,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76381,7 +76277,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76433,7 +76328,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -76553,7 +76448,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL; + zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL, *_0; zval *serviceName = NULL; ZEPHIR_MM_GROW(); @@ -76563,7 +76458,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76582,11 +76476,17 @@ 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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, _0); zephir_check_call_status(); RETURN_MM(); @@ -76605,7 +76505,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76619,11 +76518,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76642,7 +76541,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76656,11 +76554,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76681,11 +76579,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76775,7 +76673,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(beforeHandlers); zephir_read_property_this(&beforeHandlers, this_ptr, SL("_beforeHandlers"), PH_NOISY_CC); if (Z_TYPE_P(beforeHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(beforeHandlers, &_6, &_5, 0, 0, "phalcon/mvc/micro.zep", 687); for ( ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS @@ -76833,7 +76735,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(afterHandlers); zephir_read_property_this(&afterHandlers, this_ptr, SL("_afterHandlers"), PH_NOISY_CC); if (Z_TYPE_P(afterHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(afterHandlers, &_10, &_9, 0, 0, "phalcon/mvc/micro.zep", 742); for ( ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS @@ -76909,7 +76815,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(finishHandlers); zephir_read_property_this(&finishHandlers, this_ptr, SL("_finishHandlers"), PH_NOISY_CC); if (Z_TYPE_P(finishHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(params); ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_15, &_14, 0, 0, "phalcon/mvc/micro.zep", 832); @@ -77019,7 +76929,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { static PHP_METHOD(Phalcon_Mvc_Micro, stop) { - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -77391,7 +77305,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -77434,7 +77347,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -77477,7 +77389,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77506,7 +77417,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77535,7 +77445,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77658,7 +77567,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_fetch_params(1, 1, 2, &data_param, &dataColumnMap, &whiteList); data = data_param; - if (!dataColumnMap) { dataColumnMap = ZEPHIR_GLOBAL(global_null); } @@ -77762,7 +77670,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_fetch_params(1, 3, 2, &base, &data_param, &columnMap, &dirtyState_param, &keepSnapshots_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -77886,7 +77793,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { zephir_fetch_params(1, 3, 0, &data_param, &columnMap, &hydrationMode_param); data = data_param; - hydrationMode = zephir_get_intval(hydrationMode_param); @@ -77960,7 +77866,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_fetch_params(1, 2, 1, &base, &data_param, &dirtyState_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -78182,12 +78087,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, 303, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 302, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -78373,7 +78278,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(functionName, functionName_param); } else { @@ -78384,7 +78288,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -78606,7 +78509,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -78639,7 +78541,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -78649,7 +78550,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -79370,7 +79271,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (ZEPHIR_IS_FALSE_IDENTICAL(_3)) { RETURN_MM_BOOL(0); } - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } if (exists) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "beforeUpdate", ZEPHIR_TEMP_PARAM_COPY); @@ -79742,9 +79647,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -79835,12 +79740,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL, *_6 = NULL, *_11 = NULL, *_12 = NULL; - HashTable *_2, *_9; - HashPosition _1, _8; + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_8 = NULL, *_13 = NULL, *_14 = NULL; + HashTable *_3, *_11; + HashPosition _2, _10; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting; - zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0 = NULL, **_3, *_7 = NULL, **_10; + zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0, *_1 = NULL, **_4, *_6 = NULL, *_9 = NULL, **_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -79848,29 +79753,41 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { nesting = 0; - ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (nesting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); zephir_get_class(className, this_ptr, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, 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", 2592); + ZEPHIR_CPY_WRT(manager, _1); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2592); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) ) { - ZEPHIR_GET_HMKEY(name, _2, _1); - ZEPHIR_GET_HVALUE(record, _3); - ZEPHIR_CALL_METHOD(&_0, manager, "getrelationbyalias", &_4, 0, className, name); + ZEPHIR_GET_HMKEY(name, _3, _2); + ZEPHIR_GET_HVALUE(record, _4); + ZEPHIR_CALL_METHOD(&_1, manager, "getrelationbyalias", &_5, 0, className, name); zephir_check_call_status(); - ZEPHIR_CPY_WRT(relation, _0); + ZEPHIR_CPY_WRT(relation, _1); if (Z_TYPE_P(relation) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&type, relation, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(type, 0)) { if (Z_TYPE_P(record) != IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2541); return; @@ -79882,36 +79799,48 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } - ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, record, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_0))) { - ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); + if (!(zephir_is_true(_1))) { + ZEPHIR_CALL_METHOD(&_9, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); + zephir_is_iterable(_9, &_11, &_10, 0, 0, "phalcon/mvc/model.zep", 2579); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS + ; zephir_hash_move_forward_ex(_11, &_10) ) { - ZEPHIR_GET_HVALUE(message, _10); + ZEPHIR_GET_HVALUE(message, _12); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_11, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_13, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_12, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_14, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } - ZEPHIR_CALL_METHOD(&_7, record, "readattribute", NULL, 0, referencedFields); + ZEPHIR_CALL_METHOD(&_9, record, "readattribute", NULL, 0, referencedFields); zephir_check_call_status(); - zephir_update_property_zval_zval(this_ptr, columns, _7 TSRMLS_CC); + zephir_update_property_zval_zval(this_ptr, columns, _9 TSRMLS_CC); } } } @@ -79921,12 +79850,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_11 = NULL, *_20 = NULL, *_21 = NULL, *_22 = NULL, *_27 = NULL, *_28 = NULL; - HashTable *_2, *_14, *_18, *_25; - HashPosition _1, _13, _17, _24; + zephir_fcall_cache_entry *_4 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_21 = NULL, *_22 = NULL, *_23 = NULL, *_28 = NULL, *_29 = NULL; + HashTable *_2, *_15, *_19, *_26; + HashPosition _1, _14, _18, _25; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting, isThrough, _5; - zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_9 = NULL, *_10 = NULL, *_12 = NULL, **_15, *_16 = NULL, **_19, *_23 = NULL, **_26; + zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_6 = NULL, *_10 = NULL, *_11 = NULL, *_13 = NULL, **_16, *_17 = NULL, **_20, *_24 = NULL, **_27; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -79960,7 +79889,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { _5 = Z_TYPE_P(record) != IS_ARRAY; } if (_5) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2631); return; @@ -79972,7 +79907,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; @@ -79986,21 +79927,27 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, columns, PH_SILENT_CC))) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "The column '", columns, "' needs to be present in the model"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, relation, "isthrough", NULL, 0); zephir_check_call_status(); - isThrough = zephir_get_boolval(_12); + isThrough = zephir_get_boolval(_13); if (isThrough) { ZEPHIR_CALL_METHOD(&intermediateModelName, relation, "getintermediatemodel", NULL, 0); zephir_check_call_status(); @@ -80009,42 +79956,48 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); + zephir_is_iterable(relatedRecords, &_15, &_14, 0, 0, "phalcon/mvc/model.zep", 2769); for ( - ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS - ; zephir_hash_move_forward_ex(_14, &_13) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(recordAfter, _15); + ZEPHIR_GET_HVALUE(recordAfter, _16); if (!(isThrough)) { ZEPHIR_CALL_METHOD(NULL, recordAfter, "writeattribute", NULL, 0, referencedFields, value); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&_12, recordAfter, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, recordAfter, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); + if (!(zephir_is_true(_13))) { + ZEPHIR_CALL_METHOD(&_17, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); + zephir_is_iterable(_17, &_19, &_18, 0, 0, "phalcon/mvc/model.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS - ; zephir_hash_move_forward_ex(_18, &_17) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(message, _19); + ZEPHIR_GET_HVALUE(message, _20); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_21, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_22, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } if (isThrough) { - ZEPHIR_INIT_NVAR(_9); - ZVAL_BOOL(_9, 1); - ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_22, 0, intermediateModelName, _9); + ZEPHIR_INIT_NVAR(_10); + ZVAL_BOOL(_10, 1); + ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_23, 0, intermediateModelName, _10); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateFields, value); zephir_check_call_status(); @@ -80052,25 +80005,31 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateReferencedFields, intermediateValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_16, intermediateModel, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_17, intermediateModel, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_16))) { - ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); + if (!(zephir_is_true(_17))) { + ZEPHIR_CALL_METHOD(&_24, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); + zephir_is_iterable(_24, &_26, &_25, 0, 0, "phalcon/mvc/model.zep", 2763); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS + ; zephir_hash_move_forward_ex(_26, &_25) ) { - ZEPHIR_GET_HVALUE(message, _26); + ZEPHIR_GET_HVALUE(message, _27); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_27, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_10); + if (nesting) { + ZVAL_BOOL(_10, 1); + } else { + ZVAL_BOOL(_10, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, _10); zephir_check_call_status(); RETURN_MM_BOOL(0); } @@ -80078,21 +80037,33 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } } else { if (Z_TYPE_P(record) != IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_29, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVS(_11, "There are no defined relations for the model '", className, "' using alias '", name, "'"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(1); @@ -80181,7 +80152,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); zephir_check_call_status(); zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -80433,7 +80404,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "beforeDelete", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_2, this_ptr, "fireeventcancel", NULL, 0, _6); @@ -80594,7 +80569,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -80610,7 +80589,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -80640,7 +80618,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -80668,7 +80645,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); @@ -80703,7 +80679,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); @@ -80736,7 +80711,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); @@ -80769,7 +80743,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); @@ -80801,7 +80774,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80833,7 +80805,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80865,7 +80836,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80897,7 +80867,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -80908,7 +80877,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80947,7 +80915,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, addBehavior) { static PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { int ZEPHIR_LAST_CALL_STATUS; - zval *keepSnapshot_param = NULL, *_0; + zval *keepSnapshot_param = NULL, *_0, *_1; zend_bool keepSnapshot; ZEPHIR_MM_GROW(); @@ -80957,7 +80925,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, (keepSnapshot ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (keepSnapshot) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -80976,7 +80950,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { zephir_fetch_params(1, 1, 1, &data_param, &columnMap); data = data_param; - if (!columnMap) { columnMap = ZEPHIR_GLOBAL(global_null); } @@ -81230,7 +81203,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { int ZEPHIR_LAST_CALL_STATUS; - zval *dynamicUpdate_param = NULL, *_0; + zval *dynamicUpdate_param = NULL, *_0, *_1; zend_bool dynamicUpdate; ZEPHIR_MM_GROW(); @@ -81240,7 +81213,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, (dynamicUpdate ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (dynamicUpdate) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -81312,7 +81291,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -81323,7 +81301,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -81444,7 +81421,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { } ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_3, modelName); - _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _4); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -81510,7 +81487,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) != IS_NULL) { RETURN_CCTOR(records); @@ -81553,7 +81530,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) == IS_NULL) { ZEPHIR_INIT_VAR(_1); @@ -81664,7 +81641,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { 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)) { zephir_get_strval(property, property_param); } else { @@ -81736,7 +81712,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { 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)) { zephir_get_strval(property, property_param); } else { @@ -81788,7 +81763,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -81923,7 +81897,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setup) { options = options_param; - ZEPHIR_OBS_VAR(disableEvents); if (zephir_array_isset_string_fetch(&disableEvents, options, SS("events"), 0 TSRMLS_CC)) { ZEPHIR_GLOBAL(orm).events = zend_is_true(disableEvents); @@ -82169,7 +82142,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *routes, *_1, *_4; + zval *routes = NULL, *_1, *_4; zval *defaultRoutes_param = NULL, *_0 = NULL, *_2 = NULL, *_5; zend_bool defaultRoutes; @@ -82183,13 +82156,14 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - defaultRoutes = Z_BVAL_P(defaultRoutes_param); } ZEPHIR_INIT_VAR(routes); array_init(routes); + ZEPHIR_INIT_NVAR(routes); + array_init(routes); if (defaultRoutes) { ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_mvc_router_route_ce); @@ -82320,11 +82294,14 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } - remove = Z_BVAL_P(remove_param); - zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (remove) { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -82341,7 +82318,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { 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)) { zephir_get_strval(namespaceName, namespaceName_param); } else { @@ -82367,7 +82343,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { 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)) { zephir_get_strval(moduleName, moduleName_param); } else { @@ -82393,7 +82368,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -82419,7 +82393,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -82443,7 +82416,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaults) { defaults = defaults_param; - if (zephir_array_isset_string_fetch(&namespaceName, defaults, SS("namespace"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_defaultNamespace"), namespaceName TSRMLS_CC); } @@ -82511,7 +82483,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { } - if (!(uri && Z_STRLEN_P(uri))) { + if (!(!(!uri) && Z_STRLEN_P(uri))) { ZEPHIR_CALL_METHOD(&realUri, this_ptr, "getrewriteuri", NULL, 0); zephir_check_call_status(); } else { @@ -82542,7 +82514,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { array_init(params); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_matchedRoute"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_OBS_VAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); @@ -82728,9 +82704,17 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { } } if (zephir_is_true(routeFound)) { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } if (!(zephir_is_true(routeFound))) { ZEPHIR_OBS_VAR(notFoundPaths); @@ -82828,7 +82812,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82887,7 +82870,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82925,7 +82907,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82963,7 +82944,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83001,7 +82981,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83039,7 +83018,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83077,7 +83055,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83115,7 +83092,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83339,7 +83315,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -83509,7 +83484,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { 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)) { zephir_get_strval(baseUri, baseUri_param); } else { @@ -83539,7 +83513,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { 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)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { @@ -83613,7 +83586,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { 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)) { zephir_get_strval(basePath, basePath_param); } else { @@ -83783,7 +83755,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 364, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 363, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { @@ -84267,7 +84239,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84291,7 +84262,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setVars) { zephir_fetch_params(1, 1, 1, ¶ms_param, &merge_param); params = params_param; - if (!merge_param) { merge = 1; } else { @@ -84328,7 +84298,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84354,7 +84323,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84434,7 +84402,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 365, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 364, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -84488,13 +84456,13 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { - zephir_fcall_cache_entry *_9 = NULL, *_10 = NULL; + zephir_fcall_cache_entry *_9 = NULL, *_11 = NULL; HashTable *_6; HashPosition _5; int renderLevel, cacheLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean, notExists; zval *viewPath = NULL; - zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_11; + zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_10 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &engines, &viewPath_param, &silence_param, &mustClean_param, &cache); @@ -84585,14 +84553,20 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { continue; } } - ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_8); + if (mustClean) { + ZVAL_BOOL(_8, 1); + } else { + ZVAL_BOOL(_8, 0); + } + ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, _8); zephir_check_call_status(); notExists = 0; if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_STRING(_8, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_10, 0, _8, this_ptr); - zephir_check_temp_parameter(_8); + ZEPHIR_INIT_NVAR(_10); + ZVAL_STRING(_10, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_11, 0, _10, this_ptr); + zephir_check_temp_parameter(_10); zephir_check_call_status(); } break; @@ -84610,9 +84584,9 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { if (!(silence)) { ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_mvc_view_exception_ce); - ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVS(_11, "View '", viewsDirPath, "' was not found in the views directory"); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _11); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "View '", viewsDirPath, "' was not found in the views directory"); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _12); zephir_check_call_status(); zephir_throw_exception_debug(_8, "phalcon/mvc/view.zep", 684 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -84633,7 +84607,6 @@ static PHP_METHOD(Phalcon_Mvc_View, registerEngines) { engines = engines_param; - zephir_update_property_this(this_ptr, SL("_registeredEngines"), engines TSRMLS_CC); RETURN_THISW(); @@ -84654,7 +84627,6 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { 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)) { zephir_get_strval(view, view_param); } else { @@ -84699,12 +84671,12 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { static PHP_METHOD(Phalcon_Mvc_View, render) { - HashTable *_11, *_15; - HashPosition _10, _14; - zephir_fcall_cache_entry *_2 = NULL, *_9 = NULL; + HashTable *_12, *_17; + HashPosition _11, _16; + zephir_fcall_cache_entry *_2 = NULL, *_10 = NULL; int renderLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean; - zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, **_12, *_13 = NULL, **_16, *_17 = NULL, *_18, *_19 = NULL, *_20 = NULL; + zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, *_9 = NULL, **_13, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21, *_22 = NULL, *_23 = NULL; zval *controllerName = NULL, *actionName = NULL, *_3; ZEPHIR_MM_GROW(); @@ -84714,7 +84686,6 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -84725,7 +84696,6 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -84818,7 +84788,19 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 1); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, renderView, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_7); + if (silence) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_INIT_VAR(_9); + if (mustClean) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, renderView, _7, _9, cache); zephir_check_call_status(); } } @@ -84831,15 +84813,27 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesBefore, this_ptr, SL("_templatesBefore"), PH_NOISY_CC); if (Z_TYPE_P(templatesBefore) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesBefore, &_11, &_10, 0, 0, "phalcon/mvc/view.zep", 881); + zephir_is_iterable(templatesBefore, &_12, &_11, 0, 0, "phalcon/mvc/view.zep", 881); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zephir_hash_move_forward_ex(_12, &_11) ) { - ZEPHIR_GET_HVALUE(templateBefore, _12); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, templateBefore); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateBefore, _13); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, templateBefore); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } silence = 1; @@ -84851,9 +84845,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 3); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, layoutName); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, layoutName); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } } @@ -84866,15 +84872,27 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesAfter, this_ptr, SL("_templatesAfter"), PH_NOISY_CC); if (Z_TYPE_P(templatesAfter) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesAfter, &_15, &_14, 0, 0, "phalcon/mvc/view.zep", 912); + zephir_is_iterable(templatesAfter, &_17, &_16, 0, 0, "phalcon/mvc/view.zep", 912); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) ) { - ZEPHIR_GET_HVALUE(templateAfter, _16); - ZEPHIR_INIT_LNVAR(_17); - ZEPHIR_CONCAT_VV(_17, layoutsDir, templateAfter); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _17, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateAfter, _18); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_VV(_19, layoutsDir, templateAfter); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_20); + if (mustClean) { + ZVAL_BOOL(_20, 1); + } else { + ZVAL_BOOL(_20, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _19, _9, _20, cache); zephir_check_call_status(); } silence = 1; @@ -84887,20 +84905,32 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZVAL_LONG(_5, 5); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_mainView"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _5, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _5, _9, _15, cache); zephir_check_call_status(); } } - ZEPHIR_INIT_ZVAL_NREF(_18); - ZVAL_LONG(_18, 0); - zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _18 TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_21); + ZVAL_LONG(_21, 0); + zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _21 TSRMLS_CC); if (Z_TYPE_P(cache) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(&_19, cache, "isstarted", NULL, 0); + ZEPHIR_CALL_METHOD(&_22, cache, "isstarted", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_19)) { - ZEPHIR_CALL_METHOD(&_20, cache, "isfresh", NULL, 0); + if (ZEPHIR_IS_TRUE(_22)) { + ZEPHIR_CALL_METHOD(&_23, cache, "isfresh", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_20)) { + if (ZEPHIR_IS_TRUE(_23)) { ZEPHIR_CALL_METHOD(NULL, cache, "save", NULL, 0); zephir_check_call_status(); } else { @@ -84969,7 +84999,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -84985,7 +85014,7 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 284); zephir_check_call_status(); RETURN_MM(); @@ -85004,7 +85033,6 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -85062,7 +85090,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -85073,7 +85100,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -85294,7 +85320,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath) { static PHP_METHOD(Phalcon_Mvc_View, disable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -85302,7 +85332,11 @@ static PHP_METHOD(Phalcon_Mvc_View, disable) { static PHP_METHOD(Phalcon_Mvc_View, enable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -85312,8 +85346,16 @@ static PHP_METHOD(Phalcon_Mvc_View, reset) { zval *_0; - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_engines"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (0) { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_cache"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(_0, 5); @@ -85340,7 +85382,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85366,7 +85407,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85402,7 +85442,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85606,7 +85645,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -85636,7 +85674,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -85752,7 +85789,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85777,7 +85813,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85807,7 +85842,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85863,7 +85897,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -86075,7 +86108,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -86110,7 +86142,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -86218,7 +86249,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -86295,7 +86325,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -86442,7 +86471,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -86540,7 +86568,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -86566,7 +86593,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -86669,7 +86696,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { 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)) { zephir_get_strval(method, method_param); } else { @@ -86701,7 +86727,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { 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)) { zephir_get_strval(prefix, prefix_param); } else { @@ -86744,7 +86769,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setHandler) { zephir_update_property_this(this_ptr, SL("_handler"), handler TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -86760,11 +86789,14 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } - lazy = Z_BVAL_P(lazy_param); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -86796,7 +86828,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86829,7 +86860,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86863,7 +86893,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86897,7 +86926,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86931,7 +86959,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86965,7 +86992,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86999,7 +87025,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -87033,7 +87058,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -87164,7 +87188,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { 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)) { zephir_get_strval(definition, definition_param); } else { @@ -87193,7 +87216,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -87209,7 +87231,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(handler); zephir_fetch_safe_class(_0, definition); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(handler, _1); if (zephir_has_constructor(handler TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, handler, "__construct", NULL, 0); @@ -87300,7 +87322,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -87330,7 +87351,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -87485,7 +87505,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -87517,7 +87536,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, bind) { bindParams = bindParams_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bind", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindParams TSRMLS_CC); @@ -87536,7 +87554,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, bindTypes) { bindTypes = bindTypes_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bindTypes", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindTypes TSRMLS_CC); @@ -87589,7 +87606,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87652,7 +87668,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87689,7 +87704,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87726,7 +87740,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87762,7 +87775,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87823,7 +87835,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87856,7 +87867,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87925,7 +87935,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87996,7 +88005,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88042,7 +88050,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88090,7 +88097,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88100,7 +88106,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -88149,7 +88154,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88159,7 +88163,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -88204,7 +88207,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -88232,7 +88234,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -88260,7 +88261,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -88397,7 +88397,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, cache) { cache = cache_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "cache", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, cache TSRMLS_CC); @@ -88521,7 +88520,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88529,7 +88527,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZVAL_EMPTY_STRING(modelName); } data = data_param; - if (!operator_param) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); @@ -88538,7 +88535,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(operator, operator_param); } else { @@ -88558,7 +88554,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { zephir_check_call_status(); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_1, modelName); - _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _2); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -88622,12 +88618,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 308, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 307, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 309, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 308, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -88938,7 +88934,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88976,7 +88971,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88997,7 +88991,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { if (zephir_array_isset_fetch(&model, _0, _1, 0 TSRMLS_CC)) { if (newInstance) { zephir_fetch_safe_class(_2, modelName); - _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _3); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -89012,7 +89006,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { } if (zephir_class_exists(modelName, 1 TSRMLS_CC)) { zephir_fetch_safe_class(_5, modelName); - _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _6); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -89045,7 +89039,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -89101,7 +89094,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -89150,7 +89142,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89179,7 +89170,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89207,7 +89197,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89371,7 +89360,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -89449,7 +89437,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -89613,7 +89600,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89647,7 +89633,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89690,7 +89676,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89724,7 +89709,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89767,7 +89752,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89802,7 +89786,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89845,7 +89829,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -89856,7 +89839,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89899,9 +89881,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 311, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 310, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89944,7 +89926,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -89955,7 +89936,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -89993,7 +89973,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90004,7 +89983,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90042,7 +90020,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90053,7 +90030,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90091,7 +90067,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90102,7 +90077,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90139,7 +90113,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90150,7 +90123,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -90212,12 +90184,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1128); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1130 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1130); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -90244,12 +90216,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1149); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1151 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1151); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -90277,12 +90249,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } else { if (Z_TYPE_P(findParamsTwo) == IS_STRING) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1174); + zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1176 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", findParamsTwo); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1176); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } } @@ -90308,7 +90280,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90362,7 +90333,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", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 312, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 311, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -90427,10 +90398,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 312, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 311, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 312, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 311, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); @@ -90504,7 +90475,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90515,7 +90485,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -90544,7 +90513,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90555,7 +90523,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -90589,7 +90556,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90600,7 +90566,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90648,7 +90613,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90659,7 +90623,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90707,7 +90670,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90718,7 +90680,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90874,7 +90835,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90945,7 +90905,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(first, first_param); } else { @@ -90956,7 +90915,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(second, second_param); } else { @@ -91010,7 +90968,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -91054,7 +91011,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -91170,7 +91126,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -91342,7 +91297,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -91382,7 +91336,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -91415,7 +91368,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -91495,7 +91447,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_mvc_model_message_ce); zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); @@ -91927,16 +91878,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMapIndex) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 374); @@ -91949,16 +91900,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 391); @@ -91971,16 +91922,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 2); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 408); @@ -91993,16 +91944,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 3); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 425); @@ -92015,16 +91966,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 4); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 442); @@ -92037,16 +91988,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 5); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 5); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 459); @@ -92059,16 +92010,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, _0; + zval *model, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 8); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 8); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, _0); zephir_check_call_status(); RETURN_MM(); @@ -92077,16 +92028,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 9); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 9); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 491); @@ -92099,16 +92050,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 508); @@ -92121,16 +92072,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 525); @@ -92144,7 +92095,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92152,9 +92103,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92164,7 +92115,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92172,9 +92123,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92184,7 +92135,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92192,9 +92143,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92203,16 +92154,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 578); @@ -92225,16 +92176,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDefaultValues) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 12); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 12); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 595); @@ -92248,16 +92199,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { @@ -92275,16 +92226,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getReverseColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { @@ -92597,9 +92548,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, __construct) { _0 = zephir_array_isset_string_fetch(&enableImplicitJoins, options, SS("enable_implicit_joins"), 0 TSRMLS_CC); } if (_0) { - zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), (ZEPHIR_IS_TRUE(enableImplicitJoins)) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (ZEPHIR_IS_TRUE(enableImplicitJoins)) { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { - zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), (ZEPHIR_GLOBAL(orm).enable_implicit_joins) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (ZEPHIR_GLOBAL(orm).enable_implicit_joins) { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -92657,7 +92616,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setUniqueRow) { uniqueRow = zephir_get_boolval(uniqueRow_param); - zephir_update_property_this(this_ptr, SL("_uniqueRow"), uniqueRow ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (uniqueRow) { + zephir_update_property_this(this_ptr, SL("_uniqueRow"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_uniqueRow"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -92684,7 +92647,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { expr = expr_param; - ZEPHIR_OBS_VAR(columnName); zephir_array_fetch_string(&columnName, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 196 TSRMLS_CC); ZEPHIR_OBS_VAR(sqlColumnAliases); @@ -92862,14 +92824,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { argument = argument_param; - zephir_array_fetch_string(&_0, argument, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 336 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 352)) { zephir_create_array(return_value, 1, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("all"), 1); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 318, argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 317, argument); zephir_check_call_status(); RETURN_MM(); @@ -92890,7 +92851,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { expr = expr_param; - ZEPHIR_INIT_VAR(whenClauses); array_init(whenClauses); zephir_array_fetch_string(&_0, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 350 TSRMLS_CC); @@ -92905,11 +92865,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("when"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 354 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_8, whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 355 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _8); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _8); zephir_check_call_status(); zephir_array_update_string(&_4, SL("then"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 356); @@ -92918,7 +92878,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("else"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 360 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 361); @@ -92927,7 +92887,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("case"), 1); zephir_array_fetch_string(&_6, expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 367 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&return_value, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -92950,7 +92910,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { expr = expr_param; - ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, expr, SS("arguments"), 0 TSRMLS_CC)) { if (zephir_array_isset_string(expr, SS("distinct"))) { @@ -92967,13 +92926,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, argument); zephir_check_call_status(); zephir_array_append(&functionArgs, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 391); } } else { zephir_create_array(functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, arguments); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, arguments); zephir_check_call_status(); zephir_array_fast_append(functionArgs, _3); } @@ -93011,10 +92970,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { HashTable *_14; HashPosition _13; - zephir_fcall_cache_entry *_0 = NULL, *_1 = NULL; + zephir_fcall_cache_entry *_1 = NULL, *_2 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool quoting, tempNotQuoting; - zval *expr, *quoting_param = NULL, *exprType, *exprLeft, *exprRight, *left = NULL, *right = NULL, *listItems, *exprListItem = NULL, *exprReturn = NULL, *value = NULL, *escapedValue = NULL, *exprValue = NULL, *valueParts, *name, *bindType, *bind, *_2 = NULL, *_3 = NULL, *_4, _5, _6, *_7 = NULL, *_8 = NULL, *_9, *_10 = NULL, *_11, *_12 = NULL, **_15; + zval *expr, *quoting_param = NULL, *exprType, *exprLeft, *exprRight, *left = NULL, *right = NULL, *listItems, *exprListItem = NULL, *exprReturn = NULL, *value = NULL, *escapedValue = NULL, *exprValue = NULL, *valueParts, *name, *bindType, *bind, *_0 = NULL, *_3 = NULL, *_4, _5, _6, *_7 = NULL, *_8 = NULL, *_9, *_10 = NULL, *_11, *_12 = NULL, **_15; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &expr, "ing_param); @@ -93036,12 +92995,24 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { if (!ZEPHIR_IS_LONG(exprType, 409)) { ZEPHIR_OBS_VAR(exprLeft); if (zephir_array_isset_string_fetch(&exprLeft, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 318, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (tempNotQuoting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 317, exprLeft, _0); zephir_check_call_status(); } ZEPHIR_OBS_VAR(exprRight); if (zephir_array_isset_string_fetch(&exprRight, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 318, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (tempNotQuoting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 317, exprRight, _0); zephir_check_call_status(); } } @@ -93119,7 +93090,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 320, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_2, 319, expr); zephir_check_call_status(); break; } @@ -93205,9 +93176,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("literal"), 1); - ZEPHIR_OBS_VAR(_2); - zephir_array_fetch_string(&_2, expr, SL("value"), PH_NOISY, "phalcon/mvc/model/query.zep", 535 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_OBS_VAR(_3); + zephir_array_fetch_string(&_3, expr, SL("value"), PH_NOISY, "phalcon/mvc/model/query.zep", 535 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 333)) { @@ -93249,14 +93220,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("placeholder"), 1); - ZEPHIR_INIT_VAR(_3); + ZEPHIR_INIT_NVAR(_0); zephir_array_fetch_string(&_4, expr, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 565 TSRMLS_CC); ZEPHIR_SINIT_VAR(_5); ZVAL_STRING(&_5, "?", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ":", 0); - zephir_fast_str_replace(&_3, &_5, &_6, _4 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); + zephir_fast_str_replace(&_0, &_5, &_6, _4 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_0, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 274)) { @@ -93281,9 +93252,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { zephir_array_fetch_long(&bindType, valueParts, 1, PH_NOISY, "phalcon/mvc/model/query.zep", 578 TSRMLS_CC); do { if (ZEPHIR_IS_STRING(bindType, "str")) { - ZEPHIR_INIT_NVAR(_3); - ZVAL_LONG(_3, 2); - zephir_update_property_array(this_ptr, SL("_bindTypes"), name, _3 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_0); + ZVAL_LONG(_0, 2); + zephir_update_property_array(this_ptr, SL("_bindTypes"), name, _0 TSRMLS_CC); ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("placeholder"), 1); @@ -93558,18 +93529,18 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("literal"), 1); - ZEPHIR_OBS_NVAR(_2); - zephir_array_fetch_string(&_2, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 710 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_OBS_NVAR(_3); + zephir_array_fetch_string(&_3, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 710 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 321, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 320, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 322, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 321, expr); zephir_check_call_status(); break; } @@ -93577,20 +93548,20 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("select"), 1); - ZEPHIR_INIT_NVAR(_3); - ZVAL_BOOL(_3, 1); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 323, expr, _3); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, 1); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 322, expr, _0); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_12, PH_COPY | PH_SEPARATE); break; } - ZEPHIR_INIT_NVAR(_3); - object_init_ex(_3, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_NVAR(_0); + object_init_ex(_0, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "Unknown expression type ", exprType); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model/query.zep", 726 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/model/query.zep", 726 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -93598,7 +93569,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SS("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 320, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_2, 319, expr); zephir_check_call_status(); RETURN_MM(); } @@ -93611,7 +93582,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ; zephir_hash_move_forward_ex(_14, &_13) ) { ZEPHIR_GET_HVALUE(exprListItem, _15); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 318, exprListItem); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_1, 317, exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, _12, PH_SEPARATE, "phalcon/mvc/model/query.zep", 745); } @@ -93640,7 +93611,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { column = column_param; - ZEPHIR_OBS_VAR(columnType); if (!(zephir_array_isset_string_fetch(&columnType, column, SS("type"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Corrupted SELECT AST", "phalcon/mvc/model/query.zep", 764); @@ -93733,7 +93703,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("scalar"), 1); ZEPHIR_OBS_VAR(columnData); zephir_array_fetch_string(&columnData, column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 871 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 318, columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 317, columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(balias); if (zephir_array_isset_string_fetch(&balias, sqlExprColumn, SS("balias"), 0 TSRMLS_CC)) { @@ -93904,7 +93874,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { 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)) { zephir_get_strval(joinType, joinType_param); } else { @@ -93931,7 +93900,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_4); @@ -93939,7 +93908,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_fast_append(sqlJoinConditions, _0); @@ -93975,7 +93944,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_4); @@ -93983,7 +93952,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, _0, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1076); @@ -94066,7 +94035,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_8, SS("type"), 355); zephir_array_update_string(&_8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _8); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_10); @@ -94074,7 +94043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_10, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_10, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _10); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _10); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7, PH_COPY | PH_SEPARATE); } @@ -94096,7 +94065,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_12, SS("type"), 355); zephir_array_update_string(&_12, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _12); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _12); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_13); @@ -94104,7 +94073,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_13, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_13, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_13, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _13); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _13); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -94125,7 +94094,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_14, SS("type"), 355); zephir_array_update_string(&_14, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _14); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _14); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_15); @@ -94133,7 +94102,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_15, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_15, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _15); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _15); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -94209,7 +94178,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 324, manager, joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 323, 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", 1315 TSRMLS_CC); @@ -94223,7 +94192,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", &_4, 325, joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 324, joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, joinItem, SS("alias"), 0 TSRMLS_CC)) { @@ -94291,7 +94260,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_GET_HVALUE(joinItem, _11); ZEPHIR_OBS_NVAR(joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, joinItem, SS("conditions"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 318, joinExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 317, joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, joinAliasName, &_12, PH_COPY | PH_SEPARATE); } @@ -94388,10 +94357,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 326, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 325, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 327, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 326, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } if (zephir_array_isset_long(sqlJoin, 0)) { @@ -94462,7 +94431,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1625 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 318, _3); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 317, _3); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, orderItem, SS("sort"), 1 TSRMLS_CC)) { ZEPHIR_INIT_NVAR(orderPartSort); @@ -94505,7 +94474,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { group = group_param; - ZEPHIR_INIT_VAR(groupParts); if (zephir_array_isset_long(group, 0)) { array_init(groupParts); @@ -94515,13 +94483,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(groupItem, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, groupItem); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1659); } } else { zephir_create_array(groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, group); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, group); zephir_check_call_status(); zephir_array_fast_append(groupParts, _3); } @@ -94534,26 +94502,27 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { zephir_fcall_cache_entry *_1 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval *limitClause_param = NULL, *number, *offset, *_0 = NULL; - zval *limitClause = NULL, *limit; + zval *limitClause = NULL, *limit = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &limitClause_param); limitClause = limitClause_param; - ZEPHIR_INIT_VAR(limit); array_init(limit); + ZEPHIR_INIT_NVAR(limit); + array_init(limit); ZEPHIR_OBS_VAR(number); if (zephir_array_isset_string_fetch(&number, limitClause, SS("number"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, number); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(offset); if (zephir_array_isset_string_fetch(&offset, limitClause, SS("offset"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, offset); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_0, PH_COPY | PH_SEPARATE); } @@ -94876,12 +94845,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", &_32, 328, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, 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", &_32, 328, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(sqlJoins); @@ -94897,7 +94866,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { ; zephir_hash_move_forward_ex(_34, &_33) ) { ZEPHIR_GET_HVALUE(column, _35); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 329, column); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 328, column); zephir_check_call_status(); zephir_is_iterable(_3, &_38, &_37, 0, 0, "phalcon/mvc/model/query.zep", 1997); for ( @@ -94946,31 +94915,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 318, where); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 317, where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SS("groupBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 330, groupBy); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 329, groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(having); if (zephir_array_isset_string_fetch(&having, ast, SS("having"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 318, having); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 317, having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(order); if (zephir_array_isset_string_fetch(&order, ast, SS("orderBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 331, order); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 330, order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_41, PH_COPY | PH_SEPARATE); } @@ -94991,13 +94960,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { - zephir_fcall_cache_entry *_9 = NULL, *_13 = NULL, *_16 = NULL; + zephir_fcall_cache_entry *_9 = NULL, *_13 = NULL, *_17 = NULL; zval *_7 = NULL; HashTable *_5, *_11; HashPosition _4, _10; int ZEPHIR_LAST_CALL_STATUS; zend_bool notQuoting; - zval *ast, *qualifiedName, *nsAlias, *manager, *modelName, *model = NULL, *source = NULL, *schema = NULL, *exprValues, *exprValue = NULL, *sqlInsert, *metaData, *fields, *sqlFields, *field = NULL, *name = NULL, *realModelName = NULL, *_0 = NULL, *_1, *_2, *_3 = NULL, **_6, *_8 = NULL, **_12, *_14, *_15 = NULL; + zval *ast, *qualifiedName, *nsAlias, *manager, *modelName, *model = NULL, *source = NULL, *schema = NULL, *exprValues, *exprValue = NULL, *sqlInsert, *metaData, *fields, *sqlFields, *field = NULL, *name = NULL, *realModelName = NULL, *_0 = NULL, *_1, *_2, *_3 = NULL, **_6, *_8 = NULL, **_12, *_14 = NULL, *_15, *_16 = NULL; ZEPHIR_MM_GROW(); @@ -95062,7 +95031,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_OBS_NVAR(_8); zephir_array_fetch_string(&_8, exprValue, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2110 TSRMLS_CC); zephir_array_update_string(&_7, SL("type"), &_8, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 318, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_3); + if (notQuoting) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 317, exprValue, _3); zephir_check_call_status(); zephir_array_update_string(&_7, SL("value"), &_0, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, _7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2112); @@ -95088,14 +95063,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_CALL_METHOD(&_0, metaData, "hasattribute", &_13, 0, model, name); zephir_check_call_status(); if (!(zephir_is_true(_0))) { - ZEPHIR_INIT_NVAR(_3); - object_init_ex(_3, phalcon_mvc_model_exception_ce); - _14 = zephir_fetch_nproperty_this(this_ptr, SL("_phql"), PH_NOISY_CC); - ZEPHIR_INIT_LNVAR(_15); - ZEPHIR_CONCAT_SVSVSV(_15, "The model '", modelName, "' doesn't have the attribute '", name, "', when preparing: ", _14); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_16, 9, _15); + ZEPHIR_INIT_NVAR(_14); + object_init_ex(_14, phalcon_mvc_model_exception_ce); + _15 = zephir_fetch_nproperty_this(this_ptr, SL("_phql"), PH_NOISY_CC); + ZEPHIR_INIT_LNVAR(_16); + ZEPHIR_CONCAT_SVSVSV(_16, "The model '", modelName, "' doesn't have the attribute '", name, "', when preparing: ", _15); + ZEPHIR_CALL_METHOD(NULL, _14, "__construct", &_17, 9, _16); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model/query.zep", 2130 TSRMLS_CC); + zephir_throw_exception_debug(_14, "phalcon/mvc/model/query.zep", 2130 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -95116,7 +95091,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { HashTable *_1, *_10; HashPosition _0, _9; zend_bool notQuoting; - zval *ast, *update, *tables, *values, *modelsInstances, *models, *sqlTables, *sqlAliases, *sqlAliasesModelsInstances, *updateTables = NULL, *nsAlias = NULL, *realModelName = NULL, *completeSource = NULL, *sqlModels, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *alias = NULL, *sqlFields, *sqlValues, *updateValues = NULL, *updateValue = NULL, *exprColumn = NULL, *sqlUpdate, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, **_11, *_14 = NULL, *_15 = NULL, _16; + zval *ast, *update, *tables, *values, *modelsInstances, *models, *sqlTables, *sqlAliases, *sqlAliasesModelsInstances, *updateTables = NULL, *nsAlias = NULL, *realModelName = NULL, *completeSource = NULL, *sqlModels, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *alias = NULL, *sqlFields, *sqlValues, *updateValues = NULL, *updateValue = NULL, *exprColumn = NULL, *sqlUpdate, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, **_11, *_14 = NULL, *_15 = NULL, *_16 = NULL; ZEPHIR_MM_GROW(); @@ -95237,7 +95212,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_4, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2260 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 318, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_7); + if (notQuoting) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 317, _4, _7); zephir_check_call_status(); zephir_array_append(&sqlFields, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2260); ZEPHIR_OBS_NVAR(exprColumn); @@ -95247,7 +95228,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_NVAR(_14); zephir_array_fetch_string(&_14, exprColumn, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2263 TSRMLS_CC); zephir_array_update_string(&_13, SL("type"), &_14, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_16); + if (notQuoting) { + ZVAL_BOOL(_16, 1); + } else { + ZVAL_BOOL(_16, 0); + } + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, exprColumn, _16); zephir_check_call_status(); zephir_array_update_string(&_13, SL("value"), &_15, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, _13, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2265); @@ -95260,15 +95247,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { zephir_array_update_string(&sqlUpdate, SL("values"), &sqlValues, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_SINIT_VAR(_16); - ZVAL_BOOL(&_16, 1); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, where, &_16); + ZEPHIR_INIT_NVAR(_7); + ZVAL_BOOL(_7, 1); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, where, _7); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_15, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_15, PH_COPY | PH_SEPARATE); } @@ -95282,7 +95269,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { int ZEPHIR_LAST_CALL_STATUS; HashTable *_1; HashPosition _0; - zval *ast, *delete, *tables, *models, *modelsInstances, *sqlTables, *sqlModels, *sqlAliases, *sqlAliasesModelsInstances, *deleteTables = NULL, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *nsAlias = NULL, *realModelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *completeSource = NULL, *alias = NULL, *sqlDelete, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, _9, *_10 = NULL; + zval *ast, *delete, *tables, *models, *modelsInstances, *sqlTables, *sqlModels, *sqlAliases, *sqlAliasesModelsInstances, *deleteTables = NULL, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *nsAlias = NULL, *realModelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *completeSource = NULL, *alias = NULL, *sqlDelete, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, *_9 = NULL; ZEPHIR_MM_GROW(); @@ -95385,17 +95372,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { zephir_array_update_string(&sqlDelete, SL("models"), &sqlModels, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_SINIT_VAR(_9); - ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 318, where, &_9); + ZEPHIR_INIT_NVAR(_7); + ZVAL_BOOL(_7, 1); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 317, where, _7); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); - zephir_array_update_string(&sqlDelete, SL("limit"), &_10, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&sqlDelete, SL("limit"), &_9, PH_COPY | PH_SEPARATE); } RETURN_CCTOR(sqlDelete); @@ -95441,22 +95428,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 323); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 322); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 333); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 332); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 334); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 333); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 335); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 334); zephir_check_call_status(); break; } @@ -95843,12 +95830,18 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { isKeepingSnapshots = zephir_get_boolval(_40); } object_init_ex(return_value, phalcon_mvc_model_resultset_simple_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_4); + if (isKeepingSnapshots) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 335, simpleColumnMap, resultObject, resultData, cache, _4); 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, 337, columns1, resultData, cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, columns1, resultData, cache); zephir_check_call_status(); RETURN_MM(); @@ -96008,7 +96001,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_15, insertModel, "create", NULL, 0, insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 338, _15, insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 337, _15, insertModel); zephir_check_call_status(); RETURN_MM(); @@ -96139,13 +96132,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_array_update_zval(&updateValues, fieldName, &updateValue, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, model, intermediate, selectBindParams, selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); } @@ -96178,7 +96171,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11, record); zephir_check_call_status(); RETURN_MM(); } @@ -96189,7 +96182,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); @@ -96222,13 +96215,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, _1, "load", NULL, 0, modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); } @@ -96261,7 +96254,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2, record); zephir_check_call_status(); RETURN_MM(); } @@ -96272,7 +96265,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); @@ -96320,18 +96313,18 @@ 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, 340); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 339); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 341, _5); + ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 340, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 309); - ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 342, _2); + ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 341, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 343, selectIr); + ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 342, selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 344, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -96413,7 +96406,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { if (Z_TYPE_P(defaultBindParams) == IS_ARRAY) { if (Z_TYPE_P(bindParams) == IS_ARRAY) { ZEPHIR_INIT_VAR(mergedParams); - zephir_add_function_ex(mergedParams, defaultBindParams, bindParams TSRMLS_CC); + zephir_add_function(mergedParams, defaultBindParams, bindParams); } else { ZEPHIR_CPY_WRT(mergedParams, defaultBindParams); } @@ -96425,7 +96418,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { if (Z_TYPE_P(defaultBindTypes) == IS_ARRAY) { if (Z_TYPE_P(bindTypes) == IS_ARRAY) { ZEPHIR_INIT_VAR(mergedTypes); - zephir_add_function_ex(mergedTypes, defaultBindTypes, bindTypes TSRMLS_CC); + zephir_add_function(mergedTypes, defaultBindTypes, bindTypes); } else { ZEPHIR_CPY_WRT(mergedTypes, defaultBindTypes); } @@ -96452,22 +96445,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property_this(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 345, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 344, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 346, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 345, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 347, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 346, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 348, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 347, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } @@ -96522,7 +96515,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 344, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -96564,7 +96557,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindParams) { zephir_fetch_params(1, 1, 1, &bindParams_param, &merge_param); bindParams = bindParams_param; - if (!merge_param) { merge = 0; } else { @@ -96576,7 +96568,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindParams) { currentBindParams = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); if (Z_TYPE_P(currentBindParams) == IS_ARRAY) { ZEPHIR_INIT_VAR(_0); - zephir_add_function_ex(_0, currentBindParams, bindParams TSRMLS_CC); + zephir_add_function(_0, currentBindParams, bindParams); zephir_update_property_this(this_ptr, SL("_bindParams"), _0 TSRMLS_CC); } else { zephir_update_property_this(this_ptr, SL("_bindParams"), bindParams TSRMLS_CC); @@ -96605,7 +96597,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindTypes) { zephir_fetch_params(1, 1, 1, &bindTypes_param, &merge_param); bindTypes = bindTypes_param; - if (!merge_param) { merge = 0; } else { @@ -96617,7 +96608,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindTypes) { currentBindTypes = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); if (Z_TYPE_P(currentBindTypes) == IS_ARRAY) { ZEPHIR_INIT_VAR(_0); - zephir_add_function_ex(_0, currentBindTypes, bindTypes TSRMLS_CC); + zephir_add_function(_0, currentBindTypes, bindTypes); zephir_update_property_this(this_ptr, SL("_bindTypes"), _0 TSRMLS_CC); } else { zephir_update_property_this(this_ptr, SL("_bindTypes"), bindTypes TSRMLS_CC); @@ -96646,7 +96637,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setIntermediate) { intermediate = intermediate_param; - zephir_update_property_this(this_ptr, SL("_intermediate"), intermediate TSRMLS_CC); RETURN_THISW(); @@ -96682,7 +96672,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getCacheOptions) { static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { int ZEPHIR_LAST_CALL_STATUS; - zval *intermediate = NULL, *_0, *_1, *_2, _3; + zval *intermediate = NULL, *_0, *_1, *_2, *_3; ZEPHIR_MM_GROW(); @@ -96692,9 +96682,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { if (ZEPHIR_IS_LONG(_0, 309)) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); - ZEPHIR_SINIT_VAR(_3); - ZVAL_BOOL(&_3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 345, intermediate, _1, _2, &_3); + ZEPHIR_INIT_VAR(_3); + ZVAL_BOOL(_3, 1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 344, intermediate, _1, _2, _3); zephir_check_call_status(); RETURN_MM(); } @@ -96802,7 +96792,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -96835,7 +96824,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -96898,7 +96886,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -97200,14 +97187,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, __construct) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0, _1; + zval *_0, *_1; ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pointer"), PH_NOISY_CC); - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, (zephir_get_numberval(_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, (zephir_get_numberval(_0) + 1)); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97241,13 +97228,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, key) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { int ZEPHIR_LAST_CALL_STATUS; - zval _0; + zval *_0; ZEPHIR_MM_GROW(); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97356,25 +97343,24 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { - zval *index_param = NULL, *_0, _1; + zval *index_param = NULL, *_0, *_1; int index, ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - index = Z_LVAL_P(index_param); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_count"), PH_NOISY_CC); if (ZEPHIR_GT_LONG(_0, index)) { - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, index); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97434,7 +97420,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0, _1; + zval *_0, *_1; ZEPHIR_MM_GROW(); @@ -97442,9 +97428,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { if (ZEPHIR_IS_LONG(_0, 0)) { RETURN_MM_BOOL(0); } - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, 0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97455,7 +97441,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { int ZEPHIR_LAST_CALL_STATUS; - zval *count, _0; + zval *count, *_0; ZEPHIR_MM_GROW(); @@ -97464,9 +97450,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { if (ZEPHIR_IS_LONG(count, 0)) { RETURN_MM_BOOL(0); } - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, (zephir_get_numberval(count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, (zephir_get_numberval(count) - 1)); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97484,7 +97470,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh) { isFresh = zephir_get_boolval(isFresh_param); - zephir_update_property_this(this_ptr, SL("_isFresh"), isFresh ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isFresh) { + zephir_update_property_this(this_ptr, SL("_isFresh"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_isFresh"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -97698,7 +97688,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, filter) { _0->funcs->get_current_data(_0, &ZEPHIR_TMP_ITERATOR_PTR TSRMLS_CC); ZEPHIR_CPY_WRT(record, (*ZEPHIR_TMP_ITERATOR_PTR)); } - zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/resultset.zep", 546); + zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(processedRecord); ZEPHIR_CALL_USER_FUNC_ARRAY(processedRecord, filter, parameters); zephir_check_call_status(); @@ -97876,7 +97866,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -98084,7 +98073,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 355, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 354, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -98103,7 +98092,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 356); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 355); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); @@ -98127,7 +98116,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, setIsNewTransaction) { isNew = zephir_get_boolval(isNew_param); - zephir_update_property_this(this_ptr, SL("_isNewTransaction"), isNew ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isNew) { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -98141,7 +98134,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, setRollbackOnAbort) { rollbackOnAbort = zephir_get_boolval(rollbackOnAbort_param); - zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), rollbackOnAbort ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (rollbackOnAbort) { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -98268,7 +98265,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_ValidationFailed, __construct) { validationMessages = validationMessages_param; - if (zephir_fast_count_int(validationMessages TSRMLS_CC) > 0) { ZEPHIR_OBS_VAR(message); zephir_array_fetch_long(&message, validationMessages, 0, PH_NOISY, "phalcon/mvc/model/validationfailed.zep", 51 TSRMLS_CC); @@ -98337,7 +98333,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, __construct) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); } @@ -98355,7 +98350,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -98417,7 +98411,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -98451,7 +98444,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -98549,7 +98541,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -98647,7 +98638,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -98673,7 +98663,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -98777,7 +98767,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98811,7 +98800,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98891,7 +98879,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98930,7 +98917,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98949,7 +98935,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, "callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 377, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -118993,7 +118963,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { zephir_fetch_params(1, 2, 0, &test_param, &left_param); test = test_param; - zephir_get_strval(left, left_param); @@ -119034,28 +119003,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -119074,7 +119043,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_fetch_params(1, 2, 0, &filter_param, &left_param); filter = filter_param; - zephir_get_strval(left, left_param); @@ -119126,12 +119094,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); - Z_UNSET_ISREF_P(funcArguments); + ZEPHIR_MAKE_REF(funcArguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, funcArguments, _4); + ZEPHIR_UNREF(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 377, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -119146,7 +119114,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -119331,7 +119299,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { expr = expr_param; - ZEPHIR_INIT_VAR(exprCode); ZVAL_NULL(exprCode); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("_exprLevel") TSRMLS_CC)); @@ -119344,7 +119311,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 378, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -119362,7 +119329,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -119384,7 +119351,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 377, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -119395,13 +119362,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 381, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 377, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -119577,7 +119544,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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 377, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -119585,7 +119552,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 377, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -119677,7 +119644,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -119750,7 +119717,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 382, statements); zephir_check_call_status(); RETURN_MM(); } @@ -119766,14 +119733,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, *_12, *_13 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -119798,7 +119764,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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, 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", 1369 TSRMLS_CC); @@ -119828,7 +119794,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (extendsMode) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 382, blockStatements, _5); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -119836,27 +119808,27 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_SVSVS(_4, "length = count($", prefixLevel, "iterator); "); + ZEPHIR_CONCAT_SVS(_7, "$", prefixLevel, "loop = new stdClass(); "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_VAR(_8); - ZEPHIR_CONCAT_SVS(_8, "$", prefixLevel, "loop->index = 1; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->length = count($", prefixLevel, "iterator); "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index0 = 1; "); + ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index = 1; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); + ZEPHIR_CONCAT_SVS(_10, "$", prefixLevel, "loop->index0 = 1; "); zephir_concat_self(&compilation, _10 TSRMLS_CC); ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); zephir_concat_self(&compilation, _11 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVSVS(_12, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + zephir_concat_self(&compilation, _12 TSRMLS_CC); ZEPHIR_INIT_VAR(iterator); ZEPHIR_CONCAT_SVS(iterator, "$", prefixLevel, "iterator"); } else { @@ -119866,48 +119838,48 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_array_fetch_string(&variable, statement, SL("variable"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1424 TSRMLS_CC); ZEPHIR_OBS_VAR(key); if (zephir_array_isset_string_fetch(&key, statement, SS("key"), 0 TSRMLS_CC)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, " $", variable, ") { "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVSVSVS(_6, " $", variable, ") { "); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, "if (", _13, ") { ?>"); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("?>") TSRMLS_CC); } if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, "first = ($", prefixLevel, "incr == 0); "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_6); - ZEPHIR_CONCAT_SVSVS(_6, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); + ZEPHIR_CONCAT_SVSVS(_6, "first = ($", prefixLevel, "incr == 0); "); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); - ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_8); - ZEPHIR_CONCAT_SVSVSVS(_8, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); + ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); zephir_concat_self(&compilation, _10 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVSVS(_11, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + zephir_concat_self(&compilation, _11 TSRMLS_CC); } if (Z_TYPE_P(forElse) == IS_STRING) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } zephir_concat_self(&compilation, code TSRMLS_CC); if (zephir_array_isset_string(statement, SS("if_expr"))) { @@ -119917,9 +119889,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } else { if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } @@ -119951,17 +119923,16 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForElse) { static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { - zephir_fcall_cache_entry *_3 = NULL; + zephir_fcall_cache_entry *_4 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_4 = NULL, *_5; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_3, *_5 = NULL, *_6, *_7; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -119974,20 +119945,32 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_3); + if (extendsMode) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 382, _2, _3); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (extendsMode) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_statementlist", &_4, 382, blockStatements, _6); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SV(_5, "", _4); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, "", _5); + zephir_concat_self(&compilation, _7 TSRMLS_CC); } zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); RETURN_CCTOR(compilation); @@ -120006,13 +119989,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120024,14 +120006,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7, *_8; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -120044,9 +120025,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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -120076,16 +120057,22 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_7); + if (extendsMode) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 382, _3, _7); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); if (zephir_array_isset_string_fetch(&lifetime, statement, SS("lifetime"), 0 TSRMLS_CC)) { zephir_array_fetch_string(&_4, lifetime, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1599 TSRMLS_CC); if (ZEPHIR_IS_LONG(_4, 265)) { - zephir_array_fetch_string(&_7, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); + zephir_array_fetch_string(&_8, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _7, "); "); + ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _8, "); "); zephir_concat_self(&compilation, _5 TSRMLS_CC); } else { zephir_array_fetch_string(&_4, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1602 TSRMLS_CC); @@ -120120,7 +120107,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { statement = statement_param; - ZEPHIR_OBS_VAR(assignments); if (!(zephir_array_isset_string_fetch(&assignments, statement, SS("assignments"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1623); @@ -120135,10 +120121,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 377, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 377, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -120190,13 +120176,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120215,13 +120200,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileReturn) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120232,14 +120216,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0; + zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0, *_1; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -120252,7 +120235,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 382, _0, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -120271,13 +120260,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -120313,7 +120301,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { statement = statement_param; - ZEPHIR_OBS_VAR(pathExpr); if (!(zephir_array_isset_string_fetch(&pathExpr, statement, SS("path"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1799); @@ -120351,14 +120338,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 377, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 377, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -120372,14 +120359,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1 = NULL, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -120439,7 +120425,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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 377, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -120455,7 +120441,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 382, blockStatements, _1); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 416, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134510,7 +134584,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 417, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134612,7 +134686,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromResultset) { ZEPHIR_INIT_NVAR(params); array_init(params); } - zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE, "phalcon/tag/select.zep", 218); + zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(_4); ZEPHIR_CALL_USER_FUNC_ARRAY(_4, using, params); zephir_check_call_status(); @@ -134648,12 +134722,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 417, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134728,7 +134802,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, __construct) { options = options_param; - ZEPHIR_OBS_VAR(interpolator); if (!(zephir_array_isset_string_fetch(&interpolator, options, SS("interpolator"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(interpolator); @@ -134770,7 +134843,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134801,7 +134873,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134845,7 +134916,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134886,7 +134956,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134916,7 +134985,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135046,8 +135114,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, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 426, 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", 43); @@ -135060,7 +135127,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 427, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -135082,7 +135149,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -135096,7 +135163,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 428, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135138,7 +135205,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135173,7 +135239,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135253,8 +135318,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { options = options_param; - - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135275,7 +135339,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135287,22 +135350,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 420, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 429, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 430, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135324,7 +135387,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135352,7 +135414,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid1, msgid1_param); } else { @@ -135363,7 +135424,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid2, msgid2_param); } else { @@ -135371,10 +135431,9 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZVAL_EMPTY_STRING(msgid2); } if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - count = Z_LVAL_P(count_param); if (!placeholders) { placeholders = ZEPHIR_GLOBAL(global_null); @@ -135387,7 +135446,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135397,15 +135455,15 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { } - if (!(domain && Z_STRLEN_P(domain))) { + if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 431, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 432, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135427,7 +135485,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135436,7 +135493,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, domain); zephir_check_call_status(); RETURN_MM(); @@ -135451,7 +135508,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, _0); zephir_check_call_status(); RETURN_MM(); @@ -135469,7 +135526,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135513,14 +135569,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135553,7 +135609,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { 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)) { zephir_get_strval(locale, locale_param); } else { @@ -135563,7 +135618,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -135576,12 +135631,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 435, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 415, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135613,7 +135668,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, prepareOptions) { options = options_param; - if (!(zephir_array_isset_string(options, SS("locale")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter \"locale\" is required", "phalcon/translate/adapter/gettext.zep", 231); return; @@ -135693,8 +135747,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, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135723,7 +135776,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135758,7 +135810,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135810,7 +135861,6 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135882,7 +135932,6 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135899,9 +135948,9 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde _0 = (zephir_fast_count_int(placeholders TSRMLS_CC)) ? 1 : 0; } if (_0) { - Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, placeholders, translation); - Z_UNSET_ISREF_P(placeholders); + ZEPHIR_MAKE_REF(placeholders); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, placeholders, translation); + ZEPHIR_UNREF(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "sprintf", 0); @@ -135979,7 +136028,6 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -136027,7 +136075,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -136060,7 +136107,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -136093,7 +136139,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setField) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136157,12 +136202,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_validation_message_ce); 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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 436, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136268,7 +136312,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136294,7 +136337,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136320,7 +136362,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136355,7 +136396,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136455,10 +136495,9 @@ 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } - index = Z_LVAL_P(index_param); @@ -136479,10 +136518,9 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { zephir_fetch_params(1, 2, 0, &index_param, &message); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - index = Z_LVAL_P(index_param); @@ -136606,7 +136644,6 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { 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)) { zephir_get_strval(fieldName, fieldName_param); } else { @@ -136753,7 +136790,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136776,7 +136812,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 437, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136809,7 +136845,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136856,7 +136892,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136879,7 +136914,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136912,7 +136947,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136959,7 +136994,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137029,7 +137063,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137075,7 +137109,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137093,7 +137126,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 439, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -137136,7 +137169,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137175,12 +137208,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } @@ -137223,7 +137256,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137234,7 +137266,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, 441, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -137267,7 +137299,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137298,7 +137330,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 441, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -137318,7 +137350,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 442, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -137360,7 +137392,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137383,7 +137414,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 443, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137416,7 +137447,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137463,7 +137494,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137488,7 +137518,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -137521,7 +137551,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137568,7 +137598,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137634,7 +137663,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137685,7 +137714,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137750,7 +137778,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 436, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137790,7 +137818,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -137816,7 +137844,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137853,7 +137881,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137899,7 +137927,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -137909,9 +137937,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -137936,7 +137964,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 436, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137962,12 +137990,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -137998,7 +138026,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138022,7 +138050,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -138083,7 +138111,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138139,7 +138167,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 436, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -138188,7 +138216,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138257,7 +138284,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138304,7 +138331,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138354,7 +138380,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 360, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 359, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -138390,7 +138416,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138437,7 +138463,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138496,7 +138521,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138543,7 +138568,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138589,7 +138613,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138636,7 +138660,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138705,7 +138728,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138753,7 +138776,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138804,7 +138826,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -138839,7 +138861,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 436, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138876,7 +138898,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 436, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138925,7 +138947,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -139017,7 +139038,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -139064,7 +139085,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -139089,7 +139109,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -139122,7 +139142,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/32bits/php_phalcon.h b/build/32bits/php_phalcon.h index 07c26e8d906..4a60e53b947 100644 --- a/build/32bits/php_phalcon.h +++ b/build/32bits/php_phalcon.h @@ -199,7 +199,7 @@ typedef zend_function zephir_fcall_cache_entry; #define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.7.1b" +#define PHP_PHALCON_ZEPVERSION "0.8.0a" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { diff --git a/build/64bits/phalcon.zep.c b/build/64bits/phalcon.zep.c index b651cd1557c..148cef29977 100644 --- a/build/64bits/phalcon.zep.c +++ b/build/64bits/phalcon.zep.c @@ -967,6 +967,7 @@ static int zephir_init_global(char *global, unsigned int global_length TSRMLS_DC static int zephir_get_global(zval **arr, const char *global, unsigned int global_length TSRMLS_DC); static int zephir_is_callable(zval *var TSRMLS_DC); +static int zephir_is_scalar(zval *var); static int zephir_function_exists(const zval *function_name TSRMLS_DC); static int zephir_function_exists_ex(const char *func_name, unsigned int func_len TSRMLS_DC); static int zephir_function_quick_exists_ex(const char *func_name, unsigned int func_len, unsigned long key TSRMLS_DC); @@ -1366,6 +1367,9 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { object_properties_init(object, class_type); \ } +#define ZEPHIR_MAKE_REF(obj) Z_SET_ISREF_P(obj); +#define ZEPHIR_UNREF(obj) Z_UNSET_ISREF_P(obj); + #define ZEPHIR_REGISTER_INTERFACE(ns, classname, lower_ns, name, methods) \ { \ zend_class_entry ce; \ @@ -1449,7 +1453,7 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define ZEPHIR_CHECK_POINTER(v) if (!v) fprintf(stderr, "%s:%d\n", __PRETTY_FUNCTION__, __LINE__); -#define zephir_is_php_version(id) ((PHP_VERSION_ID >= id && PHP_VERSION_ID <= (id + 10000)) ? 1 : 0) +#define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -1775,11 +1779,7 @@ static void zephir_throw_exception_format(zend_class_entry *ce TSRMLS_DC, const #include #include -#if PHP_VERSION_ID < 70000 static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); -#else -static void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent); -#endif 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); @@ -2435,185 +2435,27 @@ typedef enum _zephir_call_type { } while (0) -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - method(0, return_value, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* Saves the if pointer, and called/calling scope */ +#define ZEPHIR_BACKUP_THIS_PTR() \ + zval *old_this_ptr = this_ptr; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, return_value, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_THIS_PTR() ZEPHIR_SET_THIS(old_this_ptr) +#define ZEPHIR_SET_THIS(pzv) EG(This) = pzv; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_BACKUP_SCOPE() \ + zend_class_entry *old_scope = EG(scope); \ + zend_class_entry *old_called_scope = EG(called_scope); -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_SCOPE() \ + EG(called_scope) = old_called_scope; \ + EG(scope) = old_scope; \ -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P4(object, method, p1, p2, p3, p4) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - Z_ADDREF_P(p4); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - Z_DELREF_P(p4); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_SET_SCOPE(_scope, _scope_called) \ + EG(scope) = _scope; \ + EG(called_scope) = _scope_called; \ -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - method(0, rv, rvp, object, 0 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, rv, rvp, object, 0, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, rv, rvp, object, 0, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, rv, rvp, object, 0, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P0(return_value_ptr, object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - method(0, *return_value_ptr, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P1(return_value_ptr, object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P2(return_value_ptr, object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P3(return_value_ptr, object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* End internal calls */ #define ZEPHIR_CALL_METHODW(return_value_ptr, object, method, cache, cache_slot, ...) \ do { \ @@ -3322,12 +3164,12 @@ static int zephir_fclose(zval *stream_zval TSRMLS_DC); static void zephir_make_printable_zval(zval *expr, zval *expr_copy, int *use_copy); +#define zephir_add_function(result, left, right) zephir_add_function_ex(result, left, right TSRMLS_CC) + #if PHP_VERSION_ID < 50400 -#define zephir_sub_function(result, left, right, t) sub_function(result, left, right TSRMLS_CC) -#define zephir_add_function(result, left, right, t) zephir_add_function_ex(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) sub_function(result, left, right TSRMLS_CC) #else -#define zephir_add_function(result, left, right, t) fast_add_function(result, left, right TSRMLS_CC) -#define zephir_sub_function(result, left, right, t) fast_sub_function(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) fast_sub_function(result, left, right TSRMLS_CC) #endif #if PHP_VERSION_ID < 50600 @@ -4098,6 +3940,20 @@ static int zephir_is_callable(zval *var TSRMLS_DC) { return (int) retval; } +static int zephir_is_scalar(zval *var) { + + switch (Z_TYPE_P(var)) { + case IS_BOOL: + case IS_DOUBLE: + case IS_LONG: + case IS_STRING: + return 1; + break; + } + + return 0; +} + 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)) { @@ -5104,8 +4960,6 @@ static void zephir_throw_exception_zval(zend_class_entry *ce, zval *message TSRM #include -#if PHP_VERSION_ID < 70000 - static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) { #if PHP_VERSION_ID < 50400 @@ -5161,42 +5015,6 @@ static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction return SUCCESS; } -#else - -static void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent) -{ - #if ZEND_DEBUG - ht->inconsistent = 0; - #endif - - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->nNumUsed = 0; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->arData = NULL; - ht->arHash = (zend_uint*)&uninitialized_bucket; - ht->pDestructor = pDestructor; - ht->nInternalPointer = INVALID_IDX; - if (persistent) { - ht->u.flags = HASH_FLAG_PERSISTENT | HASH_FLAG_APPLY_PROTECTION; - } else { - ht->u.flags = HASH_FLAG_APPLY_PROTECTION; - } -} - -#endif - - static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) { ulong h; @@ -6571,7 +6389,7 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ 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 (likely(zephir_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 */ @@ -6608,6 +6426,9 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ } } + } else { + EG(scope) = old_scope; + return zephir_update_property_zval(object, property_name, property_length, value TSRMLS_CC); } } @@ -8570,7 +8391,7 @@ static int zephir_call_func_aparams_fast(zval **return_value_ptr, zephir_fcall_c zend_class_entry *calling_scope = NULL; zend_class_entry *called_scope = NULL; zend_execute_data execute_data; - zval ***params, ***params_ptr, ***params_array = NULL; + zval ***params, ***params_array = NULL; zval **static_params_array[10]; zend_class_entry *old_scope = EG(scope); zend_function_state *function_state = &EX(function_state); @@ -10289,7 +10110,7 @@ static void zephir_fast_str_replace(zval **return_value_ptr, zval *search, zval do { zval *params[] = { search, replace, subject }; zval_ptr_dtor(return_value_ptr); - return_value_ptr = NULL; + *return_value_ptr = NULL; zephir_call_func_aparams(return_value_ptr, "str_replace", sizeof("str_replace")-1, NULL, 0, 3, params TSRMLS_CC); return; } while(0); @@ -12600,7 +12421,56 @@ static int zephir_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci static void zephir_eval_php(zval *str, zval *retval_ptr, char *context TSRMLS_DC) { - zend_eval_string_ex(Z_STRVAL_P(str), retval_ptr, context, 1 TSRMLS_CC); + zend_op_array *new_op_array = NULL; + zend_uint original_compiler_options; + zend_op_array *original_active_op_array = EG(active_op_array); + + original_compiler_options = CG(compiler_options); + CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; + new_op_array = zend_compile_string(str, context TSRMLS_CC); + CG(compiler_options) = original_compiler_options; + + if (new_op_array) + { + zval *local_retval_ptr = NULL; + zval **original_return_value_ptr_ptr = EG(return_value_ptr_ptr); + zend_op **original_opline_ptr = EG(opline_ptr); + int orig_interactive = CG(interactive); + + EG(return_value_ptr_ptr) = &local_retval_ptr; + EG(active_op_array) = new_op_array; + EG(no_extensions) = 1; + if (!EG(active_symbol_table)) { + zend_rebuild_symbol_table(TSRMLS_C); + } + CG(interactive) = 0; + + zend_try { + zend_execute(new_op_array TSRMLS_CC); + } zend_catch { + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + zend_bailout(); + } zend_end_try(); + + CG(interactive) = orig_interactive; + if (local_retval_ptr) { + if (retval_ptr) { + COPY_PZVAL_TO_ZVAL(*retval_ptr, local_retval_ptr); + } else { + zval_ptr_dtor(&local_retval_ptr); + } + } else if (retval_ptr) { + INIT_ZVAL(*retval_ptr); + } + + EG(no_extensions) = 0; + EG(opline_ptr) = original_opline_ptr; + EG(active_op_array) = original_active_op_array; + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + EG(return_value_ptr_ptr) = original_return_value_ptr_ptr; + } } @@ -12620,7 +12490,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, mode; + int ret, use_ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -12634,7 +12504,7 @@ static int zephir_require_ret(zval **return_value_ptr, const char *require_path if (!require_path) { /* @TODO, throw an exception here */ return FAILURE; - } + } use_ret = !!return_value_ptr; @@ -13495,7 +13365,11 @@ static int zephir_add_function_ex(zval *result, zval *op1, zval *op2 TSRMLS_DC) int status; int ref_count = Z_REFCOUNT_P(result); int is_ref = Z_ISREF_P(result); +#if PHP_VERSION_ID < 50400 status = add_function(result, op1, op2 TSRMLS_CC); +#else + status = fast_add_function(result, op1, op2 TSRMLS_CC); +#endif Z_SET_REFCOUNT_P(result, ref_count); Z_SET_ISREF_TO_P(result, is_ref); return status; @@ -17727,7 +17601,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 445, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -17797,11 +17671,10 @@ static PHP_METHOD(Phalcon_Config, __construct) { zephir_fetch_params(1, 0, 1, &arrayConfig_param); if (!arrayConfig_param) { - ZEPHIR_INIT_VAR(arrayConfig); - array_init(arrayConfig); + ZEPHIR_INIT_VAR(arrayConfig); + array_init(arrayConfig); } else { arrayConfig = arrayConfig_param; - } @@ -18007,7 +17880,6 @@ static PHP_METHOD(Phalcon_Config, __set_state) { data = data_param; - object_init_ex(return_value, phalcon_config_ce); ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 22, data); zephir_check_call_status(); @@ -18132,10 +18004,9 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } - scheme = Z_LVAL_P(scheme_param); @@ -18158,7 +18029,6 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { 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)) { zephir_get_strval(cipher, cipher_param); } else { @@ -18191,7 +18061,6 @@ static PHP_METHOD(Phalcon_Crypt, setMode) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18224,7 +18093,6 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -18261,7 +18129,6 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18269,16 +18136,14 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZVAL_EMPTY_STRING(mode); } if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a long/integer") TSRMLS_CC); + 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - paddingType = Z_LVAL_P(paddingType_param); ZEPHIR_INIT_VAR(padding); ZVAL_NULL(padding); @@ -18432,7 +18297,6 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18440,16 +18304,14 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_EMPTY_STRING(mode); } if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a long/integer") TSRMLS_CC); + 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - paddingType = Z_LVAL_P(paddingType_param); @@ -18650,7 +18512,6 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18665,7 +18526,6 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -18752,7 +18612,6 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18836,7 +18695,6 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18853,7 +18711,6 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - safe = Z_BVAL_P(safe_param); } @@ -18894,7 +18751,6 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18911,7 +18767,6 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - safe = Z_BVAL_P(safe_param); } @@ -19072,7 +18927,6 @@ static PHP_METHOD(Phalcon_Db, setup) { options = options_param; - ZEPHIR_OBS_VAR(escapeIdentifiers); if (zephir_array_isset_string_fetch(&escapeIdentifiers, options, SS("escapeSqlIdentifiers"), 0 TSRMLS_CC)) { ZEPHIR_GLOBAL(db).escape_identifiers = zend_is_true(escapeIdentifiers); @@ -19135,7 +18989,6 @@ static PHP_METHOD(Phalcon_Debug, setUri) { 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)) { zephir_get_strval(uri, uri_param); } else { @@ -19159,7 +19012,11 @@ static PHP_METHOD(Phalcon_Debug, setShowBackTrace) { showBackTrace = zephir_get_boolval(showBackTrace_param); - zephir_update_property_this(this_ptr, SL("_showBackTrace"), showBackTrace ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showBackTrace) { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19174,7 +19031,11 @@ static PHP_METHOD(Phalcon_Debug, setShowFiles) { showFiles = zephir_get_boolval(showFiles_param); - zephir_update_property_this(this_ptr, SL("_showFiles"), showFiles ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFiles) { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19189,7 +19050,11 @@ static PHP_METHOD(Phalcon_Debug, setShowFileFragment) { showFileFragment = zephir_get_boolval(showFileFragment_param); - zephir_update_property_this(this_ptr, SL("_showFileFragment"), showFileFragment ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFileFragment) { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19355,19 +19220,18 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { static PHP_METHOD(Phalcon_Debug, _getArrayDump) { + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_9 = NULL; HashTable *_2; HashPosition _1; zend_bool _0; - zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL; + zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL; zval *argument = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &argument_param, &n); argument = argument_param; - if (!n) { ZEPHIR_INIT_VAR(n); ZVAL_LONG(n, 0); @@ -19395,47 +19259,45 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); - zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_scalar(v)) { ZEPHIR_INIT_NVAR(varDump); if (ZEPHIR_IS_STRING(v, "")) { ZEPHIR_CONCAT_SVS(varDump, "[", k, "] => (empty string)"); } else { - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_escapestring", &_7, 0, v); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_escapestring", &_5, 0, v); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _6); + ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _4); } zephir_array_append(&dump, varDump, PH_SEPARATE, "phalcon/debug.zep", 178); continue; } if (Z_TYPE_P(v) == IS_ARRAY) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, (zephir_get_numberval(n) + 1)); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_getarraydump", &_7, 154, v, _6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 183); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Array(", _4, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 183); continue; } if (Z_TYPE_P(v) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - zephir_get_class(_8, v, 0 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Object(", _8, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 188); + ZEPHIR_INIT_NVAR(_6); + zephir_get_class(_6, v, 0 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Object(", _6, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 188); continue; } if (Z_TYPE_P(v) == IS_NULL) { - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "[", k, "] => null"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 193); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "[", k, "] => null"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 193); continue; } - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSV(_10, "[", k, "] => ", v); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 197); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "[", k, "] => ", v); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 197); } zephir_fast_join_str(return_value, SL(", "), dump TSRMLS_CC); RETURN_MM(); @@ -19444,18 +19306,16 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { static PHP_METHOD(Phalcon_Debug, _getVarDump) { - zephir_fcall_cache_entry *_2 = NULL; + zephir_fcall_cache_entry *_1 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *variable, *className, *dumpedObject = NULL, *_0 = NULL, *_1 = NULL; + zval *variable, *className, *dumpedObject = NULL, *_0 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &variable); - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); - zephir_check_call_status(); - if (zephir_is_true(_0)) { + if (zephir_is_scalar(variable)) { if (Z_TYPE_P(variable) == IS_BOOL) { if (zephir_is_true(variable)) { RETURN_MM_STRING("true", 1); @@ -19477,9 +19337,9 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { if ((zephir_method_exists_ex(variable, SS("dump") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&dumpedObject, variable, "dump", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 0, dumpedObject); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 0, dumpedObject); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _1, ")"); + ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _0, ")"); RETURN_MM(); } else { ZEPHIR_CONCAT_SVS(return_value, "Object(", className, ")"); @@ -19487,9 +19347,9 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 154, variable); zephir_check_call_status(); - ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); + ZEPHIR_CONCAT_SVS(return_value, "Array(", _0, ")"); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_NULL) { @@ -19508,7 +19368,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -19527,7 +19387,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -19593,7 +19453,6 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { trace = trace_param; - ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, n); ZEPHIR_INIT_VAR(_1); @@ -19621,7 +19480,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -19654,9 +19513,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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -19717,7 +19576,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -19824,7 +19683,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -19833,7 +19692,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19858,7 +19717,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); @@ -19871,7 +19730,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zend_print_zval(_1, 0); RETURN_MM_NULL(); } - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); ZEPHIR_INIT_VAR(className); zephir_get_class(className, exception, 0 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_1, exception, "getmessage", NULL, 0); @@ -19925,7 +19784,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -19944,7 +19803,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, "
"); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, ""); @@ -19970,7 +19829,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", _13, "
", keyRequest, "", value, "
", keyRequest, "", _13, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 165); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -19985,7 +19844,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); @@ -20018,7 +19877,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_VS(_18, _1, ""); zephir_concat_self(&html, _18 TSRMLS_CC); zend_print_zval(html, 0); - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_false)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_false) TSRMLS_CC); RETURN_MM_BOOL(1); } @@ -20094,7 +19953,7 @@ static PHP_METHOD(Phalcon_Di, set) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20104,7 +19963,6 @@ static PHP_METHOD(Phalcon_Di, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20120,7 +19978,13 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20130,7 +19994,7 @@ static PHP_METHOD(Phalcon_Di, set) { static PHP_METHOD(Phalcon_Di, setShared) { int ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *definition, *service, _0; + zval *name_param = NULL, *definition, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20140,7 +20004,6 @@ static PHP_METHOD(Phalcon_Di, setShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20151,9 +20014,9 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_SINIT_VAR(_0); - ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_BOOL(_0, 1); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20172,7 +20035,6 @@ static PHP_METHOD(Phalcon_Di, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20193,7 +20055,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20203,7 +20065,6 @@ static PHP_METHOD(Phalcon_Di, attempt) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20221,7 +20082,13 @@ static PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (shared) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _1); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20242,7 +20109,6 @@ static PHP_METHOD(Phalcon_Di, setRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20270,7 +20136,6 @@ static PHP_METHOD(Phalcon_Di, getRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20311,7 +20176,6 @@ static PHP_METHOD(Phalcon_Di, getService) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20351,7 +20215,6 @@ static PHP_METHOD(Phalcon_Di, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20471,7 +20334,6 @@ static PHP_METHOD(Phalcon_Di, getShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20486,12 +20348,20 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_OBS_VAR(instance); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_sharedInstances"), PH_NOISY_CC); if (zephir_array_isset_fetch(&instance, _0, name, 0 TSRMLS_CC)) { - zephir_update_property_this(this_ptr, SL("_freshInstance"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { ZEPHIR_CALL_METHOD(&instance, this_ptr, "get", NULL, 0, name, parameters); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_sharedInstances"), name, instance TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_freshInstance"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_CCTOR(instance); @@ -20509,7 +20379,6 @@ static PHP_METHOD(Phalcon_Di, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20550,7 +20419,6 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20578,7 +20446,6 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20606,7 +20473,6 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20633,7 +20499,6 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20660,7 +20525,6 @@ static PHP_METHOD(Phalcon_Di, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -20743,7 +20607,7 @@ static PHP_METHOD(Phalcon_Di, getDefault) { static PHP_METHOD(Phalcon_Di, reset) { - zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &(ZEPHIR_GLOBAL(global_null)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &ZEPHIR_GLOBAL(global_null) TSRMLS_CC); } @@ -21218,7 +21082,11 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { numberDispatches = 0; ZEPHIR_OBS_VAR(actionSuffix); zephir_read_property_this(&actionSuffix, this_ptr, SL("_actionSuffix"), PH_NOISY_CC); - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } while (1) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); if (!(!(zephir_is_true(_0)))) { @@ -21235,7 +21103,11 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { zephir_check_call_status(); break; } - zephir_update_property_this(this_ptr, SL("_finished"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_CALL_METHOD(NULL, this_ptr, "_resolveemptyproperties", &_5, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(namespaceName); @@ -21514,8 +21386,16 @@ static PHP_METHOD(Phalcon_Dispatcher, forward) { if (zephir_array_isset_string_fetch(¶ms, forward, SS("params"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_params"), params TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_forwarded"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (1) { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -21748,13 +21628,13 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); zephir_check_call_status(); RETURN_MM(); @@ -21776,11 +21656,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21800,7 +21680,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -21821,7 +21701,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21839,7 +21719,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -21858,7 +21738,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -21877,7 +21757,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); zephir_check_call_status(); RETURN_MM(); @@ -22003,7 +21883,6 @@ static PHP_METHOD(Phalcon_Filter, add) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -22124,7 +22003,6 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { 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)) { zephir_get_strval(filter, filter_param); } else { @@ -22156,16 +22034,16 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22175,14 +22053,14 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22192,7 +22070,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -22215,13 +22093,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } @@ -22230,7 +22108,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } @@ -22352,7 +22230,11 @@ static PHP_METHOD(Phalcon_Flash, setImplicitFlush) { implicitFlush = zephir_get_boolval(implicitFlush_param); - zephir_update_property_this(this_ptr, SL("_implicitFlush"), implicitFlush ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitFlush) { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -22367,7 +22249,11 @@ static PHP_METHOD(Phalcon_Flash, setAutomaticHtml) { automaticHtml = zephir_get_boolval(automaticHtml_param); - zephir_update_property_this(this_ptr, SL("_automaticHtml"), automaticHtml ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (automaticHtml) { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -22382,7 +22268,6 @@ static PHP_METHOD(Phalcon_Flash, setCssClasses) { cssClasses = cssClasses_param; - zephir_update_property_this(this_ptr, SL("_cssClasses"), cssClasses TSRMLS_CC); RETURN_THISW(); @@ -22668,7 +22553,6 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -22814,7 +22698,6 @@ static PHP_METHOD(Phalcon_Loader, setExtensions) { extensions = extensions_param; - zephir_update_property_this(this_ptr, SL("_extensions"), extensions TSRMLS_CC); RETURN_THISW(); @@ -22837,7 +22720,6 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { zephir_fetch_params(1, 1, 1, &namespaces_param, &merge_param); namespaces = namespaces_param; - if (!merge_param) { merge = 0; } else { @@ -22879,7 +22761,6 @@ static PHP_METHOD(Phalcon_Loader, registerPrefixes) { zephir_fetch_params(1, 1, 1, &prefixes_param, &merge_param); prefixes = prefixes_param; - if (!merge_param) { merge = 0; } else { @@ -22921,7 +22802,6 @@ static PHP_METHOD(Phalcon_Loader, registerDirs) { zephir_fetch_params(1, 1, 1, &directories_param, &merge_param); directories = directories_param; - if (!merge_param) { merge = 0; } else { @@ -22963,7 +22843,6 @@ static PHP_METHOD(Phalcon_Loader, registerClasses) { zephir_fetch_params(1, 1, 1, &classes_param, &merge_param); classes = classes_param; - if (!merge_param) { merge = 0; } else { @@ -23011,9 +22890,13 @@ static PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -23035,9 +22918,13 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -23059,7 +22946,6 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { 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)) { zephir_get_strval(className, className_param); } else { @@ -23143,7 +23029,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23214,7 +23100,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23272,7 +23158,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23412,7 +23298,6 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23438,7 +23323,6 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23465,7 +23349,6 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23491,7 +23374,6 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23524,9 +23406,9 @@ static PHP_METHOD(Phalcon_Registry, next) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 393, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23540,9 +23422,9 @@ static PHP_METHOD(Phalcon_Registry, key) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 394, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM(); @@ -23556,9 +23438,9 @@ static PHP_METHOD(Phalcon_Registry, rewind) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 395, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23572,9 +23454,9 @@ static PHP_METHOD(Phalcon_Registry, valid) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 394, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23588,9 +23470,9 @@ static PHP_METHOD(Phalcon_Registry, current) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 396, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM(); @@ -23609,7 +23491,6 @@ static PHP_METHOD(Phalcon_Registry, __set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23618,7 +23499,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 397, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23637,7 +23518,6 @@ static PHP_METHOD(Phalcon_Registry, __get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23646,7 +23526,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 398, key); zephir_check_call_status(); RETURN_MM(); @@ -23665,7 +23545,6 @@ static PHP_METHOD(Phalcon_Registry, __isset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23674,7 +23553,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23693,7 +23572,6 @@ static PHP_METHOD(Phalcon_Registry, __unset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23702,7 +23580,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 400, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23809,10 +23687,9 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } - randomBytes = Z_LVAL_P(randomBytes_param); @@ -23858,7 +23735,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 401, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23827,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 402, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23973,11 +23850,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZVAL_STRING(&_5, "%02s", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, workFactor); - ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 189, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 188, &_5, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 402, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +23894,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 402, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +23958,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 401, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24000,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 401, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24284,7 +24161,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { int ZEPHIR_LAST_CALL_STATUS; zend_bool raw; - zval *data, *key, *algo, *raw_param = NULL, *hmac = NULL, *_0, *_1; + zval *data, *key, *algo, *raw_param = NULL, *hmac = NULL, _0, *_1, *_2; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &data, &key, &algo, &raw_param); @@ -24296,16 +24173,18 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (raw ? 1 : 0)); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 403, algo, data, key, &_0); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { - ZEPHIR_INIT_VAR(_0); - object_init_ex(_0, phalcon_security_exception_ce); ZEPHIR_INIT_VAR(_1); - ZEPHIR_CONCAT_SV(_1, "Unknown hashing algorithm: %s", algo); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); + object_init_ex(_1, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "Unknown hashing algorithm: %s", algo); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/security.zep", 441 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/security.zep", 441 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -24428,7 +24307,6 @@ static PHP_METHOD(Phalcon_Tag, getEscaper) { params = params_param; - ZEPHIR_OBS_VAR(autoescape); if (!(zephir_array_isset_string_fetch(&autoescape, params, SS("escape"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(autoescape); @@ -24463,7 +24341,6 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { 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)) { zephir_get_strval(code, code_param); } else { @@ -24473,7 +24350,6 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { attributes = attributes_param; - ZEPHIR_INIT_VAR(order); zephir_create_array(order, 10, 0 TSRMLS_CC); zephir_array_update_string(&order, SL("rel"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -24685,7 +24561,6 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { 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)) { zephir_get_strval(id, id_param); } else { @@ -24719,7 +24594,6 @@ static PHP_METHOD(Phalcon_Tag, setDefaults) { zephir_fetch_params(1, 1, 1, &values_param, &merge_param); values = values_param; - if (!merge_param) { merge = 0; } else { @@ -24943,7 +24817,7 @@ static PHP_METHOD(Phalcon_Tag, _inputField) { ZEPHIR_OBS_VAR(id); if (!(zephir_array_isset_long_fetch(&id, params, 0, 0 TSRMLS_CC))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 443 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 443); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(name); if (zephir_array_isset_string_fetch(&name, params, SS("name"), 0 TSRMLS_CC)) { @@ -25011,7 +24885,7 @@ static PHP_METHOD(Phalcon_Tag, _inputFieldChecked) { } if (!(zephir_array_isset_long(params, 0))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 509 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 509); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(id); zephir_array_fetch_long(&id, params, 0, PH_NOISY, "phalcon/tag.zep", 512 TSRMLS_CC); @@ -25087,7 +24961,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +24981,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25001,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25021,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25041,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25061,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25081,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25101,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25121,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25141,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25161,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25181,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25201,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25221,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25241,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25261,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25281,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25301,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25321,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25343,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25365,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25512,7 +25386,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25532,7 +25406,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25558,7 +25432,7 @@ static PHP_METHOD(Phalcon_Tag, textArea) { if (!(zephir_array_isset_long(params, 0))) { if (zephir_array_isset_string(params, SS("id"))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 933 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 933); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } ZEPHIR_OBS_VAR(id); @@ -26043,13 +25917,13 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 415, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "ASCII//TRANSLIT", 0); - ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 373, &_0, &_3, text); + ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 372, &_0, &_3, text); zephir_check_call_status(); zephir_get_strval(text, _5); } @@ -26112,7 +25986,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 415, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26375,7 +26249,6 @@ static PHP_METHOD(Phalcon_Text, camelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26402,7 +26275,6 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26480,13 +26352,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26369,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26386,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26395,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26403,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 419, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26569,7 +26441,7 @@ static PHP_METHOD(Phalcon_Text, random) { static PHP_METHOD(Phalcon_Text, startsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *start = NULL; ZEPHIR_MM_GROW(); @@ -26584,14 +26456,16 @@ static PHP_METHOD(Phalcon_Text, startsWith) { } - RETURN_MM_BOOL(zephir_start_with(str, start, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_start_with(str, start, &_0)); } static PHP_METHOD(Phalcon_Text, endsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *end = NULL; ZEPHIR_MM_GROW(); @@ -26606,7 +26480,9 @@ static PHP_METHOD(Phalcon_Text, endsWith) { } - RETURN_MM_BOOL(zephir_end_with(str, end, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_end_with(str, end, &_0)); } @@ -26623,7 +26499,6 @@ static PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26638,7 +26513,6 @@ static PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -26649,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26671,7 +26545,6 @@ static PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26686,7 +26559,6 @@ static PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -26697,7 +26569,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26742,24 +26614,24 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 374, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 373, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -26799,7 +26671,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(text, text_param); } else { @@ -26814,7 +26685,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { @@ -26830,7 +26700,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { @@ -26846,7 +26715,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(separator, separator_param); } else { @@ -26856,24 +26724,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 422, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 422, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 423, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 424, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 424, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26753,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 425, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -26975,8 +26843,8 @@ static PHP_METHOD(Phalcon_Validation, __construct) { zephir_fetch_params(1, 0, 1, &validators_param); if (!validators_param) { - ZEPHIR_INIT_VAR(validators); - array_init(validators); + ZEPHIR_INIT_VAR(validators); + array_init(validators); } else { zephir_get_arrval(validators, validators_param); } @@ -27135,7 +27003,6 @@ static PHP_METHOD(Phalcon_Validation, rules) { 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)) { zephir_get_strval(field, field_param); } else { @@ -27145,7 +27012,6 @@ static PHP_METHOD(Phalcon_Validation, rules) { validators = validators_param; - zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 175); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS @@ -27282,7 +27148,6 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { 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)) { zephir_get_strval(type, type_param); } else { @@ -27318,7 +27183,6 @@ static PHP_METHOD(Phalcon_Validation, setLabels) { labels = labels_param; - zephir_update_property_this(this_ptr, SL("_labels"), labels TSRMLS_CC); } @@ -27335,7 +27199,6 @@ static PHP_METHOD(Phalcon_Validation, getLabel) { 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)) { zephir_get_strval(field, field_param); } else { @@ -27419,7 +27282,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CONCAT_SV(_0, "get", field); ZEPHIR_CPY_WRT(method, _0); if ((zephir_method_exists(entity, method TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); zephir_check_call_status(); } else { if ((zephir_method_exists_ex(entity, SS("readattribute") TSRMLS_CC) == SUCCESS)) { @@ -27619,7 +27482,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 444, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27653,11 +27516,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -27686,7 +27549,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 444, _1); zephir_check_call_status(); break; } @@ -27933,7 +27796,6 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -27953,7 +27815,7 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); @@ -28048,7 +27910,6 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -28068,7 +27929,7 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); @@ -28266,7 +28127,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { if (!(zephir_array_isset(_3, roleName))) { zephir_update_property_array(this_ptr, SL("_roleInherits"), roleName, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } - zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 1, roleName); + zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 2, roleName); RETURN_MM_BOOL(1); } @@ -29101,7 +28962,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, __construct) { reflectionData = reflectionData_param; - zephir_array_fetch_string(&_0, reflectionData, SL("name"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 58 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_name"), _0 TSRMLS_CC); ZEPHIR_OBS_VAR(exprArguments); @@ -29152,7 +29012,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { expr = expr_param; - ZEPHIR_OBS_VAR(type); zephir_array_fetch_string(&type, expr, SL("type"), PH_NOISY, "phalcon/annotations/annotation.zep", 96 TSRMLS_CC); do { @@ -29283,7 +29142,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -29313,7 +29171,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -31312,7 +31169,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations) { zephir_update_property_this(this_ptr, SL("_classAnnotations"), collection TSRMLS_CC); RETURN_CCTOR(collection); } - zephir_update_property_this(this_ptr, SL("_classAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_classAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_classAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CTOR(annotations); @@ -31355,7 +31216,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { RETURN_CCTOR(collections); } } - zephir_update_property_this(this_ptr, SL("_methodAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_methodAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_methodAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CCTOR(annotations); @@ -31398,7 +31263,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { RETURN_CCTOR(collections); } } - zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CCTOR(annotations); @@ -32507,7 +32376,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32540,7 +32408,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32646,7 +32513,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32665,7 +32531,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, " 0, 1, 0) FROM `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_NAME`= '", tableName, "' AND `TABLE_SCHEMA` = '", schemaName, "'"); RETURN_MM(); } @@ -52226,7 +52106,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -52241,7 +52120,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT IF(COUNT(*) > 0, 1, 0) FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_NAME`= '", viewName, "' AND `TABLE_SCHEMA`='", schemaName, "'"); RETURN_MM(); } @@ -52263,7 +52142,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52301,7 +52179,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SHOW TABLES FROM `", schemaName, "`"); RETURN_MM(); } @@ -52325,7 +52203,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52335,7 +52212,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT `TABLE_NAME` AS view_name FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_SCHEMA` = '", schemaName, "' ORDER BY view_name"); RETURN_MM(); } @@ -52356,7 +52233,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52390,7 +52266,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52407,7 +52282,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { ZVAL_STRING(sql, "SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,REFERENCED_TABLE_SCHEMA,REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME IS NOT NULL AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "CONSTRAINT_SCHEMA = '", schema, "' AND TABLE_NAME = '", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -52432,7 +52307,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52449,7 +52323,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { ZVAL_STRING(sql, "SELECT TABLES.TABLE_TYPE AS table_type,TABLES.AUTO_INCREMENT AS auto_increment,TABLES.ENGINE AS engine,TABLES.TABLE_COLLATION AS table_collation FROM INFORMATION_SCHEMA.TABLES WHERE ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_VSVSVS(return_value, sql, "TABLES.TABLE_SCHEMA = '", schema, "' AND TABLES.TABLE_NAME = '", table, "'"); RETURN_MM(); } @@ -52469,7 +52343,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { definition = definition_param; - ZEPHIR_OBS_VAR(options); if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { ZEPHIR_INIT_VAR(tableOptions); @@ -52550,7 +52423,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { 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)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { @@ -52696,7 +52568,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52707,7 +52578,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52733,7 +52603,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52744,7 +52613,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52773,7 +52641,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52784,7 +52651,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52811,7 +52677,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52822,7 +52687,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52848,7 +52712,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52859,7 +52722,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52870,7 +52732,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -52913,7 +52774,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52924,7 +52784,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52950,7 +52809,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52961,7 +52819,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52987,7 +52844,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52998,7 +52854,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53009,7 +52864,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -53036,7 +52890,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53047,7 +52900,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53057,7 +52909,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { definition = definition_param; - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; @@ -53077,7 +52928,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53088,7 +52938,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53102,7 +52951,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -53132,7 +52980,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53140,7 +52987,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -53175,7 +53021,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53195,7 +53040,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -53225,7 +53069,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53297,7 +53140,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53341,7 +53183,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53413,7 +53254,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53457,7 +53297,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53505,7 +53344,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53552,7 +53390,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53810,7 +53647,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53821,7 +53657,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53897,7 +53732,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53908,7 +53742,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54052,7 +53885,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54063,7 +53895,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54074,7 +53905,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -54103,7 +53933,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54114,7 +53943,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54169,7 +53997,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54180,7 +54007,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54191,7 +54017,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -54218,7 +54043,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54229,7 +54053,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54262,7 +54085,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54273,7 +54095,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54302,7 +54123,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54313,7 +54133,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54369,7 +54188,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54380,7 +54198,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54391,7 +54208,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -54424,7 +54240,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54435,7 +54250,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54445,7 +54259,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { definition = definition_param; - ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); @@ -54667,7 +54480,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54687,7 +54499,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -54718,7 +54529,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54726,7 +54536,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -54761,7 +54570,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54781,7 +54589,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -54810,7 +54617,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54825,7 +54631,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM information_schema.tables WHERE table_schema = '", schemaName, "' AND table_name='", tableName, "'"); RETURN_MM(); } @@ -54846,7 +54652,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54861,7 +54666,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM pg_views WHERE viewname='", viewName, "' AND schemaname='", schemaName, "'"); RETURN_MM(); } @@ -54882,7 +54687,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -54897,7 +54701,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { } - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT DISTINCT c.column_name AS Field, c.data_type AS Type, c.character_maximum_length AS Size, c.numeric_precision AS NumericSize, c.numeric_scale AS NumericScale, c.is_nullable AS Null, CASE WHEN pkc.column_name NOTNULL THEN 'PRI' ELSE '' END AS Key, CASE WHEN c.data_type LIKE '%int%' AND c.column_default LIKE '%nextval%' THEN 'auto_increment' ELSE '' END AS Extra, c.ordinal_position AS Position, c.column_default FROM information_schema.columns c LEFT JOIN ( SELECT kcu.column_name, kcu.table_name, kcu.table_schema FROM information_schema.table_constraints tc INNER JOIN information_schema.key_column_usage kcu on (kcu.constraint_name = tc.constraint_name and kcu.table_name=tc.table_name and kcu.table_schema=tc.table_schema) WHERE tc.constraint_type='PRIMARY KEY') pkc ON (c.column_name=pkc.column_name AND c.table_schema = pkc.table_schema AND c.table_name=pkc.table_name) WHERE c.table_schema='", schema, "' AND c.table_name='", table, "' ORDER BY c.ordinal_position"); RETURN_MM(); } @@ -54922,7 +54726,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT table_name FROM information_schema.tables WHERE table_schema = '", schemaName, "' ORDER BY table_name"); RETURN_MM(); } @@ -54961,7 +54765,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -54993,7 +54796,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -55010,7 +54812,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZVAL_STRING(sql, "SELECT tc.table_name as TABLE_NAME, kcu.column_name as COLUMN_NAME, tc.constraint_name as CONSTRAINT_NAME, tc.table_catalog as REFERENCED_TABLE_SCHEMA, ccu.table_name AS REFERENCED_TABLE_NAME, ccu.column_name AS REFERENCED_COLUMN_NAME FROM information_schema.table_constraints AS tc JOIN information_schema.key_column_usage AS kcu ON tc.constraint_name = kcu.constraint_name JOIN information_schema.constraint_column_usage AS ccu ON ccu.constraint_name = tc.constraint_name WHERE constraint_type = 'FOREIGN KEY' AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "tc.table_schema = '", schema, "' AND tc.table_name='", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -55035,7 +54837,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -55064,7 +54865,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, _getTableOptions) { definition = definition_param; - RETURN_STRING("", 1); } @@ -55258,7 +55058,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55269,7 +55068,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55334,7 +55132,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55345,7 +55142,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55374,7 +55170,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55385,7 +55180,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55396,7 +55190,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -55423,7 +55216,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55434,7 +55226,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55451,7 +55242,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { } else { ZVAL_STRING(sql, "CREATE INDEX \"", 1); } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CALL_METHOD(&_0, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); @@ -55487,7 +55278,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55498,7 +55288,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55509,7 +55298,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -55518,7 +55306,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "DROP INDEX \"", schemaName, "\".\"", indexName, "\""); RETURN_MM(); } @@ -55539,7 +55327,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55550,7 +55337,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55576,7 +55362,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55587,7 +55372,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55613,7 +55397,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55624,7 +55407,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55650,7 +55432,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55661,7 +55442,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55672,7 +55452,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -55704,7 +55483,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55715,7 +55493,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55725,7 +55502,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { definition = definition_param; - ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(temporary); @@ -55909,7 +55685,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55929,7 +55704,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -55960,7 +55734,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -55968,7 +55741,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -56003,7 +55775,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -56023,7 +55794,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -56051,7 +55821,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -56083,7 +55852,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -56115,7 +55883,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56171,7 +55938,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -56197,7 +55963,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56229,7 +55994,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { 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)) { zephir_get_strval(index, index_param); } else { @@ -56255,7 +56019,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56287,7 +56050,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56340,13 +56102,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56359,13 +56125,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56378,13 +56148,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56397,13 +56171,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } @@ -56416,13 +56194,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } @@ -56440,7 +56222,7 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getTotalElapsedSeconds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finalTime"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_initialTime"), PH_NOISY_CC); - sub_function(return_value, _0, _1 TSRMLS_CC); + zephir_sub_function(return_value, _0, _1); return; } @@ -56877,8 +56659,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { zephir_fetch_params(1, 0, 2, &styles_param, &detailed_param); if (!styles_param) { - ZEPHIR_INIT_VAR(styles); - array_init(styles); + ZEPHIR_INIT_VAR(styles); + array_init(styles); } else { zephir_get_arrval(styles, styles_param); } @@ -56902,7 +56684,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { ZEPHIR_INIT_VAR(_1); array_init(_1); zephir_update_property_this(this_ptr, SL("_methods"), _1 TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_detailed"), detailed ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (detailed) { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -56921,7 +56707,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -56941,7 +56727,6 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { 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)) { zephir_get_strval(type, type_param); } else { @@ -57027,13 +56812,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, one) { static PHP_METHOD(Phalcon_Debug_Dump, output) { zend_bool _15, _16, _17; - HashTable *_8, *_24, *_35; - HashPosition _7, _23, _34; - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_19 = NULL, *_21 = NULL, *_28 = NULL, *_29 = NULL, *_30 = NULL, *_32 = NULL; + HashTable *_8, *_25, *_36; + HashPosition _7, _24, _35; + zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_20 = NULL, *_22 = NULL, *_29 = NULL, *_30 = NULL, *_31 = NULL, *_33 = NULL; zval *_1 = NULL, *_12 = NULL, *_38 = NULL; int tab, ZEPHIR_LAST_CALL_STATUS; zval *name = NULL, *_0; - zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_20 = NULL, *_22, **_25, *_26 = NULL, *_27 = NULL, *_31, *_33, **_36, *_37 = NULL, *_39 = NULL, _40; + zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_19 = NULL, *_21 = NULL, *_23, **_26, *_27 = NULL, *_28 = NULL, *_32, *_34, **_37, *_39 = NULL, _40; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &variable, &name_param, &tab_param); @@ -57055,7 +56840,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(space, " ", 1); ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - if (name && Z_STRLEN_P(name)) { + if (!(!name) && Z_STRLEN_P(name)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_VS(_0, name, " "); ZEPHIR_CPY_WRT(output, _0); @@ -57119,14 +56904,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_5); @@ -57153,7 +56938,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -57164,7 +56949,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -57174,17 +56959,17 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _18 TSRMLS_CC); } zephir_concat_self_str(&output, SL(" (\n") TSRMLS_CC); - _22 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); - if (!(zephir_is_true(_22))) { + _23 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); + if (!(zephir_is_true(_23))) { ZEPHIR_CALL_FUNCTION(&_10, "get_object_vars", NULL, 24, variable); zephir_check_call_status(); - zephir_is_iterable(_10, &_24, &_23, 0, 0, "phalcon/debug/dump.zep", 171); + zephir_is_iterable(_10, &_25, &_24, 0, 0, "phalcon/debug/dump.zep", 171); for ( - ; zephir_hash_get_current_data_ex(_24, (void**) &_25, &_23) == SUCCESS - ; zephir_hash_move_forward_ex(_24, &_23) + ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zephir_hash_move_forward_ex(_25, &_24) ) { - ZEPHIR_GET_HMKEY(key, _24, _23); - ZEPHIR_GET_HVALUE(value, _25); + ZEPHIR_GET_HMKEY(key, _25, _24); + ZEPHIR_GET_HVALUE(value, _26); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); @@ -57193,35 +56978,35 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":key"), &key, PH_COPY | PH_SEPARATE); add_assoc_stringl_ex(_12, SS(":type"), SL("public"), 1); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _13, _26); + ZEPHIR_CONCAT_VV(_14, _13, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } else { do { - Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); - Z_UNSET_ISREF_P(variable); + ZEPHIR_MAKE_REF(variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_29, 170, variable); + ZEPHIR_UNREF(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { continue; @@ -57236,9 +57021,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_30, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_31, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -57247,8 +57032,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_array_isset_long(key, 1)) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "private", 1); - zephir_array_fetch_long(&_31, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); - if (ZEPHIR_IS_STRING(_31, "*")) { + zephir_array_fetch_long(&_32, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); + if (ZEPHIR_IS_STRING(_32, "*")) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "protected", 1); } @@ -57261,36 +57046,36 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); - Z_UNSET_ISREF_P(key); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + ZEPHIR_MAKE_REF(key); + ZEPHIR_CALL_FUNCTION(&_27, "end", &_33, 171, key); + ZEPHIR_UNREF(key); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":key"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":type"), &type, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _18, _26); + ZEPHIR_CONCAT_VV(_14, _18, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); @@ -57317,25 +57102,25 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); zephir_get_class(_3, variable, 0 TSRMLS_CC); - _33 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); - if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { + _34 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); + if (zephir_fast_in_array(_3, _34 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "[already listed]\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } else { - zephir_is_iterable(attr, &_35, &_34, 0, 0, "phalcon/debug/dump.zep", 219); + zephir_is_iterable(attr, &_36, &_35, 0, 0, "phalcon/debug/dump.zep", 219); for ( - ; zephir_hash_get_current_data_ex(_35, (void**) &_36, &_34) == SUCCESS - ; zephir_hash_move_forward_ex(_35, &_34) + ; zephir_hash_get_current_data_ex(_36, (void**) &_37, &_35) == SUCCESS + ; zephir_hash_move_forward_ex(_36, &_35) ) { - ZEPHIR_GET_HVALUE(value, _36); - ZEPHIR_INIT_NVAR(_37); - zephir_get_class(_37, variable, 0 TSRMLS_CC); - zephir_update_property_array_append(this_ptr, SL("_methods"), _37 TSRMLS_CC); + ZEPHIR_GET_HVALUE(value, _37); + ZEPHIR_INIT_NVAR(_19); + zephir_get_class(_19, variable, 0 TSRMLS_CC); + zephir_update_property_array_append(this_ptr, SL("_methods"), _19 TSRMLS_CC); if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); @@ -57343,10 +57128,10 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_13, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":method"), &value, PH_COPY | PH_SEPARATE); @@ -57360,23 +57145,23 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); + ZEPHIR_CALL_FUNCTION(&_27, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); - zephir_array_update_string(&_38, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_38, SL(":style"), &_28, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_38, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:method();\n", 0); - ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _38); + ZEPHIR_CALL_FUNCTION(&_28, "strtr", &_6, 54, &_5, _38); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_39); - ZEPHIR_CONCAT_VV(_39, _26, _27); + ZEPHIR_CONCAT_VV(_39, _27, _28); zephir_concat_self(&output, _39 TSRMLS_CC); } } @@ -57384,9 +57169,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, ")\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, ")\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); @@ -57412,7 +57197,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -57465,14 +57250,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(&_40, "utf-8", 0); ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); + ZEPHIR_CALL_FUNCTION(&_27, "nl2br", NULL, 174, _2); zephir_check_call_status(); - zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_1, SL(":var"), &_27, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "String (:length) \":var\"", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _1); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); - ZEPHIR_CONCAT_VV(return_value, output, _26); + ZEPHIR_CONCAT_VV(return_value, output, _27); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_BOOL) { @@ -57583,7 +57368,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( @@ -57685,7 +57470,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault) { static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; @@ -57702,9 +57487,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57715,9 +57500,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57728,9 +57513,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57741,9 +57526,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57754,9 +57539,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57767,9 +57552,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57780,9 +57565,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57793,9 +57578,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57806,9 +57591,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57819,9 +57604,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57832,9 +57617,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57845,9 +57630,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57858,9 +57643,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57871,9 +57656,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flash", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57884,9 +57669,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flashSession", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57897,9 +57682,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57910,9 +57695,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57934,9 +57719,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57947,9 +57732,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57960,9 +57745,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "assets", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58064,7 +57849,6 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { 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)) { zephir_get_strval(propertyName, propertyName_param); } else { @@ -58092,7 +57876,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { RETURN_CCTOR(service); } if (ZEPHIR_IS_STRING(propertyName, "di")) { - zephir_update_property_zval(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); RETURN_CCTOR(dependencyInjector); } if (ZEPHIR_IS_STRING(propertyName, "persistent")) { @@ -58107,7 +57891,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CPY_WRT(persistent, _3); - zephir_update_property_zval(this_ptr, SL("persistent"), persistent TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("persistent"), persistent TSRMLS_CC); RETURN_CCTOR(persistent); } ZEPHIR_INIT_VAR(_6); @@ -58188,7 +57972,6 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -58204,7 +57987,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -58226,7 +58013,11 @@ static PHP_METHOD(Phalcon_Di_Service, setShared) { shared = zephir_get_boolval(shared_param); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -58342,7 +58133,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, 177, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 176, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -58364,7 +58155,11 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { if (zephir_is_true(shared)) { zephir_update_property_this(this_ptr, SL("_sharedInstance"), instance TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_resolved"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_CCTOR(instance); } @@ -58382,7 +58177,6 @@ static PHP_METHOD(Phalcon_Di_Service, setParameter) { parameter = parameter_param; - ZEPHIR_OBS_VAR(definition); zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); if (Z_TYPE_P(definition) != IS_ARRAY) { @@ -58391,11 +58185,11 @@ static PHP_METHOD(Phalcon_Di_Service, setParameter) { } ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE, "phalcon/di/service.zep", 228); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { ZEPHIR_INIT_NVAR(arguments); zephir_create_array(arguments, 1, 0 TSRMLS_CC); - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY, "phalcon/di/service.zep", 230); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY ZEPHIR_DEBUG_PARAMS_DUMMY); } zephir_array_update_string(&definition, SL("arguments"), &arguments, PH_COPY | PH_SEPARATE); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); @@ -58448,7 +58242,6 @@ static PHP_METHOD(Phalcon_Di_Service, __set_state) { attributes = attributes_param; - ZEPHIR_OBS_VAR(name); if (!(zephir_array_isset_string_fetch(&name, attributes, SS("_name"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "The attribute '_name' is required", "phalcon/di/service.zep", 289); @@ -58533,14 +58326,14 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault_Cli) { static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 175); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -58550,9 +58343,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58563,9 +58356,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58576,9 +58369,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58589,9 +58382,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58602,9 +58395,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58615,9 +58408,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58628,9 +58421,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58641,9 +58434,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58654,9 +58447,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58667,9 +58460,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58715,7 +58508,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { argument = argument_param; - ZEPHIR_OBS_VAR(type); if (!(zephir_array_isset_string_fetch(&type, argument, SS("type"), 0 TSRMLS_CC))) { ZEPHIR_INIT_VAR(_0); @@ -58832,7 +58624,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { arguments = arguments_param; - ZEPHIR_INIT_VAR(buildArguments); array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); @@ -58842,7 +58633,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -58863,7 +58654,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { zephir_fetch_params(1, 2, 1, &dependencyInjector, &definition_param, ¶meters); definition = definition_param; - if (!parameters) { parameters = ZEPHIR_GLOBAL(global_null); } @@ -58887,7 +58677,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -58957,7 +58747,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -59021,7 +58811,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } @@ -59086,13 +58876,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -59149,7 +58943,6 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59172,7 +58965,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { zephir_update_property_this(this_ptr, SL("_data"), data TSRMLS_CC); } if (cancelable != 1) { - zephir_update_property_this(this_ptr, SL("_cancelable"), cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (cancelable) { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -59188,7 +58985,11 @@ static PHP_METHOD(Phalcon_Events_Event, stop) { ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_events_exception_ce, "Trying to cancel a non-cancelable event", "phalcon/events/event.zep", 93); return; } - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59289,7 +59090,6 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59300,10 +59100,9 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { priority = 100; } else { if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - priority = Z_LVAL_P(priority_param); } @@ -59325,7 +59124,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -59335,7 +59134,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -59359,7 +59158,6 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59384,7 +59182,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -59406,13 +59204,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _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, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -59434,7 +59232,11 @@ static PHP_METHOD(Phalcon_Events_Manager, enablePriorities) { enablePriorities = zephir_get_boolval(enablePriorities_param); - zephir_update_property_this(this_ptr, SL("_enablePriorities"), enablePriorities ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (enablePriorities) { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59455,7 +59257,11 @@ static PHP_METHOD(Phalcon_Events_Manager, collectResponses) { collect = zephir_get_boolval(collect_param); - zephir_update_property_this(this_ptr, SL("_collect"), collect ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (collect) { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59489,7 +59295,6 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59529,7 +59334,6 @@ static PHP_METHOD(Phalcon_Events_Manager, dettachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59568,7 +59372,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -59715,7 +59519,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool cancelable, _3; - zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0, *_2; + zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0 = NULL, *_2; zval *eventType = NULL, *_1; ZEPHIR_MM_GROW(); @@ -59725,7 +59529,6 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59781,9 +59584,15 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -59797,10 +59606,16 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -59820,7 +59635,6 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59846,7 +59660,6 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { 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)) { zephir_get_strval(type, type_param); } else { @@ -60013,7 +59826,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -60139,7 +59952,6 @@ static PHP_METHOD(Phalcon_Flash_Session, _setSessionMessages) { messages = messages_param; - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -60225,7 +60037,7 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { int ZEPHIR_LAST_CALL_STATUS; zend_bool remove; - zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages; + zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 2, &type, &remove_param); @@ -60240,7 +60052,13 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(type) != IS_STRING) { RETURN_CCTOR(messages); @@ -60255,11 +60073,11 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { static PHP_METHOD(Phalcon_Flash_Session, output) { - zephir_fcall_cache_entry *_3 = NULL, *_4 = NULL; - HashTable *_1; - HashPosition _0; + zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; + HashTable *_2; + HashPosition _1; int ZEPHIR_LAST_CALL_STATUS; - zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, **_2; + zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, *_0, **_3; zend_bool remove; ZEPHIR_MM_GROW(); @@ -60272,21 +60090,27 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { - zephir_is_iterable(messages, &_1, &_0, 0, 0, "phalcon/flash/session.zep", 162); + zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/flash/session.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zephir_hash_move_forward_ex(_2, &_1) ) { - ZEPHIR_GET_HMKEY(type, _1, _0); - ZEPHIR_GET_HVALUE(message, _2); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_3, 0, type, message); + ZEPHIR_GET_HMKEY(type, _2, _1); + ZEPHIR_GET_HVALUE(message, _3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_4, 0, type, message); zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60304,7 +60128,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, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60411,7 +60235,6 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -60504,7 +60327,6 @@ static PHP_METHOD(Phalcon_Forms_Element, addValidators) { zephir_fetch_params(1, 1, 1, &validators_param, &merge_param); validators = validators_param; - if (!merge_param) { merge = 1; } else { @@ -60574,7 +60396,7 @@ static PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -60658,7 +60480,6 @@ static PHP_METHOD(Phalcon_Forms_Element, setAttributes) { attributes = attributes_param; - zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); RETURN_THISW(); @@ -61203,7 +61024,6 @@ static PHP_METHOD(Phalcon_Forms_Form, setUserOptions) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); RETURN_THISW(); @@ -61256,7 +61076,6 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { zephir_fetch_params(1, 2, 1, &data_param, &entity, &whitelist); data = data_param; - ZEPHIR_SEPARATE_PARAM(entity); if (!whitelist) { whitelist = ZEPHIR_GLOBAL(global_null); @@ -61409,7 +61228,7 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -61417,10 +61236,10 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -61483,7 +61302,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); zephir_check_call_status(); } } @@ -61606,7 +61425,6 @@ static PHP_METHOD(Phalcon_Forms_Form, render) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61650,7 +61468,6 @@ static PHP_METHOD(Phalcon_Forms_Form, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61690,7 +61507,6 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61698,8 +61514,8 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { ZVAL_EMPTY_STRING(name); } if (!attributes_param) { - ZEPHIR_INIT_VAR(attributes); - array_init(attributes); + ZEPHIR_INIT_VAR(attributes); + array_init(attributes); } else { zephir_get_arrval(attributes, attributes_param); } @@ -61737,7 +61553,6 @@ static PHP_METHOD(Phalcon_Forms_Form, getLabel) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61781,7 +61596,6 @@ static PHP_METHOD(Phalcon_Forms_Form, getValue) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61845,7 +61659,6 @@ static PHP_METHOD(Phalcon_Forms_Form, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61871,7 +61684,6 @@ static PHP_METHOD(Phalcon_Forms_Form, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61953,7 +61765,7 @@ static PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -62045,7 +61857,7 @@ static PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); @@ -62154,7 +61966,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); zephir_check_call_status(); RETURN_MM(); @@ -62199,7 +62011,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); @@ -62244,7 +62056,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); @@ -62289,7 +62101,7 @@ static PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); @@ -62334,7 +62146,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); @@ -62379,7 +62191,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); @@ -62424,7 +62236,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); @@ -62471,7 +62283,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); @@ -62522,7 +62334,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -62593,7 +62405,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -62638,7 +62450,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); zephir_check_call_status(); RETURN_MM(); @@ -62683,7 +62495,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); @@ -62728,7 +62540,7 @@ static PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); @@ -62794,7 +62606,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -62872,7 +62683,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setValue) { zephir_update_property_this(this_ptr, SL("_value"), value TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_readed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -63040,7 +62855,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -63090,7 +62905,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, restore) { } } } - zephir_update_property_this(this_ptr, SL("_restored"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -63136,7 +62955,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -63152,7 +62971,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -63216,7 +63039,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, setPath) { 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)) { zephir_get_strval(path, path_param); } else { @@ -63271,7 +63093,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -63323,7 +63144,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setSecure) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_secure"), secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (secure) { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -63361,7 +63186,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setHttpOnly) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_httpOnly"), httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (httpOnly) { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -63506,7 +63335,7 @@ static PHP_METHOD(Phalcon_Http_Request, get) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63521,7 +63350,6 @@ static PHP_METHOD(Phalcon_Http_Request, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63547,7 +63375,19 @@ static PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63557,7 +63397,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63572,7 +63412,6 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63598,7 +63437,19 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63608,7 +63459,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL, *_1, *_2; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63622,7 +63473,6 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63655,13 +63505,25 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { array_init(put); ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); - Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); - Z_UNSET_ISREF_P(put); + ZEPHIR_MAKE_REF(put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_UNREF(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (notAllowEmpty) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_INIT_VAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -63671,7 +63533,7 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63686,7 +63548,6 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63712,7 +63573,19 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63723,7 +63596,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive, _3; zval *name = NULL; - zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2; + zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2 = NULL; zval *source = NULL; ZEPHIR_MM_GROW(); @@ -63738,7 +63611,6 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63790,7 +63662,13 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_CPY_WRT(filter, _1); zephir_update_property_this(this_ptr, SL("_filter"), filter TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, _2); zephir_check_call_status(); ZEPHIR_CPY_WRT(value, _1); } @@ -63819,7 +63697,6 @@ static PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63848,7 +63725,6 @@ static PHP_METHOD(Phalcon_Http_Request, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63874,7 +63750,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63900,7 +63775,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63928,7 +63802,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63954,7 +63827,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63981,7 +63853,6 @@ static PHP_METHOD(Phalcon_Http_Request, getHeader) { 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)) { zephir_get_strval(header, header_param); } else { @@ -64112,7 +63983,7 @@ static PHP_METHOD(Phalcon_Http_Request, getRawBody) { static PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { int ZEPHIR_LAST_CALL_STATUS; - zval *associative_param = NULL, *rawBody = NULL; + zval *associative_param = NULL, *rawBody = NULL, _0; zend_bool associative; ZEPHIR_MM_GROW(); @@ -64130,7 +64001,9 @@ static PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { if (Z_TYPE_P(rawBody) != IS_STRING) { RETURN_MM_BOOL(0); } - zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval((associative ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))) TSRMLS_CC); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (associative ? 1 : 0)); + zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval(&_0) TSRMLS_CC); RETURN_MM(); } @@ -64149,7 +64022,7 @@ static PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); zephir_check_call_status(); RETURN_MM(); @@ -64340,7 +64213,7 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -64412,7 +64285,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -64425,7 +64298,7 @@ static PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -64438,7 +64311,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -64451,7 +64324,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -64464,7 +64337,7 @@ static PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -64477,7 +64350,7 @@ static PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -64490,7 +64363,7 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -64498,11 +64371,11 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { static PHP_METHOD(Phalcon_Http_Request, hasFiles) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; - zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL; + zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL, *_5 = NULL; zend_bool onlySuccessful, _3; ZEPHIR_MM_GROW(); @@ -64538,7 +64411,13 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, error, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64550,12 +64429,12 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; zend_bool onlySuccessful, _3; - zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL; + zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL, *_5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &data, &onlySuccessful_param); @@ -64582,7 +64461,13 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, value, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64597,7 +64482,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { int ZEPHIR_LAST_CALL_STATUS; HashTable *_1, *_11; HashPosition _0, _10; - zval *files; + zval *files = NULL; zval *onlySuccessful_param = NULL, *superFiles = NULL, *prefix = NULL, *input = NULL, *smoothInput = NULL, *file = NULL, *dataFile = NULL, *_FILES, **_2, *_3 = NULL, *_4, *_5, *_6, *_7, *_8, **_12, *_14, *_15 = NULL, *_16 = NULL, *_17; zend_bool onlySuccessful, _13; @@ -64614,6 +64499,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { array_init(files); + ZEPHIR_INIT_NVAR(files); + array_init(files); ZEPHIR_CPY_WRT(superFiles, _FILES); if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1, &_0, 0, 0, "phalcon/http/request.zep", 720); @@ -64631,7 +64518,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -64665,7 +64552,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -64679,7 +64566,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -64704,15 +64591,10 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_fetch_params(1, 6, 0, &names_param, &types_param, &tmp_names_param, &sizes_param, &errors_param, &prefix_param); names = names_param; - types = types_param; - tmp_names = tmp_names_param; - sizes = sizes_param; - errors = errors_param; - zephir_get_strval(prefix, prefix_param); @@ -64752,7 +64634,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -64806,7 +64688,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -64825,7 +64707,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -64870,7 +64752,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { 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)) { zephir_get_strval(serverIndex, serverIndex_param); } else { @@ -64881,7 +64762,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -64900,7 +64780,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -64918,7 +64798,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -64977,7 +64857,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -65049,7 +64928,7 @@ static PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65068,7 +64947,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65086,7 +64965,7 @@ static PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65105,7 +64984,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65123,7 +65002,7 @@ static PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65142,7 +65021,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65195,10 +65074,10 @@ static PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { ZVAL_STRING(_0, "#(\\w+)=(['\"]?)([^'\" ,]+)\\2#", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 2); - Z_SET_ISREF_P(matches); + ZEPHIR_MAKE_REF(matches); ZEPHIR_CALL_FUNCTION(&_2, "preg_match_all", NULL, 28, _0, digest, matches, _1); zephir_check_temp_parameter(_0); - Z_UNSET_ISREF_P(matches); + ZEPHIR_UNREF(matches); zephir_check_call_status(); if (!(zephir_is_true(_2))) { RETURN_CTOR(auth); @@ -65462,7 +65341,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -65743,10 +65622,9 @@ static PHP_METHOD(Phalcon_Http_Response, setCache) { zephir_fetch_params(1, 1, 0, &minutes_param); if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - minutes = Z_LVAL_P(minutes_param); @@ -65889,7 +65767,7 @@ static PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -66109,11 +65987,15 @@ static PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); zephir_check_call_status(); } } - zephir_update_property_this(this_ptr, SL("_sent"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -66338,7 +66220,6 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_fetch_params(1, 1, 1, &file_param, &key); file = file_param; - if (!key) { key = ZEPHIR_GLOBAL(global_null); } @@ -66349,7 +66230,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); @@ -66415,15 +66296,15 @@ static PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -66441,7 +66322,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -66462,7 +66343,6 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { 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)) { zephir_get_strval(destination, destination_param); } else { @@ -66472,7 +66352,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); zephir_check_call_status(); RETURN_MM(); @@ -66573,7 +66453,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -66590,7 +66474,7 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zval *_3; zend_bool secure, httpOnly; int expire, ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5; + zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5, *_6; zval *name = NULL, *path = NULL, *domain = NULL; ZEPHIR_MM_GROW(); @@ -66600,7 +66484,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66634,7 +66517,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -66693,11 +66575,23 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setpath", NULL, 0, path); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, (secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_4); + if (secure) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, _4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setdomain", NULL, 0, domain); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, (httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (httpOnly) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, _6); zephir_check_call_status(); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_registered"), PH_NOISY_CC); @@ -66734,7 +66628,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66788,7 +66681,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66821,7 +66713,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -67062,10 +66953,10 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -67110,7 +67001,6 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { data = data_param; - ZEPHIR_INIT_VAR(headers); object_init_ex(headers, phalcon_http_response_headers_ce); if (zephir_has_constructor(headers TSRMLS_CC)) { @@ -67126,7 +67016,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); zephir_check_call_status(); } } @@ -67639,7 +67529,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, sharpen) { static PHP_METHOD(Phalcon_Image_Adapter, reflection) { zend_bool fadeIn, _0; - zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4; + zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4, *_5; int height, opacity, ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -67677,7 +67567,13 @@ static PHP_METHOD(Phalcon_Image_Adapter, reflection) { ZVAL_LONG(_3, height); ZEPHIR_INIT_VAR(_4); ZVAL_LONG(_4, opacity); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, (fadeIn ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (fadeIn) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, _5); zephir_check_call_status(); RETURN_THIS(); @@ -67712,7 +67608,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getwidth", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); - sub_function(_2, _0, _1 TSRMLS_CC); + zephir_sub_function(_2, _0, _1); tmp = zephir_get_numberval(_2); if (offsetX < 0) { offsetX = 0; @@ -67723,7 +67619,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getheight", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); - sub_function(_3, _0, _1 TSRMLS_CC); + zephir_sub_function(_3, _0, _1); tmp = zephir_get_numberval(_3); if (offsetY < 0) { offsetY = 0; @@ -67993,7 +67889,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, save) { } - if (!(file && Z_STRLEN_P(file))) { + if (!(!(!file) && Z_STRLEN_P(file))) { ZEPHIR_OBS_VAR(_0); zephir_read_property_this(&_0, this_ptr, SL("_realpath"), PH_NOISY_CC); zephir_get_strval(_1, _0); @@ -68034,7 +67930,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, render) { } - if (!(ext && Z_STRLEN_P(ext))) { + if (!(!(!ext) && Z_STRLEN_P(ext))) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); @@ -68174,13 +68070,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -68198,7 +68094,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -68211,7 +68107,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZEPHIR_MM_RESTORE(); return; } - zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _9 = zephir_fetch_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_9); @@ -68232,7 +68128,6 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -68264,7 +68159,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -68280,35 +68175,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -68333,7 +68228,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -68356,14 +68251,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -68402,7 +68297,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -68450,11 +68345,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -68478,17 +68373,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -68498,16 +68393,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -68534,7 +68429,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -68560,17 +68455,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -68590,16 +68485,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -68627,20 +68522,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68653,11 +68548,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -68683,7 +68578,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -68711,7 +68606,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -68735,18 +68630,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -68754,13 +68649,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); zephir_check_call_status(); } } @@ -68783,7 +68678,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -68832,15 +68727,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -68866,7 +68761,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68892,7 +68787,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -68933,7 +68828,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -68945,7 +68840,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -68958,18 +68853,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -68991,21 +68886,21 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -69017,11 +68912,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -69031,11 +68926,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -69050,10 +68945,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69085,16 +68980,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -69128,12 +69023,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -69153,7 +69048,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -69165,17 +69060,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -69195,7 +69090,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -69204,7 +69099,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69225,22 +69120,22 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -69250,13 +69145,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -69267,7 +69162,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -69283,9 +69178,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -69305,9 +69200,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -69320,10 +69215,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -69333,22 +69228,22 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -69382,9 +69277,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -69397,11 +69292,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -69429,7 +69324,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); zephir_check_call_status(); i++; } @@ -69468,7 +69363,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -69481,7 +69376,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -69512,7 +69407,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -69520,30 +69415,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -69552,64 +69447,64 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -69647,25 +69542,25 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -69673,45 +69568,45 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } @@ -69743,11 +69638,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -69763,7 +69658,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69816,16 +69711,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } - zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _5 = zephir_fetch_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_5); @@ -69845,7 +69740,6 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -69904,7 +69798,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -70370,7 +70264,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70384,11 +70278,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -70427,7 +70321,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -70444,7 +70338,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70474,7 +70368,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -70554,7 +70448,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -70616,7 +70510,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -70624,7 +70518,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_CALL_METHOD(NULL, draw, "setfont", NULL, 0, fontfile); zephir_check_call_status(); } @@ -70655,24 +70549,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70688,13 +70582,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70705,13 +70599,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70730,13 +70624,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70747,13 +70641,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70769,13 +70663,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70786,13 +70680,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70860,7 +70754,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -70910,7 +70804,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -70943,7 +70837,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -70952,11 +70846,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -70970,7 +70864,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -71124,7 +71018,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -71148,7 +71042,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -71220,7 +71114,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); @@ -71379,7 +71273,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, setFormatter) { static PHP_METHOD(Phalcon_Logger_Adapter, begin) { - zephir_update_property_this(this_ptr, SL("_transaction"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -71399,7 +71297,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, commit) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 107); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_OBS_VAR(queue); zephir_read_property_this(&queue, this_ptr, SL("_queue"), PH_NOISY_CC); if (Z_TYPE_P(queue) == IS_ARRAY) { @@ -71437,7 +71339,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, rollback) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 139); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_queue"), _0 TSRMLS_CC); @@ -71466,7 +71372,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71474,11 +71379,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71504,7 +71408,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71512,11 +71415,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71542,7 +71444,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71550,11 +71451,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71580,7 +71480,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71588,11 +71487,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71618,7 +71516,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71626,11 +71523,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71656,7 +71552,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71664,11 +71559,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71694,7 +71588,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71702,11 +71595,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71732,7 +71624,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71740,11 +71631,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71770,11 +71660,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72221,11 +72110,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72260,7 +72148,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72268,11 +72155,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72298,7 +72184,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72306,11 +72191,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72336,7 +72220,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72344,11 +72227,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72374,7 +72256,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72382,11 +72263,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72412,7 +72292,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72420,11 +72299,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72450,7 +72328,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72458,11 +72335,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72488,7 +72364,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72496,11 +72371,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72526,7 +72400,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72534,11 +72407,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72599,7 +72471,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -72626,7 +72497,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -72658,7 +72529,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72738,7 +72609,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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -72823,17 +72694,17 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); - zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_4, this_ptr, "getformatter", NULL, 0); zephir_check_call_status(); @@ -72861,7 +72732,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", &_3, 238, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); @@ -72917,7 +72788,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -72939,7 +72809,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -72969,7 +72839,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -73071,9 +72941,13 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -73131,7 +73005,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", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -73146,7 +73020,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -73223,7 +73097,11 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, setShowBacktrace) { } - zephir_update_property_this(this_ptr, SL("_showBacktrace"), isShow ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isShow) { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73249,7 +73127,11 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, enableLabels) { } - zephir_update_property_this(this_ptr, SL("_enableLabels"), isEnable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isEnable) { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73268,7 +73150,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { HashPosition _6; zend_bool param, _11, _14; int type, timestamp, ZEPHIR_LAST_CALL_STATUS; - zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; + zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3 = zval_used_for_init, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; zval *message = NULL; ZEPHIR_MM_GROW(); @@ -73303,16 +73185,18 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_SINIT_NVAR(_3); + ZVAL_BOOL(&_3, (param ? 1 : 0)); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, &_3); zephir_check_call_status(); - Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); - Z_UNSET_ISREF_P(backtrace); + ZEPHIR_MAKE_REF(backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_UNREF(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { zephir_array_fetch_string(&_5, lastTrace, SL("file"), PH_NOISY | PH_READONLY, "phalcon/logger/formatter/firephp.zep", 133 TSRMLS_CC); @@ -73482,13 +73366,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73501,13 +73389,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73558,7 +73450,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); @@ -73702,7 +73594,11 @@ static PHP_METHOD(Phalcon_Mvc_Application, useImplicitView) { implicitView = zephir_get_boolval(implicitView_param); - zephir_update_property_this(this_ptr, SL("_implicitView"), implicitView ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitView) { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73761,7 +73657,6 @@ static PHP_METHOD(Phalcon_Mvc_Application, getModule) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -73799,7 +73694,6 @@ static PHP_METHOD(Phalcon_Mvc_Application, setDefaultModule) { 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)) { zephir_get_strval(defaultModule, defaultModule_param); } else { @@ -74308,7 +74202,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, getReservedAttributes) { static PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { int ZEPHIR_LAST_CALL_STATUS; - zval *useImplicitObjectIds_param = NULL, *_0; + zval *useImplicitObjectIds_param = NULL, *_0, *_1; zend_bool useImplicitObjectIds; ZEPHIR_MM_GROW(); @@ -74318,7 +74212,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, (useImplicitObjectIds ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (useImplicitObjectIds) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -74336,7 +74236,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -74383,7 +74282,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -74444,7 +74342,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -74474,7 +74371,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -74503,7 +74399,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { document = document_param; - ZEPHIR_INIT_VAR(clonedCollection); if (zephir_clone(clonedCollection, collection TSRMLS_CC) == FAILURE) { RETURN_MM(); @@ -74612,7 +74507,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -74823,7 +74718,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _postSave) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, (disableEvents ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (disableEvents) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, _1); zephir_check_call_status(); RETURN_MM_BOOL(0); @@ -74889,7 +74790,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -74922,7 +74822,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -74932,7 +74831,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -75039,7 +74938,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zval *_3; int ZEPHIR_LAST_CALL_STATUS; zend_bool success; - zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL; + zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL, *_4; ZEPHIR_MM_GROW(); @@ -75075,7 +74974,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -75104,7 +75003,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_INIT_VAR(_4); + if (success) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, _4, exists); zephir_check_call_status(); RETURN_MM(); @@ -75127,7 +75032,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findById) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75171,8 +75076,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75182,7 +75087,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75209,8 +75114,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75220,7 +75125,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75247,8 +75152,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75258,7 +75163,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75283,8 +75188,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75294,7 +75199,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -75330,7 +75235,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { 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)) { zephir_get_strval(field, field_param); } else { @@ -75349,7 +75253,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -75505,7 +75409,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -75576,7 +75484,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -75773,7 +75680,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { 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)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { @@ -75799,7 +75705,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -75825,7 +75730,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -75873,7 +75777,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { 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)) { zephir_get_strval(message, message_param); } else { @@ -76150,7 +76053,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76183,7 +76085,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76216,7 +76117,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76249,7 +76149,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76282,7 +76181,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76315,7 +76213,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76348,7 +76245,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76381,7 +76277,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76433,7 +76328,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -76553,7 +76448,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL; + zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL, *_0; zval *serviceName = NULL; ZEPHIR_MM_GROW(); @@ -76563,7 +76458,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76582,11 +76476,17 @@ 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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, _0); zephir_check_call_status(); RETURN_MM(); @@ -76605,7 +76505,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76619,11 +76518,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76642,7 +76541,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76656,11 +76554,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76681,11 +76579,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76775,7 +76673,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(beforeHandlers); zephir_read_property_this(&beforeHandlers, this_ptr, SL("_beforeHandlers"), PH_NOISY_CC); if (Z_TYPE_P(beforeHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(beforeHandlers, &_6, &_5, 0, 0, "phalcon/mvc/micro.zep", 687); for ( ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS @@ -76833,7 +76735,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(afterHandlers); zephir_read_property_this(&afterHandlers, this_ptr, SL("_afterHandlers"), PH_NOISY_CC); if (Z_TYPE_P(afterHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(afterHandlers, &_10, &_9, 0, 0, "phalcon/mvc/micro.zep", 742); for ( ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS @@ -76909,7 +76815,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(finishHandlers); zephir_read_property_this(&finishHandlers, this_ptr, SL("_finishHandlers"), PH_NOISY_CC); if (Z_TYPE_P(finishHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(params); ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_15, &_14, 0, 0, "phalcon/mvc/micro.zep", 832); @@ -77019,7 +76929,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { static PHP_METHOD(Phalcon_Mvc_Micro, stop) { - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -77391,7 +77305,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -77434,7 +77347,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -77477,7 +77389,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77506,7 +77417,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77535,7 +77445,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77658,7 +77567,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_fetch_params(1, 1, 2, &data_param, &dataColumnMap, &whiteList); data = data_param; - if (!dataColumnMap) { dataColumnMap = ZEPHIR_GLOBAL(global_null); } @@ -77762,7 +77670,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_fetch_params(1, 3, 2, &base, &data_param, &columnMap, &dirtyState_param, &keepSnapshots_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -77886,7 +77793,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { zephir_fetch_params(1, 3, 0, &data_param, &columnMap, &hydrationMode_param); data = data_param; - hydrationMode = zephir_get_intval(hydrationMode_param); @@ -77960,7 +77866,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_fetch_params(1, 2, 1, &base, &data_param, &dirtyState_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -78182,12 +78087,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, 303, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 302, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -78373,7 +78278,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(functionName, functionName_param); } else { @@ -78384,7 +78288,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -78606,7 +78509,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -78639,7 +78541,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -78649,7 +78550,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -79370,7 +79271,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (ZEPHIR_IS_FALSE_IDENTICAL(_3)) { RETURN_MM_BOOL(0); } - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } if (exists) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "beforeUpdate", ZEPHIR_TEMP_PARAM_COPY); @@ -79742,9 +79647,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -79835,12 +79740,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL, *_6 = NULL, *_11 = NULL, *_12 = NULL; - HashTable *_2, *_9; - HashPosition _1, _8; + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_8 = NULL, *_13 = NULL, *_14 = NULL; + HashTable *_3, *_11; + HashPosition _2, _10; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting; - zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0 = NULL, **_3, *_7 = NULL, **_10; + zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0, *_1 = NULL, **_4, *_6 = NULL, *_9 = NULL, **_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -79848,29 +79753,41 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { nesting = 0; - ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (nesting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); zephir_get_class(className, this_ptr, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, 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", 2592); + ZEPHIR_CPY_WRT(manager, _1); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2592); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) ) { - ZEPHIR_GET_HMKEY(name, _2, _1); - ZEPHIR_GET_HVALUE(record, _3); - ZEPHIR_CALL_METHOD(&_0, manager, "getrelationbyalias", &_4, 0, className, name); + ZEPHIR_GET_HMKEY(name, _3, _2); + ZEPHIR_GET_HVALUE(record, _4); + ZEPHIR_CALL_METHOD(&_1, manager, "getrelationbyalias", &_5, 0, className, name); zephir_check_call_status(); - ZEPHIR_CPY_WRT(relation, _0); + ZEPHIR_CPY_WRT(relation, _1); if (Z_TYPE_P(relation) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&type, relation, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(type, 0)) { if (Z_TYPE_P(record) != IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2541); return; @@ -79882,36 +79799,48 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } - ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, record, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_0))) { - ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); + if (!(zephir_is_true(_1))) { + ZEPHIR_CALL_METHOD(&_9, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); + zephir_is_iterable(_9, &_11, &_10, 0, 0, "phalcon/mvc/model.zep", 2579); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS + ; zephir_hash_move_forward_ex(_11, &_10) ) { - ZEPHIR_GET_HVALUE(message, _10); + ZEPHIR_GET_HVALUE(message, _12); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_11, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_13, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_12, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_14, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } - ZEPHIR_CALL_METHOD(&_7, record, "readattribute", NULL, 0, referencedFields); + ZEPHIR_CALL_METHOD(&_9, record, "readattribute", NULL, 0, referencedFields); zephir_check_call_status(); - zephir_update_property_zval_zval(this_ptr, columns, _7 TSRMLS_CC); + zephir_update_property_zval_zval(this_ptr, columns, _9 TSRMLS_CC); } } } @@ -79921,12 +79850,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_11 = NULL, *_20 = NULL, *_21 = NULL, *_22 = NULL, *_27 = NULL, *_28 = NULL; - HashTable *_2, *_14, *_18, *_25; - HashPosition _1, _13, _17, _24; + zephir_fcall_cache_entry *_4 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_21 = NULL, *_22 = NULL, *_23 = NULL, *_28 = NULL, *_29 = NULL; + HashTable *_2, *_15, *_19, *_26; + HashPosition _1, _14, _18, _25; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting, isThrough, _5; - zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_9 = NULL, *_10 = NULL, *_12 = NULL, **_15, *_16 = NULL, **_19, *_23 = NULL, **_26; + zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_6 = NULL, *_10 = NULL, *_11 = NULL, *_13 = NULL, **_16, *_17 = NULL, **_20, *_24 = NULL, **_27; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -79960,7 +79889,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { _5 = Z_TYPE_P(record) != IS_ARRAY; } if (_5) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2631); return; @@ -79972,7 +79907,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; @@ -79986,21 +79927,27 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, columns, PH_SILENT_CC))) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "The column '", columns, "' needs to be present in the model"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, relation, "isthrough", NULL, 0); zephir_check_call_status(); - isThrough = zephir_get_boolval(_12); + isThrough = zephir_get_boolval(_13); if (isThrough) { ZEPHIR_CALL_METHOD(&intermediateModelName, relation, "getintermediatemodel", NULL, 0); zephir_check_call_status(); @@ -80009,42 +79956,48 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); + zephir_is_iterable(relatedRecords, &_15, &_14, 0, 0, "phalcon/mvc/model.zep", 2769); for ( - ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS - ; zephir_hash_move_forward_ex(_14, &_13) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(recordAfter, _15); + ZEPHIR_GET_HVALUE(recordAfter, _16); if (!(isThrough)) { ZEPHIR_CALL_METHOD(NULL, recordAfter, "writeattribute", NULL, 0, referencedFields, value); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&_12, recordAfter, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, recordAfter, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); + if (!(zephir_is_true(_13))) { + ZEPHIR_CALL_METHOD(&_17, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); + zephir_is_iterable(_17, &_19, &_18, 0, 0, "phalcon/mvc/model.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS - ; zephir_hash_move_forward_ex(_18, &_17) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(message, _19); + ZEPHIR_GET_HVALUE(message, _20); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_21, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_22, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } if (isThrough) { - ZEPHIR_INIT_NVAR(_9); - ZVAL_BOOL(_9, 1); - ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_22, 0, intermediateModelName, _9); + ZEPHIR_INIT_NVAR(_10); + ZVAL_BOOL(_10, 1); + ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_23, 0, intermediateModelName, _10); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateFields, value); zephir_check_call_status(); @@ -80052,25 +80005,31 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateReferencedFields, intermediateValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_16, intermediateModel, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_17, intermediateModel, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_16))) { - ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); + if (!(zephir_is_true(_17))) { + ZEPHIR_CALL_METHOD(&_24, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); + zephir_is_iterable(_24, &_26, &_25, 0, 0, "phalcon/mvc/model.zep", 2763); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS + ; zephir_hash_move_forward_ex(_26, &_25) ) { - ZEPHIR_GET_HVALUE(message, _26); + ZEPHIR_GET_HVALUE(message, _27); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_27, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_10); + if (nesting) { + ZVAL_BOOL(_10, 1); + } else { + ZVAL_BOOL(_10, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, _10); zephir_check_call_status(); RETURN_MM_BOOL(0); } @@ -80078,21 +80037,33 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } } else { if (Z_TYPE_P(record) != IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_29, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVS(_11, "There are no defined relations for the model '", className, "' using alias '", name, "'"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(1); @@ -80181,7 +80152,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); zephir_check_call_status(); zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -80433,7 +80404,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "beforeDelete", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_2, this_ptr, "fireeventcancel", NULL, 0, _6); @@ -80594,7 +80569,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -80610,7 +80589,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -80640,7 +80618,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -80668,7 +80645,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); @@ -80703,7 +80679,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); @@ -80736,7 +80711,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); @@ -80769,7 +80743,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); @@ -80801,7 +80774,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80833,7 +80805,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80865,7 +80836,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80897,7 +80867,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -80908,7 +80877,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80947,7 +80915,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, addBehavior) { static PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { int ZEPHIR_LAST_CALL_STATUS; - zval *keepSnapshot_param = NULL, *_0; + zval *keepSnapshot_param = NULL, *_0, *_1; zend_bool keepSnapshot; ZEPHIR_MM_GROW(); @@ -80957,7 +80925,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, (keepSnapshot ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (keepSnapshot) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -80976,7 +80950,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { zephir_fetch_params(1, 1, 1, &data_param, &columnMap); data = data_param; - if (!columnMap) { columnMap = ZEPHIR_GLOBAL(global_null); } @@ -81230,7 +81203,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { int ZEPHIR_LAST_CALL_STATUS; - zval *dynamicUpdate_param = NULL, *_0; + zval *dynamicUpdate_param = NULL, *_0, *_1; zend_bool dynamicUpdate; ZEPHIR_MM_GROW(); @@ -81240,7 +81213,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, (dynamicUpdate ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (dynamicUpdate) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -81312,7 +81291,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -81323,7 +81301,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -81444,7 +81421,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { } ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_3, modelName); - _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _4); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -81510,7 +81487,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) != IS_NULL) { RETURN_CCTOR(records); @@ -81553,7 +81530,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) == IS_NULL) { ZEPHIR_INIT_VAR(_1); @@ -81664,7 +81641,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { 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)) { zephir_get_strval(property, property_param); } else { @@ -81736,7 +81712,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { 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)) { zephir_get_strval(property, property_param); } else { @@ -81788,7 +81763,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -81923,7 +81897,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setup) { options = options_param; - ZEPHIR_OBS_VAR(disableEvents); if (zephir_array_isset_string_fetch(&disableEvents, options, SS("events"), 0 TSRMLS_CC)) { ZEPHIR_GLOBAL(orm).events = zend_is_true(disableEvents); @@ -82169,7 +82142,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *routes, *_1, *_4; + zval *routes = NULL, *_1, *_4; zval *defaultRoutes_param = NULL, *_0 = NULL, *_2 = NULL, *_5; zend_bool defaultRoutes; @@ -82183,13 +82156,14 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - defaultRoutes = Z_BVAL_P(defaultRoutes_param); } ZEPHIR_INIT_VAR(routes); array_init(routes); + ZEPHIR_INIT_NVAR(routes); + array_init(routes); if (defaultRoutes) { ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_mvc_router_route_ce); @@ -82320,11 +82294,14 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } - remove = Z_BVAL_P(remove_param); - zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (remove) { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -82341,7 +82318,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { 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)) { zephir_get_strval(namespaceName, namespaceName_param); } else { @@ -82367,7 +82343,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { 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)) { zephir_get_strval(moduleName, moduleName_param); } else { @@ -82393,7 +82368,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -82419,7 +82393,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -82443,7 +82416,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaults) { defaults = defaults_param; - if (zephir_array_isset_string_fetch(&namespaceName, defaults, SS("namespace"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_defaultNamespace"), namespaceName TSRMLS_CC); } @@ -82511,7 +82483,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { } - if (!(uri && Z_STRLEN_P(uri))) { + if (!(!(!uri) && Z_STRLEN_P(uri))) { ZEPHIR_CALL_METHOD(&realUri, this_ptr, "getrewriteuri", NULL, 0); zephir_check_call_status(); } else { @@ -82542,7 +82514,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { array_init(params); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_matchedRoute"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_OBS_VAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); @@ -82728,9 +82704,17 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { } } if (zephir_is_true(routeFound)) { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } if (!(zephir_is_true(routeFound))) { ZEPHIR_OBS_VAR(notFoundPaths); @@ -82828,7 +82812,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82887,7 +82870,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82925,7 +82907,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82963,7 +82944,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83001,7 +82981,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83039,7 +83018,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83077,7 +83055,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83115,7 +83092,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83339,7 +83315,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -83509,7 +83484,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { 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)) { zephir_get_strval(baseUri, baseUri_param); } else { @@ -83539,7 +83513,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { 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)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { @@ -83613,7 +83586,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { 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)) { zephir_get_strval(basePath, basePath_param); } else { @@ -83783,7 +83755,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 364, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 363, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { @@ -84267,7 +84239,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84291,7 +84262,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setVars) { zephir_fetch_params(1, 1, 1, ¶ms_param, &merge_param); params = params_param; - if (!merge_param) { merge = 1; } else { @@ -84328,7 +84298,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84354,7 +84323,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84434,7 +84402,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 365, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 364, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -84488,13 +84456,13 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { - zephir_fcall_cache_entry *_9 = NULL, *_10 = NULL; + zephir_fcall_cache_entry *_9 = NULL, *_11 = NULL; HashTable *_6; HashPosition _5; int renderLevel, cacheLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean, notExists; zval *viewPath = NULL; - zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_11; + zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_10 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &engines, &viewPath_param, &silence_param, &mustClean_param, &cache); @@ -84585,14 +84553,20 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { continue; } } - ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_8); + if (mustClean) { + ZVAL_BOOL(_8, 1); + } else { + ZVAL_BOOL(_8, 0); + } + ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, _8); zephir_check_call_status(); notExists = 0; if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_STRING(_8, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_10, 0, _8, this_ptr); - zephir_check_temp_parameter(_8); + ZEPHIR_INIT_NVAR(_10); + ZVAL_STRING(_10, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_11, 0, _10, this_ptr); + zephir_check_temp_parameter(_10); zephir_check_call_status(); } break; @@ -84610,9 +84584,9 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { if (!(silence)) { ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_mvc_view_exception_ce); - ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVS(_11, "View '", viewsDirPath, "' was not found in the views directory"); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _11); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "View '", viewsDirPath, "' was not found in the views directory"); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _12); zephir_check_call_status(); zephir_throw_exception_debug(_8, "phalcon/mvc/view.zep", 684 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -84633,7 +84607,6 @@ static PHP_METHOD(Phalcon_Mvc_View, registerEngines) { engines = engines_param; - zephir_update_property_this(this_ptr, SL("_registeredEngines"), engines TSRMLS_CC); RETURN_THISW(); @@ -84654,7 +84627,6 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { 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)) { zephir_get_strval(view, view_param); } else { @@ -84699,12 +84671,12 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { static PHP_METHOD(Phalcon_Mvc_View, render) { - HashTable *_11, *_15; - HashPosition _10, _14; - zephir_fcall_cache_entry *_2 = NULL, *_9 = NULL; + HashTable *_12, *_17; + HashPosition _11, _16; + zephir_fcall_cache_entry *_2 = NULL, *_10 = NULL; int renderLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean; - zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, **_12, *_13 = NULL, **_16, *_17 = NULL, *_18, *_19 = NULL, *_20 = NULL; + zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, *_9 = NULL, **_13, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21, *_22 = NULL, *_23 = NULL; zval *controllerName = NULL, *actionName = NULL, *_3; ZEPHIR_MM_GROW(); @@ -84714,7 +84686,6 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -84725,7 +84696,6 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -84818,7 +84788,19 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 1); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, renderView, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_7); + if (silence) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_INIT_VAR(_9); + if (mustClean) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, renderView, _7, _9, cache); zephir_check_call_status(); } } @@ -84831,15 +84813,27 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesBefore, this_ptr, SL("_templatesBefore"), PH_NOISY_CC); if (Z_TYPE_P(templatesBefore) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesBefore, &_11, &_10, 0, 0, "phalcon/mvc/view.zep", 881); + zephir_is_iterable(templatesBefore, &_12, &_11, 0, 0, "phalcon/mvc/view.zep", 881); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zephir_hash_move_forward_ex(_12, &_11) ) { - ZEPHIR_GET_HVALUE(templateBefore, _12); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, templateBefore); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateBefore, _13); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, templateBefore); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } silence = 1; @@ -84851,9 +84845,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 3); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, layoutName); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, layoutName); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } } @@ -84866,15 +84872,27 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesAfter, this_ptr, SL("_templatesAfter"), PH_NOISY_CC); if (Z_TYPE_P(templatesAfter) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesAfter, &_15, &_14, 0, 0, "phalcon/mvc/view.zep", 912); + zephir_is_iterable(templatesAfter, &_17, &_16, 0, 0, "phalcon/mvc/view.zep", 912); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) ) { - ZEPHIR_GET_HVALUE(templateAfter, _16); - ZEPHIR_INIT_LNVAR(_17); - ZEPHIR_CONCAT_VV(_17, layoutsDir, templateAfter); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _17, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateAfter, _18); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_VV(_19, layoutsDir, templateAfter); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_20); + if (mustClean) { + ZVAL_BOOL(_20, 1); + } else { + ZVAL_BOOL(_20, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _19, _9, _20, cache); zephir_check_call_status(); } silence = 1; @@ -84887,20 +84905,32 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZVAL_LONG(_5, 5); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_mainView"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _5, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _5, _9, _15, cache); zephir_check_call_status(); } } - ZEPHIR_INIT_ZVAL_NREF(_18); - ZVAL_LONG(_18, 0); - zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _18 TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_21); + ZVAL_LONG(_21, 0); + zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _21 TSRMLS_CC); if (Z_TYPE_P(cache) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(&_19, cache, "isstarted", NULL, 0); + ZEPHIR_CALL_METHOD(&_22, cache, "isstarted", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_19)) { - ZEPHIR_CALL_METHOD(&_20, cache, "isfresh", NULL, 0); + if (ZEPHIR_IS_TRUE(_22)) { + ZEPHIR_CALL_METHOD(&_23, cache, "isfresh", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_20)) { + if (ZEPHIR_IS_TRUE(_23)) { ZEPHIR_CALL_METHOD(NULL, cache, "save", NULL, 0); zephir_check_call_status(); } else { @@ -84969,7 +84999,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -84985,7 +85014,7 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 284); zephir_check_call_status(); RETURN_MM(); @@ -85004,7 +85033,6 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -85062,7 +85090,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -85073,7 +85100,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -85294,7 +85320,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath) { static PHP_METHOD(Phalcon_Mvc_View, disable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -85302,7 +85332,11 @@ static PHP_METHOD(Phalcon_Mvc_View, disable) { static PHP_METHOD(Phalcon_Mvc_View, enable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -85312,8 +85346,16 @@ static PHP_METHOD(Phalcon_Mvc_View, reset) { zval *_0; - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_engines"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (0) { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_cache"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(_0, 5); @@ -85340,7 +85382,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85366,7 +85407,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85402,7 +85442,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85606,7 +85645,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -85636,7 +85674,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -85752,7 +85789,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85777,7 +85813,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85807,7 +85842,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85863,7 +85897,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -86075,7 +86108,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -86110,7 +86142,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -86218,7 +86249,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -86295,7 +86325,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -86442,7 +86471,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -86540,7 +86568,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -86566,7 +86593,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -86669,7 +86696,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { 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)) { zephir_get_strval(method, method_param); } else { @@ -86701,7 +86727,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { 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)) { zephir_get_strval(prefix, prefix_param); } else { @@ -86744,7 +86769,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setHandler) { zephir_update_property_this(this_ptr, SL("_handler"), handler TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -86760,11 +86789,14 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } - lazy = Z_BVAL_P(lazy_param); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -86796,7 +86828,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86829,7 +86860,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86863,7 +86893,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86897,7 +86926,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86931,7 +86959,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86965,7 +86992,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86999,7 +87025,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -87033,7 +87058,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -87164,7 +87188,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { 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)) { zephir_get_strval(definition, definition_param); } else { @@ -87193,7 +87216,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -87209,7 +87231,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(handler); zephir_fetch_safe_class(_0, definition); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(handler, _1); if (zephir_has_constructor(handler TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, handler, "__construct", NULL, 0); @@ -87300,7 +87322,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -87330,7 +87351,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -87485,7 +87505,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -87517,7 +87536,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, bind) { bindParams = bindParams_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bind", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindParams TSRMLS_CC); @@ -87536,7 +87554,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, bindTypes) { bindTypes = bindTypes_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bindTypes", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindTypes TSRMLS_CC); @@ -87589,7 +87606,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87652,7 +87668,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87689,7 +87704,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87726,7 +87740,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87762,7 +87775,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87823,7 +87835,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87856,7 +87867,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87925,7 +87935,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87996,7 +88005,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88042,7 +88050,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88090,7 +88097,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88100,7 +88106,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -88149,7 +88154,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88159,7 +88163,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -88204,7 +88207,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -88232,7 +88234,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -88260,7 +88261,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -88397,7 +88397,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, cache) { cache = cache_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "cache", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, cache TSRMLS_CC); @@ -88521,7 +88520,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88529,7 +88527,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZVAL_EMPTY_STRING(modelName); } data = data_param; - if (!operator_param) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); @@ -88538,7 +88535,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(operator, operator_param); } else { @@ -88558,7 +88554,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { zephir_check_call_status(); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_1, modelName); - _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _2); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -88622,12 +88618,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 308, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 307, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 309, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 308, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -88938,7 +88934,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88976,7 +88971,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88997,7 +88991,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { if (zephir_array_isset_fetch(&model, _0, _1, 0 TSRMLS_CC)) { if (newInstance) { zephir_fetch_safe_class(_2, modelName); - _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _3); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -89012,7 +89006,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { } if (zephir_class_exists(modelName, 1 TSRMLS_CC)) { zephir_fetch_safe_class(_5, modelName); - _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _6); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -89045,7 +89039,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -89101,7 +89094,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -89150,7 +89142,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89179,7 +89170,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89207,7 +89197,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89371,7 +89360,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -89449,7 +89437,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -89613,7 +89600,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89647,7 +89633,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89690,7 +89676,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89724,7 +89709,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89767,7 +89752,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89802,7 +89786,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89845,7 +89829,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -89856,7 +89839,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89899,9 +89881,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 311, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 310, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89944,7 +89926,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -89955,7 +89936,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -89993,7 +89973,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90004,7 +89983,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90042,7 +90020,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90053,7 +90030,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90091,7 +90067,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90102,7 +90077,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90139,7 +90113,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90150,7 +90123,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -90212,12 +90184,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1128); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1130 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1130); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -90244,12 +90216,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1149); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1151 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1151); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -90277,12 +90249,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } else { if (Z_TYPE_P(findParamsTwo) == IS_STRING) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1174); + zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1176 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", findParamsTwo); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1176); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } } @@ -90308,7 +90280,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90362,7 +90333,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", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 312, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 311, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -90427,10 +90398,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 312, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 311, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 312, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 311, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); @@ -90504,7 +90475,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90515,7 +90485,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -90544,7 +90513,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90555,7 +90523,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -90589,7 +90556,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90600,7 +90566,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90648,7 +90613,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90659,7 +90623,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90707,7 +90670,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90718,7 +90680,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90874,7 +90835,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90945,7 +90905,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(first, first_param); } else { @@ -90956,7 +90915,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(second, second_param); } else { @@ -91010,7 +90968,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -91054,7 +91011,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -91170,7 +91126,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -91342,7 +91297,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -91382,7 +91336,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -91415,7 +91368,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -91495,7 +91447,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_mvc_model_message_ce); zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); @@ -91927,16 +91878,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMapIndex) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 374); @@ -91949,16 +91900,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 391); @@ -91971,16 +91922,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 2); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 408); @@ -91993,16 +91944,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 3); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 425); @@ -92015,16 +91966,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 4); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 442); @@ -92037,16 +91988,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 5); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 5); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 459); @@ -92059,16 +92010,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, _0; + zval *model, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 8); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 8); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, _0); zephir_check_call_status(); RETURN_MM(); @@ -92077,16 +92028,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 9); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 9); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 491); @@ -92099,16 +92050,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 508); @@ -92121,16 +92072,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 525); @@ -92144,7 +92095,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92152,9 +92103,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92164,7 +92115,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92172,9 +92123,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92184,7 +92135,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92192,9 +92143,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92203,16 +92154,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 578); @@ -92225,16 +92176,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDefaultValues) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 12); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 12); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 595); @@ -92248,16 +92199,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { @@ -92275,16 +92226,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getReverseColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { @@ -92597,9 +92548,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, __construct) { _0 = zephir_array_isset_string_fetch(&enableImplicitJoins, options, SS("enable_implicit_joins"), 0 TSRMLS_CC); } if (_0) { - zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), (ZEPHIR_IS_TRUE(enableImplicitJoins)) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (ZEPHIR_IS_TRUE(enableImplicitJoins)) { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { - zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), (ZEPHIR_GLOBAL(orm).enable_implicit_joins) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (ZEPHIR_GLOBAL(orm).enable_implicit_joins) { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -92657,7 +92616,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setUniqueRow) { uniqueRow = zephir_get_boolval(uniqueRow_param); - zephir_update_property_this(this_ptr, SL("_uniqueRow"), uniqueRow ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (uniqueRow) { + zephir_update_property_this(this_ptr, SL("_uniqueRow"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_uniqueRow"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -92684,7 +92647,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { expr = expr_param; - ZEPHIR_OBS_VAR(columnName); zephir_array_fetch_string(&columnName, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 196 TSRMLS_CC); ZEPHIR_OBS_VAR(sqlColumnAliases); @@ -92862,14 +92824,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { argument = argument_param; - zephir_array_fetch_string(&_0, argument, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 336 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 352)) { zephir_create_array(return_value, 1, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("all"), 1); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 318, argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 317, argument); zephir_check_call_status(); RETURN_MM(); @@ -92890,7 +92851,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { expr = expr_param; - ZEPHIR_INIT_VAR(whenClauses); array_init(whenClauses); zephir_array_fetch_string(&_0, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 350 TSRMLS_CC); @@ -92905,11 +92865,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("when"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 354 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_8, whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 355 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _8); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _8); zephir_check_call_status(); zephir_array_update_string(&_4, SL("then"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 356); @@ -92918,7 +92878,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("else"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 360 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 361); @@ -92927,7 +92887,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("case"), 1); zephir_array_fetch_string(&_6, expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 367 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&return_value, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -92950,7 +92910,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { expr = expr_param; - ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, expr, SS("arguments"), 0 TSRMLS_CC)) { if (zephir_array_isset_string(expr, SS("distinct"))) { @@ -92967,13 +92926,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, argument); zephir_check_call_status(); zephir_array_append(&functionArgs, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 391); } } else { zephir_create_array(functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, arguments); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, arguments); zephir_check_call_status(); zephir_array_fast_append(functionArgs, _3); } @@ -93011,10 +92970,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { HashTable *_14; HashPosition _13; - zephir_fcall_cache_entry *_0 = NULL, *_1 = NULL; + zephir_fcall_cache_entry *_1 = NULL, *_2 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool quoting, tempNotQuoting; - zval *expr, *quoting_param = NULL, *exprType, *exprLeft, *exprRight, *left = NULL, *right = NULL, *listItems, *exprListItem = NULL, *exprReturn = NULL, *value = NULL, *escapedValue = NULL, *exprValue = NULL, *valueParts, *name, *bindType, *bind, *_2 = NULL, *_3 = NULL, *_4, _5, _6, *_7 = NULL, *_8 = NULL, *_9, *_10 = NULL, *_11, *_12 = NULL, **_15; + zval *expr, *quoting_param = NULL, *exprType, *exprLeft, *exprRight, *left = NULL, *right = NULL, *listItems, *exprListItem = NULL, *exprReturn = NULL, *value = NULL, *escapedValue = NULL, *exprValue = NULL, *valueParts, *name, *bindType, *bind, *_0 = NULL, *_3 = NULL, *_4, _5, _6, *_7 = NULL, *_8 = NULL, *_9, *_10 = NULL, *_11, *_12 = NULL, **_15; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &expr, "ing_param); @@ -93036,12 +92995,24 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { if (!ZEPHIR_IS_LONG(exprType, 409)) { ZEPHIR_OBS_VAR(exprLeft); if (zephir_array_isset_string_fetch(&exprLeft, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 318, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (tempNotQuoting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 317, exprLeft, _0); zephir_check_call_status(); } ZEPHIR_OBS_VAR(exprRight); if (zephir_array_isset_string_fetch(&exprRight, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 318, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (tempNotQuoting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 317, exprRight, _0); zephir_check_call_status(); } } @@ -93119,7 +93090,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 320, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_2, 319, expr); zephir_check_call_status(); break; } @@ -93205,9 +93176,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("literal"), 1); - ZEPHIR_OBS_VAR(_2); - zephir_array_fetch_string(&_2, expr, SL("value"), PH_NOISY, "phalcon/mvc/model/query.zep", 535 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_OBS_VAR(_3); + zephir_array_fetch_string(&_3, expr, SL("value"), PH_NOISY, "phalcon/mvc/model/query.zep", 535 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 333)) { @@ -93249,14 +93220,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("placeholder"), 1); - ZEPHIR_INIT_VAR(_3); + ZEPHIR_INIT_NVAR(_0); zephir_array_fetch_string(&_4, expr, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 565 TSRMLS_CC); ZEPHIR_SINIT_VAR(_5); ZVAL_STRING(&_5, "?", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ":", 0); - zephir_fast_str_replace(&_3, &_5, &_6, _4 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); + zephir_fast_str_replace(&_0, &_5, &_6, _4 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_0, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 274)) { @@ -93281,9 +93252,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { zephir_array_fetch_long(&bindType, valueParts, 1, PH_NOISY, "phalcon/mvc/model/query.zep", 578 TSRMLS_CC); do { if (ZEPHIR_IS_STRING(bindType, "str")) { - ZEPHIR_INIT_NVAR(_3); - ZVAL_LONG(_3, 2); - zephir_update_property_array(this_ptr, SL("_bindTypes"), name, _3 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_0); + ZVAL_LONG(_0, 2); + zephir_update_property_array(this_ptr, SL("_bindTypes"), name, _0 TSRMLS_CC); ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("placeholder"), 1); @@ -93558,18 +93529,18 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("literal"), 1); - ZEPHIR_OBS_NVAR(_2); - zephir_array_fetch_string(&_2, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 710 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_OBS_NVAR(_3); + zephir_array_fetch_string(&_3, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 710 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 321, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 320, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 322, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 321, expr); zephir_check_call_status(); break; } @@ -93577,20 +93548,20 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("select"), 1); - ZEPHIR_INIT_NVAR(_3); - ZVAL_BOOL(_3, 1); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 323, expr, _3); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, 1); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 322, expr, _0); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_12, PH_COPY | PH_SEPARATE); break; } - ZEPHIR_INIT_NVAR(_3); - object_init_ex(_3, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_NVAR(_0); + object_init_ex(_0, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "Unknown expression type ", exprType); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model/query.zep", 726 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/model/query.zep", 726 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -93598,7 +93569,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SS("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 320, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_2, 319, expr); zephir_check_call_status(); RETURN_MM(); } @@ -93611,7 +93582,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ; zephir_hash_move_forward_ex(_14, &_13) ) { ZEPHIR_GET_HVALUE(exprListItem, _15); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 318, exprListItem); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_1, 317, exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, _12, PH_SEPARATE, "phalcon/mvc/model/query.zep", 745); } @@ -93640,7 +93611,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { column = column_param; - ZEPHIR_OBS_VAR(columnType); if (!(zephir_array_isset_string_fetch(&columnType, column, SS("type"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Corrupted SELECT AST", "phalcon/mvc/model/query.zep", 764); @@ -93733,7 +93703,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("scalar"), 1); ZEPHIR_OBS_VAR(columnData); zephir_array_fetch_string(&columnData, column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 871 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 318, columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 317, columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(balias); if (zephir_array_isset_string_fetch(&balias, sqlExprColumn, SS("balias"), 0 TSRMLS_CC)) { @@ -93904,7 +93874,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { 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)) { zephir_get_strval(joinType, joinType_param); } else { @@ -93931,7 +93900,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_4); @@ -93939,7 +93908,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_fast_append(sqlJoinConditions, _0); @@ -93975,7 +93944,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_4); @@ -93983,7 +93952,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, _0, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1076); @@ -94066,7 +94035,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_8, SS("type"), 355); zephir_array_update_string(&_8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _8); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_10); @@ -94074,7 +94043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_10, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_10, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _10); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _10); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7, PH_COPY | PH_SEPARATE); } @@ -94096,7 +94065,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_12, SS("type"), 355); zephir_array_update_string(&_12, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _12); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _12); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_13); @@ -94104,7 +94073,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_13, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_13, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_13, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _13); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _13); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -94125,7 +94094,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_14, SS("type"), 355); zephir_array_update_string(&_14, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _14); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _14); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_15); @@ -94133,7 +94102,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_15, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_15, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _15); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _15); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -94209,7 +94178,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 324, manager, joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 323, 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", 1315 TSRMLS_CC); @@ -94223,7 +94192,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", &_4, 325, joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 324, joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, joinItem, SS("alias"), 0 TSRMLS_CC)) { @@ -94291,7 +94260,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_GET_HVALUE(joinItem, _11); ZEPHIR_OBS_NVAR(joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, joinItem, SS("conditions"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 318, joinExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 317, joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, joinAliasName, &_12, PH_COPY | PH_SEPARATE); } @@ -94388,10 +94357,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 326, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 325, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 327, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 326, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } if (zephir_array_isset_long(sqlJoin, 0)) { @@ -94462,7 +94431,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1625 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 318, _3); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 317, _3); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, orderItem, SS("sort"), 1 TSRMLS_CC)) { ZEPHIR_INIT_NVAR(orderPartSort); @@ -94505,7 +94474,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { group = group_param; - ZEPHIR_INIT_VAR(groupParts); if (zephir_array_isset_long(group, 0)) { array_init(groupParts); @@ -94515,13 +94483,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(groupItem, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, groupItem); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1659); } } else { zephir_create_array(groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, group); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, group); zephir_check_call_status(); zephir_array_fast_append(groupParts, _3); } @@ -94534,26 +94502,27 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { zephir_fcall_cache_entry *_1 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval *limitClause_param = NULL, *number, *offset, *_0 = NULL; - zval *limitClause = NULL, *limit; + zval *limitClause = NULL, *limit = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &limitClause_param); limitClause = limitClause_param; - ZEPHIR_INIT_VAR(limit); array_init(limit); + ZEPHIR_INIT_NVAR(limit); + array_init(limit); ZEPHIR_OBS_VAR(number); if (zephir_array_isset_string_fetch(&number, limitClause, SS("number"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, number); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(offset); if (zephir_array_isset_string_fetch(&offset, limitClause, SS("offset"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, offset); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_0, PH_COPY | PH_SEPARATE); } @@ -94876,12 +94845,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", &_32, 328, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, 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", &_32, 328, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(sqlJoins); @@ -94897,7 +94866,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { ; zephir_hash_move_forward_ex(_34, &_33) ) { ZEPHIR_GET_HVALUE(column, _35); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 329, column); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 328, column); zephir_check_call_status(); zephir_is_iterable(_3, &_38, &_37, 0, 0, "phalcon/mvc/model/query.zep", 1997); for ( @@ -94946,31 +94915,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 318, where); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 317, where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SS("groupBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 330, groupBy); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 329, groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(having); if (zephir_array_isset_string_fetch(&having, ast, SS("having"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 318, having); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 317, having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(order); if (zephir_array_isset_string_fetch(&order, ast, SS("orderBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 331, order); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 330, order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_41, PH_COPY | PH_SEPARATE); } @@ -94991,13 +94960,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { - zephir_fcall_cache_entry *_9 = NULL, *_13 = NULL, *_16 = NULL; + zephir_fcall_cache_entry *_9 = NULL, *_13 = NULL, *_17 = NULL; zval *_7 = NULL; HashTable *_5, *_11; HashPosition _4, _10; int ZEPHIR_LAST_CALL_STATUS; zend_bool notQuoting; - zval *ast, *qualifiedName, *nsAlias, *manager, *modelName, *model = NULL, *source = NULL, *schema = NULL, *exprValues, *exprValue = NULL, *sqlInsert, *metaData, *fields, *sqlFields, *field = NULL, *name = NULL, *realModelName = NULL, *_0 = NULL, *_1, *_2, *_3 = NULL, **_6, *_8 = NULL, **_12, *_14, *_15 = NULL; + zval *ast, *qualifiedName, *nsAlias, *manager, *modelName, *model = NULL, *source = NULL, *schema = NULL, *exprValues, *exprValue = NULL, *sqlInsert, *metaData, *fields, *sqlFields, *field = NULL, *name = NULL, *realModelName = NULL, *_0 = NULL, *_1, *_2, *_3 = NULL, **_6, *_8 = NULL, **_12, *_14 = NULL, *_15, *_16 = NULL; ZEPHIR_MM_GROW(); @@ -95062,7 +95031,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_OBS_NVAR(_8); zephir_array_fetch_string(&_8, exprValue, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2110 TSRMLS_CC); zephir_array_update_string(&_7, SL("type"), &_8, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 318, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_3); + if (notQuoting) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 317, exprValue, _3); zephir_check_call_status(); zephir_array_update_string(&_7, SL("value"), &_0, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, _7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2112); @@ -95088,14 +95063,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_CALL_METHOD(&_0, metaData, "hasattribute", &_13, 0, model, name); zephir_check_call_status(); if (!(zephir_is_true(_0))) { - ZEPHIR_INIT_NVAR(_3); - object_init_ex(_3, phalcon_mvc_model_exception_ce); - _14 = zephir_fetch_nproperty_this(this_ptr, SL("_phql"), PH_NOISY_CC); - ZEPHIR_INIT_LNVAR(_15); - ZEPHIR_CONCAT_SVSVSV(_15, "The model '", modelName, "' doesn't have the attribute '", name, "', when preparing: ", _14); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_16, 9, _15); + ZEPHIR_INIT_NVAR(_14); + object_init_ex(_14, phalcon_mvc_model_exception_ce); + _15 = zephir_fetch_nproperty_this(this_ptr, SL("_phql"), PH_NOISY_CC); + ZEPHIR_INIT_LNVAR(_16); + ZEPHIR_CONCAT_SVSVSV(_16, "The model '", modelName, "' doesn't have the attribute '", name, "', when preparing: ", _15); + ZEPHIR_CALL_METHOD(NULL, _14, "__construct", &_17, 9, _16); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model/query.zep", 2130 TSRMLS_CC); + zephir_throw_exception_debug(_14, "phalcon/mvc/model/query.zep", 2130 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -95116,7 +95091,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { HashTable *_1, *_10; HashPosition _0, _9; zend_bool notQuoting; - zval *ast, *update, *tables, *values, *modelsInstances, *models, *sqlTables, *sqlAliases, *sqlAliasesModelsInstances, *updateTables = NULL, *nsAlias = NULL, *realModelName = NULL, *completeSource = NULL, *sqlModels, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *alias = NULL, *sqlFields, *sqlValues, *updateValues = NULL, *updateValue = NULL, *exprColumn = NULL, *sqlUpdate, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, **_11, *_14 = NULL, *_15 = NULL, _16; + zval *ast, *update, *tables, *values, *modelsInstances, *models, *sqlTables, *sqlAliases, *sqlAliasesModelsInstances, *updateTables = NULL, *nsAlias = NULL, *realModelName = NULL, *completeSource = NULL, *sqlModels, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *alias = NULL, *sqlFields, *sqlValues, *updateValues = NULL, *updateValue = NULL, *exprColumn = NULL, *sqlUpdate, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, **_11, *_14 = NULL, *_15 = NULL, *_16 = NULL; ZEPHIR_MM_GROW(); @@ -95237,7 +95212,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_4, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2260 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 318, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_7); + if (notQuoting) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 317, _4, _7); zephir_check_call_status(); zephir_array_append(&sqlFields, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2260); ZEPHIR_OBS_NVAR(exprColumn); @@ -95247,7 +95228,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_NVAR(_14); zephir_array_fetch_string(&_14, exprColumn, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2263 TSRMLS_CC); zephir_array_update_string(&_13, SL("type"), &_14, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_16); + if (notQuoting) { + ZVAL_BOOL(_16, 1); + } else { + ZVAL_BOOL(_16, 0); + } + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, exprColumn, _16); zephir_check_call_status(); zephir_array_update_string(&_13, SL("value"), &_15, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, _13, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2265); @@ -95260,15 +95247,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { zephir_array_update_string(&sqlUpdate, SL("values"), &sqlValues, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_SINIT_VAR(_16); - ZVAL_BOOL(&_16, 1); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, where, &_16); + ZEPHIR_INIT_NVAR(_7); + ZVAL_BOOL(_7, 1); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, where, _7); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_15, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_15, PH_COPY | PH_SEPARATE); } @@ -95282,7 +95269,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { int ZEPHIR_LAST_CALL_STATUS; HashTable *_1; HashPosition _0; - zval *ast, *delete, *tables, *models, *modelsInstances, *sqlTables, *sqlModels, *sqlAliases, *sqlAliasesModelsInstances, *deleteTables = NULL, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *nsAlias = NULL, *realModelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *completeSource = NULL, *alias = NULL, *sqlDelete, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, _9, *_10 = NULL; + zval *ast, *delete, *tables, *models, *modelsInstances, *sqlTables, *sqlModels, *sqlAliases, *sqlAliasesModelsInstances, *deleteTables = NULL, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *nsAlias = NULL, *realModelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *completeSource = NULL, *alias = NULL, *sqlDelete, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, *_9 = NULL; ZEPHIR_MM_GROW(); @@ -95385,17 +95372,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { zephir_array_update_string(&sqlDelete, SL("models"), &sqlModels, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_SINIT_VAR(_9); - ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 318, where, &_9); + ZEPHIR_INIT_NVAR(_7); + ZVAL_BOOL(_7, 1); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 317, where, _7); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); - zephir_array_update_string(&sqlDelete, SL("limit"), &_10, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&sqlDelete, SL("limit"), &_9, PH_COPY | PH_SEPARATE); } RETURN_CCTOR(sqlDelete); @@ -95441,22 +95428,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 323); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 322); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 333); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 332); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 334); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 333); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 335); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 334); zephir_check_call_status(); break; } @@ -95843,12 +95830,18 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { isKeepingSnapshots = zephir_get_boolval(_40); } object_init_ex(return_value, phalcon_mvc_model_resultset_simple_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_4); + if (isKeepingSnapshots) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 335, simpleColumnMap, resultObject, resultData, cache, _4); 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, 337, columns1, resultData, cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, columns1, resultData, cache); zephir_check_call_status(); RETURN_MM(); @@ -96008,7 +96001,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_15, insertModel, "create", NULL, 0, insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 338, _15, insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 337, _15, insertModel); zephir_check_call_status(); RETURN_MM(); @@ -96139,13 +96132,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_array_update_zval(&updateValues, fieldName, &updateValue, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, model, intermediate, selectBindParams, selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); } @@ -96178,7 +96171,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11, record); zephir_check_call_status(); RETURN_MM(); } @@ -96189,7 +96182,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); @@ -96222,13 +96215,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, _1, "load", NULL, 0, modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); } @@ -96261,7 +96254,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2, record); zephir_check_call_status(); RETURN_MM(); } @@ -96272,7 +96265,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); @@ -96320,18 +96313,18 @@ 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, 340); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 339); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 341, _5); + ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 340, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 309); - ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 342, _2); + ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 341, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 343, selectIr); + ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 342, selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 344, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -96413,7 +96406,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { if (Z_TYPE_P(defaultBindParams) == IS_ARRAY) { if (Z_TYPE_P(bindParams) == IS_ARRAY) { ZEPHIR_INIT_VAR(mergedParams); - zephir_add_function_ex(mergedParams, defaultBindParams, bindParams TSRMLS_CC); + zephir_add_function(mergedParams, defaultBindParams, bindParams); } else { ZEPHIR_CPY_WRT(mergedParams, defaultBindParams); } @@ -96425,7 +96418,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { if (Z_TYPE_P(defaultBindTypes) == IS_ARRAY) { if (Z_TYPE_P(bindTypes) == IS_ARRAY) { ZEPHIR_INIT_VAR(mergedTypes); - zephir_add_function_ex(mergedTypes, defaultBindTypes, bindTypes TSRMLS_CC); + zephir_add_function(mergedTypes, defaultBindTypes, bindTypes); } else { ZEPHIR_CPY_WRT(mergedTypes, defaultBindTypes); } @@ -96452,22 +96445,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property_this(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 345, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 344, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 346, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 345, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 347, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 346, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 348, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 347, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } @@ -96522,7 +96515,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 344, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -96564,7 +96557,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindParams) { zephir_fetch_params(1, 1, 1, &bindParams_param, &merge_param); bindParams = bindParams_param; - if (!merge_param) { merge = 0; } else { @@ -96576,7 +96568,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindParams) { currentBindParams = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); if (Z_TYPE_P(currentBindParams) == IS_ARRAY) { ZEPHIR_INIT_VAR(_0); - zephir_add_function_ex(_0, currentBindParams, bindParams TSRMLS_CC); + zephir_add_function(_0, currentBindParams, bindParams); zephir_update_property_this(this_ptr, SL("_bindParams"), _0 TSRMLS_CC); } else { zephir_update_property_this(this_ptr, SL("_bindParams"), bindParams TSRMLS_CC); @@ -96605,7 +96597,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindTypes) { zephir_fetch_params(1, 1, 1, &bindTypes_param, &merge_param); bindTypes = bindTypes_param; - if (!merge_param) { merge = 0; } else { @@ -96617,7 +96608,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindTypes) { currentBindTypes = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); if (Z_TYPE_P(currentBindTypes) == IS_ARRAY) { ZEPHIR_INIT_VAR(_0); - zephir_add_function_ex(_0, currentBindTypes, bindTypes TSRMLS_CC); + zephir_add_function(_0, currentBindTypes, bindTypes); zephir_update_property_this(this_ptr, SL("_bindTypes"), _0 TSRMLS_CC); } else { zephir_update_property_this(this_ptr, SL("_bindTypes"), bindTypes TSRMLS_CC); @@ -96646,7 +96637,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setIntermediate) { intermediate = intermediate_param; - zephir_update_property_this(this_ptr, SL("_intermediate"), intermediate TSRMLS_CC); RETURN_THISW(); @@ -96682,7 +96672,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getCacheOptions) { static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { int ZEPHIR_LAST_CALL_STATUS; - zval *intermediate = NULL, *_0, *_1, *_2, _3; + zval *intermediate = NULL, *_0, *_1, *_2, *_3; ZEPHIR_MM_GROW(); @@ -96692,9 +96682,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { if (ZEPHIR_IS_LONG(_0, 309)) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); - ZEPHIR_SINIT_VAR(_3); - ZVAL_BOOL(&_3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 345, intermediate, _1, _2, &_3); + ZEPHIR_INIT_VAR(_3); + ZVAL_BOOL(_3, 1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 344, intermediate, _1, _2, _3); zephir_check_call_status(); RETURN_MM(); } @@ -96802,7 +96792,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -96835,7 +96824,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -96898,7 +96886,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -97200,14 +97187,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, __construct) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0, _1; + zval *_0, *_1; ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pointer"), PH_NOISY_CC); - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, (zephir_get_numberval(_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, (zephir_get_numberval(_0) + 1)); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97241,13 +97228,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, key) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { int ZEPHIR_LAST_CALL_STATUS; - zval _0; + zval *_0; ZEPHIR_MM_GROW(); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97356,25 +97343,24 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { - zval *index_param = NULL, *_0, _1; + zval *index_param = NULL, *_0, *_1; int index, ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - index = Z_LVAL_P(index_param); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_count"), PH_NOISY_CC); if (ZEPHIR_GT_LONG(_0, index)) { - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, index); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97434,7 +97420,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0, _1; + zval *_0, *_1; ZEPHIR_MM_GROW(); @@ -97442,9 +97428,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { if (ZEPHIR_IS_LONG(_0, 0)) { RETURN_MM_BOOL(0); } - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, 0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97455,7 +97441,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { int ZEPHIR_LAST_CALL_STATUS; - zval *count, _0; + zval *count, *_0; ZEPHIR_MM_GROW(); @@ -97464,9 +97450,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { if (ZEPHIR_IS_LONG(count, 0)) { RETURN_MM_BOOL(0); } - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, (zephir_get_numberval(count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, (zephir_get_numberval(count) - 1)); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97484,7 +97470,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh) { isFresh = zephir_get_boolval(isFresh_param); - zephir_update_property_this(this_ptr, SL("_isFresh"), isFresh ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isFresh) { + zephir_update_property_this(this_ptr, SL("_isFresh"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_isFresh"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -97698,7 +97688,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, filter) { _0->funcs->get_current_data(_0, &ZEPHIR_TMP_ITERATOR_PTR TSRMLS_CC); ZEPHIR_CPY_WRT(record, (*ZEPHIR_TMP_ITERATOR_PTR)); } - zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/resultset.zep", 546); + zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(processedRecord); ZEPHIR_CALL_USER_FUNC_ARRAY(processedRecord, filter, parameters); zephir_check_call_status(); @@ -97876,7 +97866,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -98084,7 +98073,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 355, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 354, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -98103,7 +98092,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 356); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 355); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); @@ -98127,7 +98116,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, setIsNewTransaction) { isNew = zephir_get_boolval(isNew_param); - zephir_update_property_this(this_ptr, SL("_isNewTransaction"), isNew ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isNew) { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -98141,7 +98134,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, setRollbackOnAbort) { rollbackOnAbort = zephir_get_boolval(rollbackOnAbort_param); - zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), rollbackOnAbort ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (rollbackOnAbort) { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -98268,7 +98265,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_ValidationFailed, __construct) { validationMessages = validationMessages_param; - if (zephir_fast_count_int(validationMessages TSRMLS_CC) > 0) { ZEPHIR_OBS_VAR(message); zephir_array_fetch_long(&message, validationMessages, 0, PH_NOISY, "phalcon/mvc/model/validationfailed.zep", 51 TSRMLS_CC); @@ -98337,7 +98333,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, __construct) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); } @@ -98355,7 +98350,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -98417,7 +98411,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -98451,7 +98444,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -98549,7 +98541,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -98647,7 +98638,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -98673,7 +98663,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -98777,7 +98767,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98811,7 +98800,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98891,7 +98879,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98930,7 +98917,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98949,7 +98935,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, "callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 377, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -118993,7 +118963,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { zephir_fetch_params(1, 2, 0, &test_param, &left_param); test = test_param; - zephir_get_strval(left, left_param); @@ -119034,28 +119003,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -119074,7 +119043,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_fetch_params(1, 2, 0, &filter_param, &left_param); filter = filter_param; - zephir_get_strval(left, left_param); @@ -119126,12 +119094,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); - Z_UNSET_ISREF_P(funcArguments); + ZEPHIR_MAKE_REF(funcArguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, funcArguments, _4); + ZEPHIR_UNREF(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 377, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -119146,7 +119114,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -119331,7 +119299,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { expr = expr_param; - ZEPHIR_INIT_VAR(exprCode); ZVAL_NULL(exprCode); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("_exprLevel") TSRMLS_CC)); @@ -119344,7 +119311,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 378, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -119362,7 +119329,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -119384,7 +119351,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 377, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -119395,13 +119362,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 381, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 377, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -119577,7 +119544,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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 377, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -119585,7 +119552,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 377, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -119677,7 +119644,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -119750,7 +119717,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 382, statements); zephir_check_call_status(); RETURN_MM(); } @@ -119766,14 +119733,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, *_12, *_13 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -119798,7 +119764,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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, 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", 1369 TSRMLS_CC); @@ -119828,7 +119794,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (extendsMode) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 382, blockStatements, _5); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -119836,27 +119808,27 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_SVSVS(_4, "length = count($", prefixLevel, "iterator); "); + ZEPHIR_CONCAT_SVS(_7, "$", prefixLevel, "loop = new stdClass(); "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_VAR(_8); - ZEPHIR_CONCAT_SVS(_8, "$", prefixLevel, "loop->index = 1; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->length = count($", prefixLevel, "iterator); "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index0 = 1; "); + ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index = 1; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); + ZEPHIR_CONCAT_SVS(_10, "$", prefixLevel, "loop->index0 = 1; "); zephir_concat_self(&compilation, _10 TSRMLS_CC); ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); zephir_concat_self(&compilation, _11 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVSVS(_12, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + zephir_concat_self(&compilation, _12 TSRMLS_CC); ZEPHIR_INIT_VAR(iterator); ZEPHIR_CONCAT_SVS(iterator, "$", prefixLevel, "iterator"); } else { @@ -119866,48 +119838,48 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_array_fetch_string(&variable, statement, SL("variable"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1424 TSRMLS_CC); ZEPHIR_OBS_VAR(key); if (zephir_array_isset_string_fetch(&key, statement, SS("key"), 0 TSRMLS_CC)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, " $", variable, ") { "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVSVSVS(_6, " $", variable, ") { "); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, "if (", _13, ") { ?>"); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("?>") TSRMLS_CC); } if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, "first = ($", prefixLevel, "incr == 0); "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_6); - ZEPHIR_CONCAT_SVSVS(_6, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); + ZEPHIR_CONCAT_SVSVS(_6, "first = ($", prefixLevel, "incr == 0); "); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); - ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_8); - ZEPHIR_CONCAT_SVSVSVS(_8, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); + ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); zephir_concat_self(&compilation, _10 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVSVS(_11, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + zephir_concat_self(&compilation, _11 TSRMLS_CC); } if (Z_TYPE_P(forElse) == IS_STRING) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } zephir_concat_self(&compilation, code TSRMLS_CC); if (zephir_array_isset_string(statement, SS("if_expr"))) { @@ -119917,9 +119889,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } else { if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } @@ -119951,17 +119923,16 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForElse) { static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { - zephir_fcall_cache_entry *_3 = NULL; + zephir_fcall_cache_entry *_4 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_4 = NULL, *_5; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_3, *_5 = NULL, *_6, *_7; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -119974,20 +119945,32 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_3); + if (extendsMode) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 382, _2, _3); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (extendsMode) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_statementlist", &_4, 382, blockStatements, _6); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SV(_5, "", _4); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, "", _5); + zephir_concat_self(&compilation, _7 TSRMLS_CC); } zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); RETURN_CCTOR(compilation); @@ -120006,13 +119989,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120024,14 +120006,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7, *_8; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -120044,9 +120025,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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -120076,16 +120057,22 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_7); + if (extendsMode) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 382, _3, _7); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); if (zephir_array_isset_string_fetch(&lifetime, statement, SS("lifetime"), 0 TSRMLS_CC)) { zephir_array_fetch_string(&_4, lifetime, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1599 TSRMLS_CC); if (ZEPHIR_IS_LONG(_4, 265)) { - zephir_array_fetch_string(&_7, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); + zephir_array_fetch_string(&_8, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _7, "); "); + ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _8, "); "); zephir_concat_self(&compilation, _5 TSRMLS_CC); } else { zephir_array_fetch_string(&_4, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1602 TSRMLS_CC); @@ -120120,7 +120107,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { statement = statement_param; - ZEPHIR_OBS_VAR(assignments); if (!(zephir_array_isset_string_fetch(&assignments, statement, SS("assignments"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1623); @@ -120135,10 +120121,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 377, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 377, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -120190,13 +120176,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120215,13 +120200,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileReturn) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120232,14 +120216,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0; + zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0, *_1; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -120252,7 +120235,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 382, _0, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -120271,13 +120260,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -120313,7 +120301,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { statement = statement_param; - ZEPHIR_OBS_VAR(pathExpr); if (!(zephir_array_isset_string_fetch(&pathExpr, statement, SS("path"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1799); @@ -120351,14 +120338,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 377, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 377, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -120372,14 +120359,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1 = NULL, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -120439,7 +120425,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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 377, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -120455,7 +120441,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 382, blockStatements, _1); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 416, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134510,7 +134584,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 417, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134612,7 +134686,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromResultset) { ZEPHIR_INIT_NVAR(params); array_init(params); } - zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE, "phalcon/tag/select.zep", 218); + zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(_4); ZEPHIR_CALL_USER_FUNC_ARRAY(_4, using, params); zephir_check_call_status(); @@ -134648,12 +134722,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 417, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134728,7 +134802,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, __construct) { options = options_param; - ZEPHIR_OBS_VAR(interpolator); if (!(zephir_array_isset_string_fetch(&interpolator, options, SS("interpolator"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(interpolator); @@ -134770,7 +134843,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134801,7 +134873,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134845,7 +134916,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134886,7 +134956,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134916,7 +134985,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135046,8 +135114,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, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 426, 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", 43); @@ -135060,7 +135127,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 427, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -135082,7 +135149,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -135096,7 +135163,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 428, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135138,7 +135205,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135173,7 +135239,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135253,8 +135318,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { options = options_param; - - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135275,7 +135339,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135287,22 +135350,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 420, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 429, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 430, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135324,7 +135387,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135352,7 +135414,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid1, msgid1_param); } else { @@ -135363,7 +135424,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid2, msgid2_param); } else { @@ -135371,10 +135431,9 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZVAL_EMPTY_STRING(msgid2); } if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - count = Z_LVAL_P(count_param); if (!placeholders) { placeholders = ZEPHIR_GLOBAL(global_null); @@ -135387,7 +135446,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135397,15 +135455,15 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { } - if (!(domain && Z_STRLEN_P(domain))) { + if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 431, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 432, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135427,7 +135485,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135436,7 +135493,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, domain); zephir_check_call_status(); RETURN_MM(); @@ -135451,7 +135508,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, _0); zephir_check_call_status(); RETURN_MM(); @@ -135469,7 +135526,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135513,14 +135569,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135553,7 +135609,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { 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)) { zephir_get_strval(locale, locale_param); } else { @@ -135563,7 +135618,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -135576,12 +135631,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 435, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 415, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135613,7 +135668,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, prepareOptions) { options = options_param; - if (!(zephir_array_isset_string(options, SS("locale")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter \"locale\" is required", "phalcon/translate/adapter/gettext.zep", 231); return; @@ -135693,8 +135747,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, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135723,7 +135776,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135758,7 +135810,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135810,7 +135861,6 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135882,7 +135932,6 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135899,9 +135948,9 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde _0 = (zephir_fast_count_int(placeholders TSRMLS_CC)) ? 1 : 0; } if (_0) { - Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, placeholders, translation); - Z_UNSET_ISREF_P(placeholders); + ZEPHIR_MAKE_REF(placeholders); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, placeholders, translation); + ZEPHIR_UNREF(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "sprintf", 0); @@ -135979,7 +136028,6 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -136027,7 +136075,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -136060,7 +136107,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -136093,7 +136139,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setField) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136157,12 +136202,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_validation_message_ce); 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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 436, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136268,7 +136312,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136294,7 +136337,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136320,7 +136362,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136355,7 +136396,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136455,10 +136495,9 @@ 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } - index = Z_LVAL_P(index_param); @@ -136479,10 +136518,9 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { zephir_fetch_params(1, 2, 0, &index_param, &message); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - index = Z_LVAL_P(index_param); @@ -136606,7 +136644,6 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { 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)) { zephir_get_strval(fieldName, fieldName_param); } else { @@ -136753,7 +136790,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136776,7 +136812,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 437, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136809,7 +136845,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136856,7 +136892,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136879,7 +136914,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136912,7 +136947,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136959,7 +136994,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137029,7 +137063,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137075,7 +137109,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137093,7 +137126,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 439, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -137136,7 +137169,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137175,12 +137208,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } @@ -137223,7 +137256,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137234,7 +137266,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, 441, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -137267,7 +137299,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137298,7 +137330,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 441, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -137318,7 +137350,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 442, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -137360,7 +137392,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137383,7 +137414,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 443, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137416,7 +137447,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137463,7 +137494,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137488,7 +137518,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -137521,7 +137551,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137568,7 +137598,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137634,7 +137663,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137685,7 +137714,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137750,7 +137778,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 436, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137790,7 +137818,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -137816,7 +137844,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137853,7 +137881,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137899,7 +137927,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -137909,9 +137937,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -137936,7 +137964,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 436, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137962,12 +137990,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -137998,7 +138026,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138022,7 +138050,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -138083,7 +138111,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138139,7 +138167,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 436, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -138188,7 +138216,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138257,7 +138284,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138304,7 +138331,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138354,7 +138380,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 360, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 359, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -138390,7 +138416,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138437,7 +138463,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138496,7 +138521,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138543,7 +138568,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138589,7 +138613,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138636,7 +138660,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138705,7 +138728,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138753,7 +138776,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138804,7 +138826,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -138839,7 +138861,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 436, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138876,7 +138898,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 436, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138925,7 +138947,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -139017,7 +139038,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -139064,7 +139085,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -139089,7 +139109,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -139122,7 +139142,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/64bits/php_phalcon.h b/build/64bits/php_phalcon.h index 07c26e8d906..4a60e53b947 100644 --- a/build/64bits/php_phalcon.h +++ b/build/64bits/php_phalcon.h @@ -199,7 +199,7 @@ typedef zend_function zephir_fcall_cache_entry; #define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.7.1b" +#define PHP_PHALCON_ZEPVERSION "0.8.0a" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { diff --git a/build/safe/phalcon.zep.c b/build/safe/phalcon.zep.c index b651cd1557c..148cef29977 100644 --- a/build/safe/phalcon.zep.c +++ b/build/safe/phalcon.zep.c @@ -967,6 +967,7 @@ static int zephir_init_global(char *global, unsigned int global_length TSRMLS_DC static int zephir_get_global(zval **arr, const char *global, unsigned int global_length TSRMLS_DC); static int zephir_is_callable(zval *var TSRMLS_DC); +static int zephir_is_scalar(zval *var); static int zephir_function_exists(const zval *function_name TSRMLS_DC); static int zephir_function_exists_ex(const char *func_name, unsigned int func_len TSRMLS_DC); static int zephir_function_quick_exists_ex(const char *func_name, unsigned int func_len, unsigned long key TSRMLS_DC); @@ -1366,6 +1367,9 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { object_properties_init(object, class_type); \ } +#define ZEPHIR_MAKE_REF(obj) Z_SET_ISREF_P(obj); +#define ZEPHIR_UNREF(obj) Z_UNSET_ISREF_P(obj); + #define ZEPHIR_REGISTER_INTERFACE(ns, classname, lower_ns, name, methods) \ { \ zend_class_entry ce; \ @@ -1449,7 +1453,7 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define ZEPHIR_CHECK_POINTER(v) if (!v) fprintf(stderr, "%s:%d\n", __PRETTY_FUNCTION__, __LINE__); -#define zephir_is_php_version(id) ((PHP_VERSION_ID >= id && PHP_VERSION_ID <= (id + 10000)) ? 1 : 0) +#define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -1775,11 +1779,7 @@ static void zephir_throw_exception_format(zend_class_entry *ce TSRMLS_DC, const #include #include -#if PHP_VERSION_ID < 70000 static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); -#else -static void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent); -#endif 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); @@ -2435,185 +2435,27 @@ typedef enum _zephir_call_type { } while (0) -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - method(0, return_value, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* Saves the if pointer, and called/calling scope */ +#define ZEPHIR_BACKUP_THIS_PTR() \ + zval *old_this_ptr = this_ptr; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, return_value, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_THIS_PTR() ZEPHIR_SET_THIS(old_this_ptr) +#define ZEPHIR_SET_THIS(pzv) EG(This) = pzv; -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_BACKUP_SCOPE() \ + zend_class_entry *old_scope = EG(scope); \ + zend_class_entry *old_called_scope = EG(called_scope); -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_RESTORE_SCOPE() \ + EG(called_scope) = old_called_scope; \ + EG(scope) = old_scope; \ -#define ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P4(object, method, p1, p2, p3, p4) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - Z_ADDREF_P(p4); \ - method(0, return_value, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - Z_DELREF_P(p4); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +#define ZEPHIR_SET_SCOPE(_scope, _scope_called) \ + EG(scope) = _scope; \ + EG(called_scope) = _scope_called; \ -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P0(object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - method(0, rv, rvp, object, 0 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P1(object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - method(0, rv, rvp, object, 0, p1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - Z_DELREF_P(p1); \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P2(object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - method(0, rv, rvp, object, 0, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_NORETURN_P3(object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - zval *rv = NULL; \ - zval **rvp = &rv; \ - ALLOC_INIT_ZVAL(rv); \ - EG(This) = object; \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, rv, rvp, object, 0, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - zval_ptr_dtor(rvp); \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P0(return_value_ptr, object, method) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - method(0, *return_value_ptr, return_value_ptr, object, 1 TSRMLS_CC); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P1(return_value_ptr, object, method, p1) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P2(return_value_ptr, object, method, p1, p2) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) - -#define ZEPHIR_CALL_INTERNAL_METHOD_P3(return_value_ptr, object, method, p1, p2, p3) \ - do { \ - zval *old_this_ptr = this_ptr; \ - EG(This) = object; \ - ZEPHIR_INIT_NVAR(*return_value_ptr); \ - Z_ADDREF_P(p1); \ - Z_ADDREF_P(p2); \ - Z_ADDREF_P(p3); \ - method(0, *return_value_ptr, return_value_ptr, object, 1, p1, p2, p3 TSRMLS_CC); \ - Z_DELREF_P(p1); \ - Z_DELREF_P(p2); \ - Z_DELREF_P(p3); \ - ZEPHIR_LAST_CALL_STATUS = EG(exception) ? FAILURE : SUCCESS; \ - EG(This) = old_this_ptr; \ - } while (0) +/* End internal calls */ #define ZEPHIR_CALL_METHODW(return_value_ptr, object, method, cache, cache_slot, ...) \ do { \ @@ -3322,12 +3164,12 @@ static int zephir_fclose(zval *stream_zval TSRMLS_DC); static void zephir_make_printable_zval(zval *expr, zval *expr_copy, int *use_copy); +#define zephir_add_function(result, left, right) zephir_add_function_ex(result, left, right TSRMLS_CC) + #if PHP_VERSION_ID < 50400 -#define zephir_sub_function(result, left, right, t) sub_function(result, left, right TSRMLS_CC) -#define zephir_add_function(result, left, right, t) zephir_add_function_ex(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) sub_function(result, left, right TSRMLS_CC) #else -#define zephir_add_function(result, left, right, t) fast_add_function(result, left, right TSRMLS_CC) -#define zephir_sub_function(result, left, right, t) fast_sub_function(result, left, right TSRMLS_CC) +#define zephir_sub_function(result, left, right) fast_sub_function(result, left, right TSRMLS_CC) #endif #if PHP_VERSION_ID < 50600 @@ -4098,6 +3940,20 @@ static int zephir_is_callable(zval *var TSRMLS_DC) { return (int) retval; } +static int zephir_is_scalar(zval *var) { + + switch (Z_TYPE_P(var)) { + case IS_BOOL: + case IS_DOUBLE: + case IS_LONG: + case IS_STRING: + return 1; + break; + } + + return 0; +} + 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)) { @@ -5104,8 +4960,6 @@ static void zephir_throw_exception_zval(zend_class_entry *ce, zval *message TSRM #include -#if PHP_VERSION_ID < 70000 - static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) { #if PHP_VERSION_ID < 50400 @@ -5161,42 +5015,6 @@ static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction return SUCCESS; } -#else - -static void zephir_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent) -{ - #if ZEND_DEBUG - ht->inconsistent = 0; - #endif - - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->nNumUsed = 0; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->arData = NULL; - ht->arHash = (zend_uint*)&uninitialized_bucket; - ht->pDestructor = pDestructor; - ht->nInternalPointer = INVALID_IDX; - if (persistent) { - ht->u.flags = HASH_FLAG_PERSISTENT | HASH_FLAG_APPLY_PROTECTION; - } else { - ht->u.flags = HASH_FLAG_APPLY_PROTECTION; - } -} - -#endif - - static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) { ulong h; @@ -6571,7 +6389,7 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ 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 (likely(zephir_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 */ @@ -6608,6 +6426,9 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ } } + } else { + EG(scope) = old_scope; + return zephir_update_property_zval(object, property_name, property_length, value TSRMLS_CC); } } @@ -8570,7 +8391,7 @@ static int zephir_call_func_aparams_fast(zval **return_value_ptr, zephir_fcall_c zend_class_entry *calling_scope = NULL; zend_class_entry *called_scope = NULL; zend_execute_data execute_data; - zval ***params, ***params_ptr, ***params_array = NULL; + zval ***params, ***params_array = NULL; zval **static_params_array[10]; zend_class_entry *old_scope = EG(scope); zend_function_state *function_state = &EX(function_state); @@ -10289,7 +10110,7 @@ static void zephir_fast_str_replace(zval **return_value_ptr, zval *search, zval do { zval *params[] = { search, replace, subject }; zval_ptr_dtor(return_value_ptr); - return_value_ptr = NULL; + *return_value_ptr = NULL; zephir_call_func_aparams(return_value_ptr, "str_replace", sizeof("str_replace")-1, NULL, 0, 3, params TSRMLS_CC); return; } while(0); @@ -12600,7 +12421,56 @@ static int zephir_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci static void zephir_eval_php(zval *str, zval *retval_ptr, char *context TSRMLS_DC) { - zend_eval_string_ex(Z_STRVAL_P(str), retval_ptr, context, 1 TSRMLS_CC); + zend_op_array *new_op_array = NULL; + zend_uint original_compiler_options; + zend_op_array *original_active_op_array = EG(active_op_array); + + original_compiler_options = CG(compiler_options); + CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; + new_op_array = zend_compile_string(str, context TSRMLS_CC); + CG(compiler_options) = original_compiler_options; + + if (new_op_array) + { + zval *local_retval_ptr = NULL; + zval **original_return_value_ptr_ptr = EG(return_value_ptr_ptr); + zend_op **original_opline_ptr = EG(opline_ptr); + int orig_interactive = CG(interactive); + + EG(return_value_ptr_ptr) = &local_retval_ptr; + EG(active_op_array) = new_op_array; + EG(no_extensions) = 1; + if (!EG(active_symbol_table)) { + zend_rebuild_symbol_table(TSRMLS_C); + } + CG(interactive) = 0; + + zend_try { + zend_execute(new_op_array TSRMLS_CC); + } zend_catch { + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + zend_bailout(); + } zend_end_try(); + + CG(interactive) = orig_interactive; + if (local_retval_ptr) { + if (retval_ptr) { + COPY_PZVAL_TO_ZVAL(*retval_ptr, local_retval_ptr); + } else { + zval_ptr_dtor(&local_retval_ptr); + } + } else if (retval_ptr) { + INIT_ZVAL(*retval_ptr); + } + + EG(no_extensions) = 0; + EG(opline_ptr) = original_opline_ptr; + EG(active_op_array) = original_active_op_array; + destroy_op_array(new_op_array TSRMLS_CC); + efree(new_op_array); + EG(return_value_ptr_ptr) = original_return_value_ptr_ptr; + } } @@ -12620,7 +12490,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, mode; + int ret, use_ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -12634,7 +12504,7 @@ static int zephir_require_ret(zval **return_value_ptr, const char *require_path if (!require_path) { /* @TODO, throw an exception here */ return FAILURE; - } + } use_ret = !!return_value_ptr; @@ -13495,7 +13365,11 @@ static int zephir_add_function_ex(zval *result, zval *op1, zval *op2 TSRMLS_DC) int status; int ref_count = Z_REFCOUNT_P(result); int is_ref = Z_ISREF_P(result); +#if PHP_VERSION_ID < 50400 status = add_function(result, op1, op2 TSRMLS_CC); +#else + status = fast_add_function(result, op1, op2 TSRMLS_CC); +#endif Z_SET_REFCOUNT_P(result, ref_count); Z_SET_ISREF_TO_P(result, is_ref); return status; @@ -17727,7 +17601,7 @@ static PHP_METHOD(phalcon_0__closure, __invoke) { zephir_array_fetch_long(&_0, matches, 1, PH_NOISY | PH_READONLY, "phalcon/text.zep", 272 TSRMLS_CC); ZEPHIR_INIT_VAR(words); zephir_fast_explode_str(words, SL("|"), _0, LONG_MAX TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 446, words); + ZEPHIR_CALL_FUNCTION(&_2, "array_rand", NULL, 445, words); zephir_check_call_status(); zephir_array_fetch(&_1, words, _2, PH_NOISY | PH_READONLY, "phalcon/text.zep", 273 TSRMLS_CC); RETURN_CTOR(_1); @@ -17797,11 +17671,10 @@ static PHP_METHOD(Phalcon_Config, __construct) { zephir_fetch_params(1, 0, 1, &arrayConfig_param); if (!arrayConfig_param) { - ZEPHIR_INIT_VAR(arrayConfig); - array_init(arrayConfig); + ZEPHIR_INIT_VAR(arrayConfig); + array_init(arrayConfig); } else { arrayConfig = arrayConfig_param; - } @@ -18007,7 +17880,6 @@ static PHP_METHOD(Phalcon_Config, __set_state) { data = data_param; - object_init_ex(return_value, phalcon_config_ce); ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 22, data); zephir_check_call_status(); @@ -18132,10 +18004,9 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } - scheme = Z_LVAL_P(scheme_param); @@ -18158,7 +18029,6 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { 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)) { zephir_get_strval(cipher, cipher_param); } else { @@ -18191,7 +18061,6 @@ static PHP_METHOD(Phalcon_Crypt, setMode) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18224,7 +18093,6 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -18261,7 +18129,6 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18269,16 +18136,14 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZVAL_EMPTY_STRING(mode); } if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a long/integer") TSRMLS_CC); + 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - paddingType = Z_LVAL_P(paddingType_param); ZEPHIR_INIT_VAR(padding); ZVAL_NULL(padding); @@ -18432,7 +18297,6 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { 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)) { zephir_get_strval(mode, mode_param); } else { @@ -18440,16 +18304,14 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_EMPTY_STRING(mode); } if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a long/integer") TSRMLS_CC); + 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - paddingType = Z_LVAL_P(paddingType_param); @@ -18650,7 +18512,6 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18665,7 +18526,6 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -18752,7 +18612,6 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18836,7 +18695,6 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18853,7 +18711,6 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - safe = Z_BVAL_P(safe_param); } @@ -18894,7 +18751,6 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { 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)) { zephir_get_strval(text, text_param); } else { @@ -18911,7 +18767,6 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - safe = Z_BVAL_P(safe_param); } @@ -19072,7 +18927,6 @@ static PHP_METHOD(Phalcon_Db, setup) { options = options_param; - ZEPHIR_OBS_VAR(escapeIdentifiers); if (zephir_array_isset_string_fetch(&escapeIdentifiers, options, SS("escapeSqlIdentifiers"), 0 TSRMLS_CC)) { ZEPHIR_GLOBAL(db).escape_identifiers = zend_is_true(escapeIdentifiers); @@ -19135,7 +18989,6 @@ static PHP_METHOD(Phalcon_Debug, setUri) { 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)) { zephir_get_strval(uri, uri_param); } else { @@ -19159,7 +19012,11 @@ static PHP_METHOD(Phalcon_Debug, setShowBackTrace) { showBackTrace = zephir_get_boolval(showBackTrace_param); - zephir_update_property_this(this_ptr, SL("_showBackTrace"), showBackTrace ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showBackTrace) { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBackTrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19174,7 +19031,11 @@ static PHP_METHOD(Phalcon_Debug, setShowFiles) { showFiles = zephir_get_boolval(showFiles_param); - zephir_update_property_this(this_ptr, SL("_showFiles"), showFiles ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFiles) { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFiles"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19189,7 +19050,11 @@ static PHP_METHOD(Phalcon_Debug, setShowFileFragment) { showFileFragment = zephir_get_boolval(showFileFragment_param); - zephir_update_property_this(this_ptr, SL("_showFileFragment"), showFileFragment ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (showFileFragment) { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showFileFragment"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -19355,19 +19220,18 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { static PHP_METHOD(Phalcon_Debug, _getArrayDump) { + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_9 = NULL; HashTable *_2; HashPosition _1; zend_bool _0; - zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL, *_10 = NULL; + zval *argument_param = NULL, *n = NULL, *numberArguments, *dump, *varDump = NULL, *k = NULL, *v = NULL, **_3, *_4 = NULL, *_6 = NULL, *_8 = NULL; zval *argument = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &argument_param, &n); argument = argument_param; - if (!n) { ZEPHIR_INIT_VAR(n); ZVAL_LONG(n, 0); @@ -19395,47 +19259,45 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); - ZEPHIR_CALL_FUNCTION(&_4, "is_scalar", &_5, 154, v); - zephir_check_call_status(); - if (zephir_is_true(_4)) { + if (zephir_is_scalar(v)) { ZEPHIR_INIT_NVAR(varDump); if (ZEPHIR_IS_STRING(v, "")) { ZEPHIR_CONCAT_SVS(varDump, "[", k, "] => (empty string)"); } else { - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_escapestring", &_7, 0, v); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_escapestring", &_5, 0, v); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _6); + ZEPHIR_CONCAT_SVSV(varDump, "[", k, "] => ", _4); } zephir_array_append(&dump, varDump, PH_SEPARATE, "phalcon/debug.zep", 178); continue; } if (Z_TYPE_P(v) == IS_ARRAY) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_LONG(_8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_getarraydump", &_9, 155, v, _8); + ZEPHIR_INIT_NVAR(_6); + ZVAL_LONG(_6, (zephir_get_numberval(n) + 1)); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "_getarraydump", &_7, 154, v, _6); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Array(", _6, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 183); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Array(", _4, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 183); continue; } if (Z_TYPE_P(v) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - zephir_get_class(_8, v, 0 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "[", k, "] => Object(", _8, ")"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 188); + ZEPHIR_INIT_NVAR(_6); + zephir_get_class(_6, v, 0 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSVS(_8, "[", k, "] => Object(", _6, ")"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 188); continue; } if (Z_TYPE_P(v) == IS_NULL) { - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "[", k, "] => null"); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 193); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVS(_8, "[", k, "] => null"); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 193); continue; } - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSV(_10, "[", k, "] => ", v); - zephir_array_append(&dump, _10, PH_SEPARATE, "phalcon/debug.zep", 197); + ZEPHIR_INIT_LNVAR(_8); + ZEPHIR_CONCAT_SVSV(_8, "[", k, "] => ", v); + zephir_array_append(&dump, _8, PH_SEPARATE, "phalcon/debug.zep", 197); } zephir_fast_join_str(return_value, SL(", "), dump TSRMLS_CC); RETURN_MM(); @@ -19444,18 +19306,16 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { static PHP_METHOD(Phalcon_Debug, _getVarDump) { - zephir_fcall_cache_entry *_2 = NULL; + zephir_fcall_cache_entry *_1 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *variable, *className, *dumpedObject = NULL, *_0 = NULL, *_1 = NULL; + zval *variable, *className, *dumpedObject = NULL, *_0 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &variable); - ZEPHIR_CALL_FUNCTION(&_0, "is_scalar", NULL, 154, variable); - zephir_check_call_status(); - if (zephir_is_true(_0)) { + if (zephir_is_scalar(variable)) { if (Z_TYPE_P(variable) == IS_BOOL) { if (zephir_is_true(variable)) { RETURN_MM_STRING("true", 1); @@ -19477,9 +19337,9 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { if ((zephir_method_exists_ex(variable, SS("dump") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&dumpedObject, variable, "dump", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 0, dumpedObject); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 0, dumpedObject); zephir_check_call_status(); - ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _1, ")"); + ZEPHIR_CONCAT_SVSVS(return_value, "Object(", className, ": ", _0, ")"); RETURN_MM(); } else { ZEPHIR_CONCAT_SVS(return_value, "Object(", className, ")"); @@ -19487,9 +19347,9 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getarraydump", &_2, 155, variable); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getarraydump", &_1, 154, variable); zephir_check_call_status(); - ZEPHIR_CONCAT_SVS(return_value, "Array(", _1, ")"); + ZEPHIR_CONCAT_SVS(return_value, "Array(", _0, ")"); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_NULL) { @@ -19508,7 +19368,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 156); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 155); zephir_check_call_status(); ZEPHIR_INIT_VAR(parts); zephir_fast_explode_str(parts, SL(" "), _0, LONG_MAX TSRMLS_CC); @@ -19527,7 +19387,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmajorversion", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 156); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_version_ce, "get", &_2, 155); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "
Phalcon Framework ", _1, "
"); RETURN_MM(); @@ -19593,7 +19453,6 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { trace = trace_param; - ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, n); ZEPHIR_INIT_VAR(_1); @@ -19621,7 +19480,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { object_init_ex(classReflection, zephir_get_internal_ce(SS("reflectionclass") TSRMLS_CC)); ZEPHIR_CALL_METHOD(NULL, classReflection, "__construct", NULL, 65, className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 157); + ZEPHIR_CALL_METHOD(&_8, classReflection, "isinternal", NULL, 156); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_INIT_VAR(_9); @@ -19654,9 +19513,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(SS("reflectionfunction") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 158, functionName); + ZEPHIR_CALL_METHOD(NULL, functionReflection, "__construct", NULL, 157, functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 159); + ZEPHIR_CALL_METHOD(&_8, functionReflection, "isinternal", NULL, 158); zephir_check_call_status(); if (zephir_is_true(_8)) { ZEPHIR_SINIT_NVAR(_4); @@ -19717,7 +19576,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(showFiles); zephir_read_property_this(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 160, filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 159, filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(numberLines); ZVAL_LONG(numberLines, zephir_fast_count_int(lines TSRMLS_CC)); @@ -19824,7 +19683,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 161); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 160); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, _0, severity TSRMLS_CC); @@ -19833,7 +19692,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { object_init_ex(_2, zephir_get_internal_ce(SS("errorexception") TSRMLS_CC)); ZEPHIR_INIT_VAR(_3); ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 162, message, _3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 161, message, _3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(_2, "phalcon/debug.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19858,7 +19717,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 163); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 162); zephir_check_call_status(); if (ZEPHIR_GT_LONG(obLevel, 0)) { ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 121); @@ -19871,7 +19730,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zend_print_zval(_1, 0); RETURN_MM_NULL(); } - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); ZEPHIR_INIT_VAR(className); zephir_get_class(className, exception, 0 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_1, exception, "getmessage", NULL, 0); @@ -19925,7 +19784,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ) { ZEPHIR_GET_HMKEY(n, _11, _10); ZEPHIR_GET_HVALUE(traceItem, _12); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 164, n, traceItem); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "showtraceitem", &_14, 163, n, traceItem); zephir_check_call_status(); zephir_concat_self(&html, _13 TSRMLS_CC); } @@ -19944,7 +19803,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(_18, "
"); zephir_concat_self(&html, _18 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 165, value, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "print_r", &_19, 164, value, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18); ZEPHIR_CONCAT_SVSVS(_18, ""); @@ -19970,7 +19829,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", _13, "
", keyRequest, "", value, "
", keyRequest, "", _13, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 166); + ZEPHIR_CALL_FUNCTION(&_13, "get_included_files", NULL, 165); zephir_check_call_status(); zephir_is_iterable(_13, &_25, &_24, 0, 0, "phalcon/debug.zep", 694); for ( @@ -19985,7 +19844,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 167, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_13, "memory_get_usage", NULL, 166, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27); ZEPHIR_CONCAT_SVS(_27, ""); @@ -20018,7 +19877,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_VS(_18, _1, ""); zephir_concat_self(&html, _18 TSRMLS_CC); zend_print_zval(html, 0); - zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &(ZEPHIR_GLOBAL(global_false)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_debug_ce, SL("_isActive"), &ZEPHIR_GLOBAL(global_false) TSRMLS_CC); RETURN_MM_BOOL(1); } @@ -20094,7 +19953,7 @@ static PHP_METHOD(Phalcon_Di, set) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20104,7 +19963,6 @@ static PHP_METHOD(Phalcon_Di, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20120,7 +19978,13 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20130,7 +19994,7 @@ static PHP_METHOD(Phalcon_Di, set) { static PHP_METHOD(Phalcon_Di, setShared) { int ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *definition, *service, _0; + zval *name_param = NULL, *definition, *service, *_0; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20140,7 +20004,6 @@ static PHP_METHOD(Phalcon_Di, setShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20151,9 +20014,9 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_SINIT_VAR(_0); - ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_BOOL(_0, 1); + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20172,7 +20035,6 @@ static PHP_METHOD(Phalcon_Di, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20193,7 +20055,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0; + zval *name_param = NULL, *definition, *shared_param = NULL, *service, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -20203,7 +20065,6 @@ static PHP_METHOD(Phalcon_Di, attempt) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20221,7 +20082,13 @@ static PHP_METHOD(Phalcon_Di, attempt) { if (!(zephir_array_isset(_0, name))) { ZEPHIR_INIT_VAR(service); object_init_ex(service, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (shared) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, service, "__construct", NULL, 64, name, definition, _1); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), name, service TSRMLS_CC); RETURN_CCTOR(service); @@ -20242,7 +20109,6 @@ static PHP_METHOD(Phalcon_Di, setRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20270,7 +20136,6 @@ static PHP_METHOD(Phalcon_Di, getRaw) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20311,7 +20176,6 @@ static PHP_METHOD(Phalcon_Di, getService) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20351,7 +20215,6 @@ static PHP_METHOD(Phalcon_Di, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20471,7 +20334,6 @@ static PHP_METHOD(Phalcon_Di, getShared) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20486,12 +20348,20 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_OBS_VAR(instance); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_sharedInstances"), PH_NOISY_CC); if (zephir_array_isset_fetch(&instance, _0, name, 0 TSRMLS_CC)) { - zephir_update_property_this(this_ptr, SL("_freshInstance"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { ZEPHIR_CALL_METHOD(&instance, this_ptr, "get", NULL, 0, name, parameters); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_sharedInstances"), name, instance TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_freshInstance"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_freshInstance"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_CCTOR(instance); @@ -20509,7 +20379,6 @@ static PHP_METHOD(Phalcon_Di, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20550,7 +20419,6 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20578,7 +20446,6 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20606,7 +20473,6 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20633,7 +20499,6 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -20660,7 +20525,6 @@ static PHP_METHOD(Phalcon_Di, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -20743,7 +20607,7 @@ static PHP_METHOD(Phalcon_Di, getDefault) { static PHP_METHOD(Phalcon_Di, reset) { - zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &(ZEPHIR_GLOBAL(global_null)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_di_ce, SL("_default"), &ZEPHIR_GLOBAL(global_null) TSRMLS_CC); } @@ -21218,7 +21082,11 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { numberDispatches = 0; ZEPHIR_OBS_VAR(actionSuffix); zephir_read_property_this(&actionSuffix, this_ptr, SL("_actionSuffix"), PH_NOISY_CC); - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } while (1) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); if (!(!(zephir_is_true(_0)))) { @@ -21235,7 +21103,11 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { zephir_check_call_status(); break; } - zephir_update_property_this(this_ptr, SL("_finished"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_CALL_METHOD(NULL, this_ptr, "_resolveemptyproperties", &_5, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(namespaceName); @@ -21514,8 +21386,16 @@ static PHP_METHOD(Phalcon_Dispatcher, forward) { if (zephir_array_isset_string_fetch(¶ms, forward, SS("params"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_params"), params TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_finished"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_forwarded"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_finished"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (1) { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_forwarded"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -21748,13 +21628,13 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { ; zephir_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); - ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 180, str, charset, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&_5, "mb_detect_encoding", &_6, 179, str, charset, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (zephir_is_true(_5)) { RETURN_CCTOR(charset); } } - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 180, str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_6, 179, str); zephir_check_call_status(); RETURN_MM(); @@ -21776,11 +21656,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 128); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 181, str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 180, str); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "UTF-32", 0); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 182, str, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 181, str, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21800,7 +21680,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, text, _0, _1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, text, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -21821,7 +21701,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_encoding"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 183, attribute, &_1, _0); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 182, attribute, &_1, _0); zephir_check_call_status(); RETURN_MM(); @@ -21839,7 +21719,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, css); zephir_check_call_status(); zephir_escape_css(return_value, _0); RETURN_MM(); @@ -21858,7 +21738,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 184, js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 183, js); zephir_check_call_status(); zephir_escape_js(return_value, _0); RETURN_MM(); @@ -21877,7 +21757,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 185, url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 184, url); zephir_check_call_status(); RETURN_MM(); @@ -22003,7 +21883,6 @@ static PHP_METHOD(Phalcon_Filter, add) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -22124,7 +22003,6 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { 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)) { zephir_get_strval(filter, filter_param); } else { @@ -22156,16 +22034,16 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "email")) { ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "FILTER_SANITIZE_EMAIL", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, _4); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, _4); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "int")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22175,14 +22053,14 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(filter, "absint")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 194, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 193, &_3); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "string")) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3); zephir_check_call_status(); RETURN_MM(); } @@ -22192,7 +22070,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { add_assoc_long_ex(_2, SS("flags"), 4096); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 193, value, &_3, _2); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_5, 192, value, &_3, _2); zephir_check_call_status(); RETURN_MM(); } @@ -22215,13 +22093,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 195, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 194, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(filter, "lower")) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, value); zephir_check_call_status(); RETURN_MM(); } @@ -22230,7 +22108,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(filter, "upper")) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, value); zephir_check_call_status(); RETURN_MM(); } @@ -22352,7 +22230,11 @@ static PHP_METHOD(Phalcon_Flash, setImplicitFlush) { implicitFlush = zephir_get_boolval(implicitFlush_param); - zephir_update_property_this(this_ptr, SL("_implicitFlush"), implicitFlush ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitFlush) { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitFlush"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -22367,7 +22249,11 @@ static PHP_METHOD(Phalcon_Flash, setAutomaticHtml) { automaticHtml = zephir_get_boolval(automaticHtml_param); - zephir_update_property_this(this_ptr, SL("_automaticHtml"), automaticHtml ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (automaticHtml) { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_automaticHtml"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -22382,7 +22268,6 @@ static PHP_METHOD(Phalcon_Flash, setCssClasses) { cssClasses = cssClasses_param; - zephir_update_property_this(this_ptr, SL("_cssClasses"), cssClasses TSRMLS_CC); RETURN_THISW(); @@ -22668,7 +22553,6 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -22814,7 +22698,6 @@ static PHP_METHOD(Phalcon_Loader, setExtensions) { extensions = extensions_param; - zephir_update_property_this(this_ptr, SL("_extensions"), extensions TSRMLS_CC); RETURN_THISW(); @@ -22837,7 +22720,6 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { zephir_fetch_params(1, 1, 1, &namespaces_param, &merge_param); namespaces = namespaces_param; - if (!merge_param) { merge = 0; } else { @@ -22879,7 +22761,6 @@ static PHP_METHOD(Phalcon_Loader, registerPrefixes) { zephir_fetch_params(1, 1, 1, &prefixes_param, &merge_param); prefixes = prefixes_param; - if (!merge_param) { merge = 0; } else { @@ -22921,7 +22802,6 @@ static PHP_METHOD(Phalcon_Loader, registerDirs) { zephir_fetch_params(1, 1, 1, &directories_param, &merge_param); directories = directories_param; - if (!merge_param) { merge = 0; } else { @@ -22963,7 +22843,6 @@ static PHP_METHOD(Phalcon_Loader, registerClasses) { zephir_fetch_params(1, 1, 1, &classes_param, &merge_param); classes = classes_param; - if (!merge_param) { merge = 0; } else { @@ -23011,9 +22890,13 @@ static PHP_METHOD(Phalcon_Loader, register) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 287, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 286, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -23035,9 +22918,13 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "autoLoad", 1); zephir_array_fast_append(_1, _2); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 288, _1); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 287, _1); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_registered"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_registered"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -23059,7 +22946,6 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { 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)) { zephir_get_strval(className, className_param); } else { @@ -23143,7 +23029,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23214,7 +23100,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23272,7 +23158,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_check_temp_parameter(_9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 289, filePath); + ZEPHIR_CALL_FUNCTION(&_11, "is_file", &_12, 288, filePath); zephir_check_call_status(); if (zephir_is_true(_11)) { if (Z_TYPE_P(eventsManager) == IS_OBJECT) { @@ -23412,7 +23298,6 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23438,7 +23323,6 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23465,7 +23349,6 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23491,7 +23374,6 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { 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)) { zephir_get_strval(offset, offset_param); } else { @@ -23524,9 +23406,9 @@ static PHP_METHOD(Phalcon_Registry, next) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 394, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 393, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23540,9 +23422,9 @@ static PHP_METHOD(Phalcon_Registry, key) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 395, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 394, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM(); @@ -23556,9 +23438,9 @@ static PHP_METHOD(Phalcon_Registry, rewind) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 396, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 395, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23572,9 +23454,9 @@ static PHP_METHOD(Phalcon_Registry, valid) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 395, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 394, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(_1) != IS_NULL); @@ -23588,9 +23470,9 @@ static PHP_METHOD(Phalcon_Registry, current) { ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_data"), PH_NOISY_CC); - Z_SET_ISREF_P(_0); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 397, _0); - Z_UNSET_ISREF_P(_0); + ZEPHIR_MAKE_REF(_0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 396, _0); + ZEPHIR_UNREF(_0); zephir_check_call_status(); RETURN_MM(); @@ -23609,7 +23491,6 @@ static PHP_METHOD(Phalcon_Registry, __set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23618,7 +23499,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 398, key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 397, key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23637,7 +23518,6 @@ static PHP_METHOD(Phalcon_Registry, __get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23646,7 +23526,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 399, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 398, key); zephir_check_call_status(); RETURN_MM(); @@ -23665,7 +23545,6 @@ static PHP_METHOD(Phalcon_Registry, __isset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23674,7 +23553,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 400, key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 399, key); zephir_check_call_status(); RETURN_MM(); @@ -23693,7 +23572,6 @@ static PHP_METHOD(Phalcon_Registry, __unset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -23702,7 +23580,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 401, key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 400, key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -23809,10 +23687,9 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } - randomBytes = Z_LVAL_P(randomBytes_param); @@ -23858,7 +23735,7 @@ static PHP_METHOD(Phalcon_Security, getSaltBytes) { ZEPHIR_INIT_NVAR(safeBytes); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", &_3, 401, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_4, "base64_encode", &_5, 115, _2); zephir_check_call_status(); @@ -23950,7 +23827,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(_3); ZEPHIR_CONCAT_SVSV(_3, "$", variant, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 402, password, _3); zephir_check_call_status(); RETURN_MM(); } @@ -23973,11 +23850,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZVAL_STRING(&_5, "%02s", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, workFactor); - ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 189, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "sprintf", NULL, 188, &_5, &_6); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_3); ZEPHIR_CONCAT_SVSVSV(_3, "$2", variant, "$", _7, "$", saltBytes); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 403, password, _3); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_4, 402, password, _3); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -24017,7 +23894,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 403, password, passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 402, password, passwordHash); zephir_check_call_status(); zephir_get_strval(_2, _1); ZEPHIR_CPY_WRT(cryptedHash, _2); @@ -24081,7 +23958,7 @@ static PHP_METHOD(Phalcon_Security, getTokenKey) { ZEPHIR_INIT_VAR(safeBytes); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, numberBytes); - ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 402, _1); + ZEPHIR_CALL_FUNCTION(&_2, "openssl_random_pseudo_bytes", NULL, 401, _1); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_3, "base64_encode", NULL, 115, _2); zephir_check_call_status(); @@ -24123,7 +24000,7 @@ static PHP_METHOD(Phalcon_Security, getToken) { } ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, numberBytes); - ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 402, _0); + ZEPHIR_CALL_FUNCTION(&token, "openssl_random_pseudo_bytes", NULL, 401, _0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_1, "base64_encode", NULL, 115, token); zephir_check_call_status(); @@ -24284,7 +24161,7 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { int ZEPHIR_LAST_CALL_STATUS; zend_bool raw; - zval *data, *key, *algo, *raw_param = NULL, *hmac = NULL, *_0, *_1; + zval *data, *key, *algo, *raw_param = NULL, *hmac = NULL, _0, *_1, *_2; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &data, &key, &algo, &raw_param); @@ -24296,16 +24173,18 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { } - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 404, algo, data, key, (raw ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (raw ? 1 : 0)); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 403, algo, data, key, &_0); zephir_check_call_status(); if (!(zephir_is_true(hmac))) { - ZEPHIR_INIT_VAR(_0); - object_init_ex(_0, phalcon_security_exception_ce); ZEPHIR_INIT_VAR(_1); - ZEPHIR_CONCAT_SV(_1, "Unknown hashing algorithm: %s", algo); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _1); + object_init_ex(_1, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(_2); + ZEPHIR_CONCAT_SV(_2, "Unknown hashing algorithm: %s", algo); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 9, _2); zephir_check_call_status(); - zephir_throw_exception_debug(_0, "phalcon/security.zep", 441 TSRMLS_CC); + zephir_throw_exception_debug(_1, "phalcon/security.zep", 441 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -24428,7 +24307,6 @@ static PHP_METHOD(Phalcon_Tag, getEscaper) { params = params_param; - ZEPHIR_OBS_VAR(autoescape); if (!(zephir_array_isset_string_fetch(&autoescape, params, SS("escape"), 0 TSRMLS_CC))) { ZEPHIR_OBS_NVAR(autoescape); @@ -24463,7 +24341,6 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { 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)) { zephir_get_strval(code, code_param); } else { @@ -24473,7 +24350,6 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { attributes = attributes_param; - ZEPHIR_INIT_VAR(order); zephir_create_array(order, 10, 0 TSRMLS_CC); zephir_array_update_string(&order, SL("rel"), &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -24685,7 +24561,6 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { 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)) { zephir_get_strval(id, id_param); } else { @@ -24719,7 +24594,6 @@ static PHP_METHOD(Phalcon_Tag, setDefaults) { zephir_fetch_params(1, 1, 1, &values_param, &merge_param); values = values_param; - if (!merge_param) { merge = 0; } else { @@ -24943,7 +24817,7 @@ static PHP_METHOD(Phalcon_Tag, _inputField) { ZEPHIR_OBS_VAR(id); if (!(zephir_array_isset_long_fetch(&id, params, 0, 0 TSRMLS_CC))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 443 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 443); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(name); if (zephir_array_isset_string_fetch(&name, params, SS("name"), 0 TSRMLS_CC)) { @@ -25011,7 +24885,7 @@ static PHP_METHOD(Phalcon_Tag, _inputFieldChecked) { } if (!(zephir_array_isset_long(params, 0))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 509 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 509); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(id); zephir_array_fetch_long(&id, params, 0, PH_NOISY, "phalcon/tag.zep", 512 TSRMLS_CC); @@ -25087,7 +24961,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "color", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25107,7 +24981,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "text", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25127,7 +25001,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "number", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25147,7 +25021,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "range", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25167,7 +25041,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25187,7 +25061,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25207,7 +25081,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25227,7 +25101,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "datetime-local", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25247,7 +25121,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "month", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25267,7 +25141,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "time", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25287,7 +25161,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "week", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25307,7 +25181,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "password", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25327,7 +25201,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "hidden", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25347,7 +25221,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "file", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25367,7 +25241,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "search", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25387,7 +25261,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "tel", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25407,7 +25281,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25427,7 +25301,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "checkbox", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25447,7 +25321,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "radio", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 415, _1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 414, _1, parameters); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25469,7 +25343,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZVAL_STRING(_1, "image", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25491,7 +25365,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZVAL_STRING(_1, "submit", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 414, _1, parameters, _2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 413, _1, parameters, _2); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -25512,7 +25386,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25532,7 +25406,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -25558,7 +25432,7 @@ static PHP_METHOD(Phalcon_Tag, textArea) { if (!(zephir_array_isset_long(params, 0))) { if (zephir_array_isset_string(params, SS("id"))) { zephir_array_fetch_string(&_0, params, SL("id"), PH_NOISY | PH_READONLY, "phalcon/tag.zep", 933 TSRMLS_CC); - zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE, "phalcon/tag.zep", 933); + zephir_array_update_long(¶ms, 0, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } ZEPHIR_OBS_VAR(id); @@ -26043,13 +25917,13 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "en_US.UTF-8", 0); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 416, &_0, &_3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_4, 415, &_0, &_3); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "UTF-8", 0); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "ASCII//TRANSLIT", 0); - ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 373, &_0, &_3, text); + ZEPHIR_CALL_FUNCTION(&_5, "iconv", NULL, 372, &_0, &_3, text); zephir_check_call_status(); zephir_get_strval(text, _5); } @@ -26112,7 +25986,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (zephir_is_true(_5)) { ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 416, &_3, locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_4, 415, &_3, locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -26375,7 +26249,6 @@ static PHP_METHOD(Phalcon_Text, camelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26402,7 +26275,6 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26480,13 +26352,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_VAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26497,13 +26369,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "f", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(pool); zephir_fast_array_merge(pool, &(_2), &(_4) TSRMLS_CC); @@ -26514,7 +26386,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -26523,7 +26395,7 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 1); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); break; } @@ -26531,21 +26403,21 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_LONG(&_0, 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 9); - ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "a", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "z", 0); - ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_4, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "A", 0); ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "Z", 0); - ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 419, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "range", &_3, 418, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 420, _2, _4, _5); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_6, 419, _2, _4, _5); zephir_check_call_status(); break; } while(0); @@ -26569,7 +26441,7 @@ static PHP_METHOD(Phalcon_Text, random) { static PHP_METHOD(Phalcon_Text, startsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *start_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *start = NULL; ZEPHIR_MM_GROW(); @@ -26584,14 +26456,16 @@ static PHP_METHOD(Phalcon_Text, startsWith) { } - RETURN_MM_BOOL(zephir_start_with(str, start, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_start_with(str, start, &_0)); } static PHP_METHOD(Phalcon_Text, endsWith) { zend_bool ignoreCase; - zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL; + zval *str_param = NULL, *end_param = NULL, *ignoreCase_param = NULL, _0; zval *str = NULL, *end = NULL; ZEPHIR_MM_GROW(); @@ -26606,7 +26480,9 @@ static PHP_METHOD(Phalcon_Text, endsWith) { } - RETURN_MM_BOOL(zephir_end_with(str, end, (ignoreCase ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)))); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (ignoreCase ? 1 : 0)); + RETURN_MM_BOOL(zephir_end_with(str, end, &_0)); } @@ -26623,7 +26499,6 @@ static PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26638,7 +26513,6 @@ static PHP_METHOD(Phalcon_Text, lower) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -26649,7 +26523,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SS("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 196, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 195, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26671,7 +26545,6 @@ static PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(str, str_param); } else { @@ -26686,7 +26559,6 @@ static PHP_METHOD(Phalcon_Text, upper) { 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)) { zephir_get_strval(encoding, encoding_param); } else { @@ -26697,7 +26569,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SS("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 197, str, encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 196, str, encoding); zephir_check_call_status(); RETURN_MM(); } @@ -26742,24 +26614,24 @@ static PHP_METHOD(Phalcon_Text, concat) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 421, &_0); + ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 420, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_2, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_2, 3)) { - ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_3, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 374, _3, &_0); + ZEPHIR_CALL_FUNCTION(&_4, "array_slice", NULL, 373, _3, &_0); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/text.zep", 242); for ( @@ -26799,7 +26671,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(text, text_param); } else { @@ -26814,7 +26685,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { @@ -26830,7 +26700,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { @@ -26846,7 +26715,6 @@ static PHP_METHOD(Phalcon_Text, dynamic) { 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)) { zephir_get_strval(separator, separator_param); } else { @@ -26856,24 +26724,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 423, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 422, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 423, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 422, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3); object_init_ex(_3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SVS(_4, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 424, _4); + ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 423, _4); zephir_check_call_status(); zephir_throw_exception_debug(_3, "phalcon/text.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 425, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 424, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 425, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 424, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -26885,7 +26753,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_INIT_NVAR(_3); zephir_create_closure_ex(_3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 426, pattern, _3, result); + ZEPHIR_CALL_FUNCTION(&_6, "preg_replace_callback", &_7, 425, pattern, _3, result); zephir_check_call_status(); ZEPHIR_CPY_WRT(result, _6); } @@ -26975,8 +26843,8 @@ static PHP_METHOD(Phalcon_Validation, __construct) { zephir_fetch_params(1, 0, 1, &validators_param); if (!validators_param) { - ZEPHIR_INIT_VAR(validators); - array_init(validators); + ZEPHIR_INIT_VAR(validators); + array_init(validators); } else { zephir_get_arrval(validators, validators_param); } @@ -27135,7 +27003,6 @@ static PHP_METHOD(Phalcon_Validation, rules) { 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)) { zephir_get_strval(field, field_param); } else { @@ -27145,7 +27012,6 @@ static PHP_METHOD(Phalcon_Validation, rules) { validators = validators_param; - zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 175); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS @@ -27282,7 +27148,6 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { 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)) { zephir_get_strval(type, type_param); } else { @@ -27318,7 +27183,6 @@ static PHP_METHOD(Phalcon_Validation, setLabels) { labels = labels_param; - zephir_update_property_this(this_ptr, SL("_labels"), labels TSRMLS_CC); } @@ -27335,7 +27199,6 @@ static PHP_METHOD(Phalcon_Validation, getLabel) { 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)) { zephir_get_strval(field, field_param); } else { @@ -27419,7 +27282,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CONCAT_SV(_0, "get", field); ZEPHIR_CPY_WRT(method, _0); if ((zephir_method_exists(entity, method TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&value, entity, method, NULL, 0); zephir_check_call_status(); } else { if ((zephir_method_exists_ex(entity, SS("readattribute") TSRMLS_CC) == SUCCESS)) { @@ -27619,7 +27482,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 128 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 445, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 444, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1); @@ -27653,11 +27516,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 158 TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 189, &_0, medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 188, &_0, medium); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "%02s", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 189, &_0, minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 188, &_0, minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, major, _1, _3, special, specialNumber); RETURN_MM(); @@ -27686,7 +27549,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 187 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 445, _1); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 444, _1); zephir_check_call_status(); break; } @@ -27933,7 +27796,6 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -27953,7 +27815,7 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); @@ -28048,7 +27910,6 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -28068,7 +27929,7 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { return; } zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); - if (description && Z_STRLEN_P(description)) { + if (!(!description) && Z_STRLEN_P(description)) { zephir_update_property_this(this_ptr, SL("_description"), description TSRMLS_CC); } ZEPHIR_MM_RESTORE(); @@ -28266,7 +28127,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { if (!(zephir_array_isset(_3, roleName))) { zephir_update_property_array(this_ptr, SL("_roleInherits"), roleName, ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } - zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 1, roleName); + zephir_update_property_array_multi(this_ptr, SL("_roleInherits"), &roleInheritName TSRMLS_CC, SL("za"), 2, roleName); RETURN_MM_BOOL(1); } @@ -29101,7 +28962,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, __construct) { reflectionData = reflectionData_param; - zephir_array_fetch_string(&_0, reflectionData, SL("name"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 58 TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_name"), _0 TSRMLS_CC); ZEPHIR_OBS_VAR(exprArguments); @@ -29152,7 +29012,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { expr = expr_param; - ZEPHIR_OBS_VAR(type); zephir_array_fetch_string(&type, expr, SL("type"), PH_NOISY, "phalcon/annotations/annotation.zep", 96 TSRMLS_CC); do { @@ -29283,7 +29142,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -29313,7 +29171,6 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -31312,7 +31169,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations) { zephir_update_property_this(this_ptr, SL("_classAnnotations"), collection TSRMLS_CC); RETURN_CCTOR(collection); } - zephir_update_property_this(this_ptr, SL("_classAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_classAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_classAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CTOR(annotations); @@ -31355,7 +31216,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { RETURN_CCTOR(collections); } } - zephir_update_property_this(this_ptr, SL("_methodAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_methodAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_methodAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CCTOR(annotations); @@ -31398,7 +31263,11 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { RETURN_CCTOR(collections); } } - zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_propertyAnnotations"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_MM_BOOL(0); } RETURN_CCTOR(annotations); @@ -32507,7 +32376,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32540,7 +32408,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32646,7 +32513,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -32665,7 +32531,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, " 0, 1, 0) FROM `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_NAME`= '", tableName, "' AND `TABLE_SCHEMA` = '", schemaName, "'"); RETURN_MM(); } @@ -52226,7 +52106,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -52241,7 +52120,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT IF(COUNT(*) > 0, 1, 0) FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_NAME`= '", viewName, "' AND `TABLE_SCHEMA`='", schemaName, "'"); RETURN_MM(); } @@ -52263,7 +52142,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52301,7 +52179,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SHOW TABLES FROM `", schemaName, "`"); RETURN_MM(); } @@ -52325,7 +52203,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52335,7 +52212,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, listViews) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT `TABLE_NAME` AS view_name FROM `INFORMATION_SCHEMA`.`VIEWS` WHERE `TABLE_SCHEMA` = '", schemaName, "' ORDER BY view_name"); RETURN_MM(); } @@ -52356,7 +52233,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52390,7 +52266,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52407,7 +52282,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, describeReferences) { ZVAL_STRING(sql, "SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,REFERENCED_TABLE_SCHEMA,REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME IS NOT NULL AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "CONSTRAINT_SCHEMA = '", schema, "' AND TABLE_NAME = '", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -52432,7 +52307,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -52449,7 +52323,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, tableOptions) { ZVAL_STRING(sql, "SELECT TABLES.TABLE_TYPE AS table_type,TABLES.AUTO_INCREMENT AS auto_increment,TABLES.ENGINE AS engine,TABLES.TABLE_COLLATION AS table_collation FROM INFORMATION_SCHEMA.TABLES WHERE ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_VSVSVS(return_value, sql, "TABLES.TABLE_SCHEMA = '", schema, "' AND TABLES.TABLE_NAME = '", table, "'"); RETURN_MM(); } @@ -52469,7 +52343,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_MySQL, _getTableOptions) { definition = definition_param; - ZEPHIR_OBS_VAR(options); if (zephir_array_isset_string_fetch(&options, definition, SS("options"), 0 TSRMLS_CC)) { ZEPHIR_INIT_VAR(tableOptions); @@ -52550,7 +52423,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, limit) { 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)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { @@ -52696,7 +52568,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52707,7 +52578,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52733,7 +52603,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52744,7 +52613,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52773,7 +52641,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52784,7 +52651,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52811,7 +52677,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52822,7 +52687,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52848,7 +52712,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52859,7 +52722,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52870,7 +52732,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -52913,7 +52774,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52924,7 +52784,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52950,7 +52809,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52961,7 +52819,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -52987,7 +52844,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -52998,7 +52854,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53009,7 +52864,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -53036,7 +52890,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53047,7 +52900,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53057,7 +52909,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createTable) { definition = definition_param; - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Not implemented yet", "phalcon/db/dialect/oracle.zep", 209); return; @@ -53077,7 +52928,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53088,7 +52938,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53102,7 +52951,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -53132,7 +52980,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53140,7 +52987,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -53175,7 +53021,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53195,7 +53040,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -53225,7 +53069,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -53297,7 +53140,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53341,7 +53183,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53413,7 +53254,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53457,7 +53297,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53505,7 +53344,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53552,7 +53390,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Oracle, prepareTable) { 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)) { zephir_get_strval(table, table_param); } else { @@ -53810,7 +53647,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53821,7 +53657,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -53897,7 +53732,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -53908,7 +53742,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54052,7 +53885,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54063,7 +53895,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54074,7 +53905,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -54103,7 +53933,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54114,7 +53943,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54169,7 +53997,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54180,7 +54007,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54191,7 +54017,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -54218,7 +54043,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54229,7 +54053,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54262,7 +54085,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54273,7 +54095,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54302,7 +54123,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54313,7 +54133,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54369,7 +54188,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54380,7 +54198,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54391,7 +54208,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -54424,7 +54240,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54435,7 +54250,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -54445,7 +54259,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { definition = definition_param; - ZEPHIR_OBS_VAR(columns); if (!(zephir_array_isset_string_fetch(&columns, definition, SS("columns"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "The index 'columns' is required in the definition array", "phalcon/db/dialect/postgresql.zep", 350); @@ -54667,7 +54480,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54687,7 +54499,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -54718,7 +54529,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54726,7 +54536,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -54761,7 +54570,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54781,7 +54589,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -54810,7 +54617,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -54825,7 +54631,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM information_schema.tables WHERE table_schema = '", schemaName, "' AND table_name='", tableName, "'"); RETURN_MM(); } @@ -54846,7 +54652,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -54861,7 +54666,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM pg_views WHERE viewname='", viewName, "' AND schemaname='", schemaName, "'"); RETURN_MM(); } @@ -54882,7 +54687,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -54897,7 +54701,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { } - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_CONCAT_SVSVS(return_value, "SELECT DISTINCT c.column_name AS Field, c.data_type AS Type, c.character_maximum_length AS Size, c.numeric_precision AS NumericSize, c.numeric_scale AS NumericScale, c.is_nullable AS Null, CASE WHEN pkc.column_name NOTNULL THEN 'PRI' ELSE '' END AS Key, CASE WHEN c.data_type LIKE '%int%' AND c.column_default LIKE '%nextval%' THEN 'auto_increment' ELSE '' END AS Extra, c.ordinal_position AS Position, c.column_default FROM information_schema.columns c LEFT JOIN ( SELECT kcu.column_name, kcu.table_name, kcu.table_schema FROM information_schema.table_constraints tc INNER JOIN information_schema.key_column_usage kcu on (kcu.constraint_name = tc.constraint_name and kcu.table_name=tc.table_name and kcu.table_schema=tc.table_schema) WHERE tc.constraint_type='PRIMARY KEY') pkc ON (c.column_name=pkc.column_name AND c.table_schema = pkc.table_schema AND c.table_name=pkc.table_name) WHERE c.table_schema='", schema, "' AND c.table_name='", table, "' ORDER BY c.ordinal_position"); RETURN_MM(); } @@ -54922,7 +54726,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, listTables) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVS(return_value, "SELECT table_name FROM information_schema.tables WHERE table_schema = '", schemaName, "' ORDER BY table_name"); RETURN_MM(); } @@ -54961,7 +54765,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -54993,7 +54796,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -55010,7 +54812,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZVAL_STRING(sql, "SELECT tc.table_name as TABLE_NAME, kcu.column_name as COLUMN_NAME, tc.constraint_name as CONSTRAINT_NAME, tc.table_catalog as REFERENCED_TABLE_SCHEMA, ccu.table_name AS REFERENCED_TABLE_NAME, ccu.column_name AS REFERENCED_COLUMN_NAME FROM information_schema.table_constraints AS tc JOIN information_schema.key_column_usage AS kcu ON tc.constraint_name = kcu.constraint_name JOIN information_schema.constraint_column_usage AS ccu ON ccu.constraint_name = tc.constraint_name WHERE constraint_type = 'FOREIGN KEY' AND ", 1); - if (schema && Z_STRLEN_P(schema)) { + if (!(!schema) && Z_STRLEN_P(schema)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_SVSVS(_0, "tc.table_schema = '", schema, "' AND tc.table_name='", table, "'"); zephir_concat_self(&sql, _0 TSRMLS_CC); @@ -55035,7 +54837,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -55064,7 +54865,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, _getTableOptions) { definition = definition_param; - RETURN_STRING("", 1); } @@ -55258,7 +55058,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55269,7 +55068,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55334,7 +55132,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55345,7 +55142,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55374,7 +55170,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55385,7 +55180,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55396,7 +55190,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { 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)) { zephir_get_strval(columnName, columnName_param); } else { @@ -55423,7 +55216,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55434,7 +55226,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55451,7 +55242,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { } else { ZVAL_STRING(sql, "CREATE INDEX \"", 1); } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CALL_METHOD(&_0, index, "getname", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); @@ -55487,7 +55278,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55498,7 +55288,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55509,7 +55298,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { 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)) { zephir_get_strval(indexName, indexName_param); } else { @@ -55518,7 +55306,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { } - if (schemaName && Z_STRLEN_P(schemaName)) { + if (!(!schemaName) && Z_STRLEN_P(schemaName)) { ZEPHIR_CONCAT_SVSVS(return_value, "DROP INDEX \"", schemaName, "\".\"", indexName, "\""); RETURN_MM(); } @@ -55539,7 +55327,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55550,7 +55337,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55576,7 +55362,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55587,7 +55372,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55613,7 +55397,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55624,7 +55407,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55650,7 +55432,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55661,7 +55442,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55672,7 +55452,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { 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)) { zephir_get_strval(referenceName, referenceName_param); } else { @@ -55704,7 +55483,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55715,7 +55493,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -55725,7 +55502,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { definition = definition_param; - ZEPHIR_CALL_METHOD(&table, this_ptr, "preparetable", NULL, 0, tableName, schemaName); zephir_check_call_status(); ZEPHIR_INIT_VAR(temporary); @@ -55909,7 +55685,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -55929,7 +55704,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -55960,7 +55734,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -55968,7 +55741,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZVAL_EMPTY_STRING(viewName); } definition = definition_param; - if (!schemaName_param) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); @@ -56003,7 +55775,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -56023,7 +55794,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - ifExists = Z_BVAL_P(ifExists_param); } @@ -56051,7 +55821,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { @@ -56083,7 +55852,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { 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)) { zephir_get_strval(viewName, viewName_param); } else { @@ -56115,7 +55883,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56171,7 +55938,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { @@ -56197,7 +55963,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56229,7 +55994,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { 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)) { zephir_get_strval(index, index_param); } else { @@ -56255,7 +56019,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56287,7 +56050,6 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { 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)) { zephir_get_strval(table, table_param); } else { @@ -56340,13 +56102,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Db_Profiler_Item) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlStatement) { - zval *sqlStatement; + zval *sqlStatement_param = NULL; + zval *sqlStatement = NULL; - zephir_fetch_params(0, 1, 0, &sqlStatement); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlStatement_param); + zephir_get_strval(sqlStatement, sqlStatement_param); zephir_update_property_this(this_ptr, SL("_sqlStatement"), sqlStatement TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56359,13 +56125,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlStatement) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlVariables) { - zval *sqlVariables; + zval *sqlVariables_param = NULL; + zval *sqlVariables = NULL; - zephir_fetch_params(0, 1, 0, &sqlVariables); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlVariables_param); + zephir_get_arrval(sqlVariables, sqlVariables_param); zephir_update_property_this(this_ptr, SL("_sqlVariables"), sqlVariables TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56378,13 +56148,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlVariables) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setSqlBindTypes) { - zval *sqlBindTypes; + zval *sqlBindTypes_param = NULL; + zval *sqlBindTypes = NULL; - zephir_fetch_params(0, 1, 0, &sqlBindTypes); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &sqlBindTypes_param); + zephir_get_arrval(sqlBindTypes, sqlBindTypes_param); zephir_update_property_this(this_ptr, SL("_sqlBindTypes"), sqlBindTypes TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -56397,13 +56171,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getSqlBindTypes) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setInitialTime) { - zval *initialTime; + zval *initialTime_param = NULL, *_0; + double initialTime; - zephir_fetch_params(0, 1, 0, &initialTime); + zephir_fetch_params(0, 1, 0, &initialTime_param); + initialTime = zephir_get_doubleval(initialTime_param); - zephir_update_property_this(this_ptr, SL("_initialTime"), initialTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, initialTime); + zephir_update_property_this(this_ptr, SL("_initialTime"), _0 TSRMLS_CC); } @@ -56416,13 +56194,17 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getInitialTime) { static PHP_METHOD(Phalcon_Db_Profiler_Item, setFinalTime) { - zval *finalTime; + zval *finalTime_param = NULL, *_0; + double finalTime; - zephir_fetch_params(0, 1, 0, &finalTime); + zephir_fetch_params(0, 1, 0, &finalTime_param); + finalTime = zephir_get_doubleval(finalTime_param); - zephir_update_property_this(this_ptr, SL("_finalTime"), finalTime TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_0); + ZVAL_DOUBLE(_0, finalTime); + zephir_update_property_this(this_ptr, SL("_finalTime"), _0 TSRMLS_CC); } @@ -56440,7 +56222,7 @@ static PHP_METHOD(Phalcon_Db_Profiler_Item, getTotalElapsedSeconds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_finalTime"), PH_NOISY_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_initialTime"), PH_NOISY_CC); - sub_function(return_value, _0, _1 TSRMLS_CC); + zephir_sub_function(return_value, _0, _1); return; } @@ -56877,8 +56659,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { zephir_fetch_params(1, 0, 2, &styles_param, &detailed_param); if (!styles_param) { - ZEPHIR_INIT_VAR(styles); - array_init(styles); + ZEPHIR_INIT_VAR(styles); + array_init(styles); } else { zephir_get_arrval(styles, styles_param); } @@ -56902,7 +56684,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { ZEPHIR_INIT_VAR(_1); array_init(_1); zephir_update_property_this(this_ptr, SL("_methods"), _1 TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_detailed"), detailed ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (detailed) { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_detailed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -56921,7 +56707,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _2); zephir_check_call_status(); @@ -56941,7 +56727,6 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { 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)) { zephir_get_strval(type, type_param); } else { @@ -57027,13 +56812,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, one) { static PHP_METHOD(Phalcon_Debug_Dump, output) { zend_bool _15, _16, _17; - HashTable *_8, *_24, *_35; - HashPosition _7, _23, _34; - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_19 = NULL, *_21 = NULL, *_28 = NULL, *_29 = NULL, *_30 = NULL, *_32 = NULL; + HashTable *_8, *_25, *_36; + HashPosition _7, _24, _35; + zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_11 = NULL, *_20 = NULL, *_22 = NULL, *_29 = NULL, *_30 = NULL, *_31 = NULL, *_33 = NULL; zval *_1 = NULL, *_12 = NULL, *_38 = NULL; int tab, ZEPHIR_LAST_CALL_STATUS; zval *name = NULL, *_0; - zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_20 = NULL, *_22, **_25, *_26 = NULL, *_27 = NULL, *_31, *_33, **_36, *_37 = NULL, *_39 = NULL, _40; + zval *variable, *name_param = NULL, *tab_param = NULL, *key = NULL, *value = NULL, *output = NULL, *space, *type = NULL, *attr = NULL, *_2 = NULL, *_3 = NULL, _5 = zval_used_for_init, **_9, *_10 = NULL, *_13 = NULL, *_14 = NULL, *_18 = NULL, *_19 = NULL, *_21 = NULL, *_23, **_26, *_27 = NULL, *_28 = NULL, *_32, *_34, **_37, *_39 = NULL, _40; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &variable, &name_param, &tab_param); @@ -57055,7 +56840,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(space, " ", 1); ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - if (name && Z_STRLEN_P(name)) { + if (!(!name) && Z_STRLEN_P(name)) { ZEPHIR_INIT_VAR(_0); ZEPHIR_CONCAT_VS(_0, name, " "); ZEPHIR_CPY_WRT(output, _0); @@ -57119,14 +56904,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } ZEPHIR_SINIT_NVAR(_5); @@ -57153,7 +56938,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_FUNCTION(&_2, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); zephir_concat_self(&output, _2 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_13, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); if (zephir_is_true(_13)) { ZEPHIR_INIT_NVAR(_12); @@ -57164,7 +56949,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_temp_parameter(_3); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_18, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_21, 170, variable); + ZEPHIR_CALL_FUNCTION(&_18, "get_parent_class", &_22, 169, variable); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":parent"), &_18, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); @@ -57174,17 +56959,17 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _18 TSRMLS_CC); } zephir_concat_self_str(&output, SL(" (\n") TSRMLS_CC); - _22 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); - if (!(zephir_is_true(_22))) { + _23 = zephir_fetch_nproperty_this(this_ptr, SL("_detailed"), PH_NOISY_CC); + if (!(zephir_is_true(_23))) { ZEPHIR_CALL_FUNCTION(&_10, "get_object_vars", NULL, 24, variable); zephir_check_call_status(); - zephir_is_iterable(_10, &_24, &_23, 0, 0, "phalcon/debug/dump.zep", 171); + zephir_is_iterable(_10, &_25, &_24, 0, 0, "phalcon/debug/dump.zep", 171); for ( - ; zephir_hash_get_current_data_ex(_24, (void**) &_25, &_23) == SUCCESS - ; zephir_hash_move_forward_ex(_24, &_23) + ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zephir_hash_move_forward_ex(_25, &_24) ) { - ZEPHIR_GET_HMKEY(key, _24, _23); - ZEPHIR_GET_HVALUE(value, _25); + ZEPHIR_GET_HMKEY(key, _25, _24); + ZEPHIR_GET_HVALUE(value, _26); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_13, "str_repeat", &_11, 132, space, &_5); @@ -57193,35 +56978,35 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":key"), &key, PH_COPY | PH_SEPARATE); add_assoc_stringl_ex(_12, SS(":type"), SL("public"), 1); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _13, _26); + ZEPHIR_CONCAT_VV(_14, _13, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } } else { do { - Z_SET_ISREF_P(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_28, 171, variable); - Z_UNSET_ISREF_P(variable); + ZEPHIR_MAKE_REF(variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_29, 170, variable); + ZEPHIR_UNREF(variable); zephir_check_call_status(); if (!(zephir_is_true(attr))) { continue; @@ -57236,9 +57021,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(_3); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "\\x00", 0); - ZEPHIR_CALL_FUNCTION(&_10, "ord", &_29, 133, &_5); + ZEPHIR_CALL_FUNCTION(&_10, "ord", &_30, 133, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_13, "chr", &_30, 131, _10); + ZEPHIR_CALL_FUNCTION(&_13, "chr", &_31, 131, _10); zephir_check_call_status(); zephir_fast_explode(_3, _13, key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(key, _3); @@ -57247,8 +57032,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { if (zephir_array_isset_long(key, 1)) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "private", 1); - zephir_array_fetch_long(&_31, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); - if (ZEPHIR_IS_STRING(_31, "*")) { + zephir_array_fetch_long(&_32, key, 1, PH_NOISY | PH_READONLY, "phalcon/debug/dump.zep", 193 TSRMLS_CC); + if (ZEPHIR_IS_STRING(_32, "*")) { ZEPHIR_INIT_NVAR(type); ZVAL_STRING(type, "protected", 1); } @@ -57261,36 +57046,36 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_create_array(_12, 3, 0 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_26, this_ptr, "getstyle", &_4, 0, _3); + ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":style"), &_26, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(key); - ZEPHIR_CALL_FUNCTION(&_26, "end", &_32, 172, key); - Z_UNSET_ISREF_P(key); + zephir_array_update_string(&_12, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + ZEPHIR_MAKE_REF(key); + ZEPHIR_CALL_FUNCTION(&_27, "end", &_33, 171, key); + ZEPHIR_UNREF(key); zephir_check_call_status(); - zephir_array_update_string(&_12, SL(":key"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_12, SL(":key"), &_27, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":type"), &type, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:key (:type) = ", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _12); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14); - ZEPHIR_CONCAT_VV(_14, _18, _26); + ZEPHIR_CONCAT_VV(_14, _18, _27); zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); ZVAL_STRING(_3, "", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "output", &_19, 169, value, _3, &_5); + ZEPHIR_INIT_NVAR(_19); + ZVAL_LONG(_19, (tab + 1)); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "output", &_20, 168, value, _3, _19); zephir_check_temp_parameter(_3); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _27, "\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _28, "\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } while (zephir_is_true(attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 173, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 172, variable); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); @@ -57317,25 +57102,25 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _14 TSRMLS_CC); ZEPHIR_INIT_NVAR(_3); zephir_get_class(_3, variable, 0 TSRMLS_CC); - _33 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); - if (zephir_fast_in_array(_3, _33 TSRMLS_CC)) { + _34 = zephir_fetch_nproperty_this(this_ptr, SL("_methods"), PH_NOISY_CC); + if (zephir_fast_in_array(_3, _34 TSRMLS_CC)) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, "[already listed]\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, "[already listed]\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } else { - zephir_is_iterable(attr, &_35, &_34, 0, 0, "phalcon/debug/dump.zep", 219); + zephir_is_iterable(attr, &_36, &_35, 0, 0, "phalcon/debug/dump.zep", 219); for ( - ; zephir_hash_get_current_data_ex(_35, (void**) &_36, &_34) == SUCCESS - ; zephir_hash_move_forward_ex(_35, &_34) + ; zephir_hash_get_current_data_ex(_36, (void**) &_37, &_35) == SUCCESS + ; zephir_hash_move_forward_ex(_36, &_35) ) { - ZEPHIR_GET_HVALUE(value, _36); - ZEPHIR_INIT_NVAR(_37); - zephir_get_class(_37, variable, 0 TSRMLS_CC); - zephir_update_property_array_append(this_ptr, SL("_methods"), _37 TSRMLS_CC); + ZEPHIR_GET_HVALUE(value, _37); + ZEPHIR_INIT_NVAR(_19); + zephir_get_class(_19, variable, 0 TSRMLS_CC); + zephir_update_property_array_append(this_ptr, SL("_methods"), _19 TSRMLS_CC); if (ZEPHIR_IS_STRING(value, "__construct")) { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); @@ -57343,10 +57128,10 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_12); zephir_create_array(_12, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); zephir_array_update_string(&_12, SL(":style"), &_13, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL(":method"), &value, PH_COPY | PH_SEPARATE); @@ -57360,23 +57145,23 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_26, "str_repeat", &_11, 132, space, &_5); + ZEPHIR_CALL_FUNCTION(&_27, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_38); zephir_create_array(_38, 2, 0 TSRMLS_CC); - ZEPHIR_INIT_NVAR(_37); - ZVAL_STRING(_37, "obj", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_27, this_ptr, "getstyle", &_4, 0, _37); - zephir_check_temp_parameter(_37); + ZEPHIR_INIT_NVAR(_19); + ZVAL_STRING(_19, "obj", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_28, this_ptr, "getstyle", &_4, 0, _19); + zephir_check_temp_parameter(_19); zephir_check_call_status(); - zephir_array_update_string(&_38, SL(":style"), &_27, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_38, SL(":style"), &_28, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_38, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "->:method();\n", 0); - ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _38); + ZEPHIR_CALL_FUNCTION(&_28, "strtr", &_6, 54, &_5, _38); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_39); - ZEPHIR_CONCAT_VV(_39, _26, _27); + ZEPHIR_CONCAT_VV(_39, _27, _28); zephir_concat_self(&output, _39 TSRMLS_CC); } } @@ -57384,9 +57169,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_5, tab); ZEPHIR_CALL_FUNCTION(&_18, "str_repeat", &_11, 132, space, &_5); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_20); - ZEPHIR_CONCAT_VS(_20, _18, ")\n"); - zephir_concat_self(&output, _20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_21); + ZEPHIR_CONCAT_VS(_21, _18, ")\n"); + zephir_concat_self(&output, _21 TSRMLS_CC); } ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, (tab - 1)); @@ -57412,7 +57197,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CONCAT_VV(return_value, output, _2); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 174, variable); + ZEPHIR_CALL_FUNCTION(&_2, "is_float", NULL, 173, variable); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(_1); @@ -57465,14 +57250,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_STRING(&_40, "utf-8", 0); ZEPHIR_CALL_FUNCTION(&_2, "htmlentities", NULL, 153, variable, &_5, &_40); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_26, "nl2br", NULL, 175, _2); + ZEPHIR_CALL_FUNCTION(&_27, "nl2br", NULL, 174, _2); zephir_check_call_status(); - zephir_array_update_string(&_1, SL(":var"), &_26, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&_1, SL(":var"), &_27, PH_COPY | PH_SEPARATE); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "String (:length) \":var\"", 0); - ZEPHIR_CALL_FUNCTION(&_26, "strtr", &_6, 54, &_5, _1); + ZEPHIR_CALL_FUNCTION(&_27, "strtr", &_6, 54, &_5, _1); zephir_check_call_status(); - ZEPHIR_CONCAT_VV(return_value, output, _26); + ZEPHIR_CONCAT_VV(return_value, output, _27); RETURN_MM(); } if (Z_TYPE_P(variable) == IS_BOOL) { @@ -57583,7 +57368,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 167); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 290); for ( @@ -57685,7 +57470,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault) { static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; @@ -57702,9 +57487,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57715,9 +57500,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57728,9 +57513,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "url", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57741,9 +57526,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57754,9 +57539,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57767,9 +57552,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "response", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57780,9 +57565,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "cookies", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Response\\Cookies", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57793,9 +57578,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "request", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Http\\Request", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57806,9 +57591,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57819,9 +57604,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57832,9 +57617,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57845,9 +57630,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "crypt", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Crypt", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57858,9 +57643,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57871,9 +57656,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flash", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Direct", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57884,9 +57669,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "flashSession", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Flash\\Session", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57897,9 +57682,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "tag", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Tag", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57910,9 +57695,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "session", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Session\\Adapter\\Files", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57934,9 +57719,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57947,9 +57732,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -57960,9 +57745,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(_3, "assets", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Assets\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58064,7 +57849,6 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { 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)) { zephir_get_strval(propertyName, propertyName_param); } else { @@ -58092,7 +57876,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { RETURN_CCTOR(service); } if (ZEPHIR_IS_STRING(propertyName, "di")) { - zephir_update_property_zval(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("di"), dependencyInjector TSRMLS_CC); RETURN_CCTOR(dependencyInjector); } if (ZEPHIR_IS_STRING(propertyName, "persistent")) { @@ -58107,7 +57891,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CPY_WRT(persistent, _3); - zephir_update_property_zval(this_ptr, SL("persistent"), persistent TSRMLS_CC); + zephir_update_property_this(this_ptr, SL("persistent"), persistent TSRMLS_CC); RETURN_CCTOR(persistent); } ZEPHIR_INIT_VAR(_6); @@ -58188,7 +57972,6 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -58204,7 +57987,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_MM_RESTORE(); } @@ -58226,7 +58013,11 @@ static PHP_METHOD(Phalcon_Di_Service, setShared) { shared = zephir_get_boolval(shared_param); - zephir_update_property_this(this_ptr, SL("_shared"), shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (shared) { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_shared"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -58342,7 +58133,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, 177, dependencyInjector, definition, parameters); + ZEPHIR_CALL_METHOD(&instance, builder, "build", NULL, 176, dependencyInjector, definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -58364,7 +58155,11 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { if (zephir_is_true(shared)) { zephir_update_property_this(this_ptr, SL("_sharedInstance"), instance TSRMLS_CC); } - zephir_update_property_this(this_ptr, SL("_resolved"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_resolved"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_CCTOR(instance); } @@ -58382,7 +58177,6 @@ static PHP_METHOD(Phalcon_Di_Service, setParameter) { parameter = parameter_param; - ZEPHIR_OBS_VAR(definition); zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); if (Z_TYPE_P(definition) != IS_ARRAY) { @@ -58391,11 +58185,11 @@ static PHP_METHOD(Phalcon_Di_Service, setParameter) { } ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE, "phalcon/di/service.zep", 228); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { ZEPHIR_INIT_NVAR(arguments); zephir_create_array(arguments, 1, 0 TSRMLS_CC); - zephir_array_update_long(&arguments, position, ¶meter, PH_COPY, "phalcon/di/service.zep", 230); + zephir_array_update_long(&arguments, position, ¶meter, PH_COPY ZEPHIR_DEBUG_PARAMS_DUMMY); } zephir_array_update_string(&definition, SL("arguments"), &arguments, PH_COPY | PH_SEPARATE); zephir_update_property_this(this_ptr, SL("_definition"), definition TSRMLS_CC); @@ -58448,7 +58242,6 @@ static PHP_METHOD(Phalcon_Di_Service, __set_state) { attributes = attributes_param; - ZEPHIR_OBS_VAR(name); if (!(zephir_array_isset_string_fetch(&name, attributes, SS("_name"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "The attribute '_name' is required", "phalcon/di/service.zep", 289); @@ -58533,14 +58326,14 @@ ZEPHIR_INIT_CLASS(Phalcon_Di_FactoryDefault_Cli) { static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { - zval *_2 = NULL, *_3 = NULL, *_4 = NULL, _5 = zval_used_for_init; + zval *_2 = NULL, *_3 = NULL, *_4 = NULL, *_5 = NULL; zval *_1; int ZEPHIR_LAST_CALL_STATUS; zephir_fcall_cache_entry *_0 = NULL, *_6 = NULL; ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 176); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 175); zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); zephir_create_array(_1, 10, 0 TSRMLS_CC); @@ -58550,9 +58343,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "router", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Router", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_VAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_VAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58563,9 +58356,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "dispatcher", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Cli\\Dispatcher", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58576,9 +58369,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58589,9 +58382,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "modelsMetadata", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58602,9 +58395,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "filter", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Filter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58615,9 +58408,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "escaper", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Escaper", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58628,9 +58421,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "annotations", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Annotations\\Adapter\\Memory", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58641,9 +58434,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "security", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Security", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58654,9 +58447,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "eventsManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Events\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58667,9 +58460,9 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZVAL_STRING(_3, "transactionManager", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_NVAR(_4); ZVAL_STRING(_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_SINIT_NVAR(_5); - ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, &_5); + ZEPHIR_INIT_NVAR(_5); + ZVAL_BOOL(_5, 1); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", &_6, 64, _3, _4, _5); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -58715,7 +58508,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { argument = argument_param; - ZEPHIR_OBS_VAR(type); if (!(zephir_array_isset_string_fetch(&type, argument, SS("type"), 0 TSRMLS_CC))) { ZEPHIR_INIT_VAR(_0); @@ -58832,7 +58624,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { arguments = arguments_param; - ZEPHIR_INIT_VAR(buildArguments); array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); @@ -58842,7 +58633,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 178, dependencyInjector, position, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_buildparameter", &_4, 177, dependencyInjector, position, argument); zephir_check_call_status(); zephir_array_append(&buildArguments, _3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } @@ -58863,7 +58654,6 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { zephir_fetch_params(1, 2, 1, &dependencyInjector, &definition_param, ¶meters); definition = definition_param; - if (!parameters) { parameters = ZEPHIR_GLOBAL(global_null); } @@ -58887,7 +58677,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, definition, SS("arguments"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(instance, className, _0 TSRMLS_CC); @@ -58957,7 +58747,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(_5); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 179, dependencyInjector, arguments); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameters", &_1, 178, dependencyInjector, arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(_5, methodCall, _0); zephir_check_call_status(); @@ -59021,7 +58811,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 178, dependencyInjector, propertyPosition, propertyValue); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_buildparameter", &_12, 177, dependencyInjector, propertyPosition, propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(instance, propertyName, _0 TSRMLS_CC); } @@ -59086,13 +58876,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Events_Event) { static PHP_METHOD(Phalcon_Events_Event, setType) { - zval *type; + zval *type_param = NULL; + zval *type = NULL; - zephir_fetch_params(0, 1, 0, &type); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &type_param); + zephir_get_strval(type, type_param); zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -59149,7 +58943,6 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59172,7 +58965,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { zephir_update_property_this(this_ptr, SL("_data"), data TSRMLS_CC); } if (cancelable != 1) { - zephir_update_property_this(this_ptr, SL("_cancelable"), cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (cancelable) { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_cancelable"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -59188,7 +58985,11 @@ static PHP_METHOD(Phalcon_Events_Event, stop) { ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_events_exception_ce, "Trying to cancel a non-cancelable event", "phalcon/events/event.zep", 93); return; } - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59289,7 +59090,6 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59300,10 +59100,9 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { priority = 100; } else { if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - priority = Z_LVAL_P(priority_param); } @@ -59325,7 +59124,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } ZEPHIR_INIT_VAR(_2); ZVAL_LONG(_2, 1); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 186, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "setextractflags", NULL, 185, _2); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), eventType, priorityQueue TSRMLS_CC); } else { @@ -59335,7 +59134,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (Z_TYPE_P(priorityQueue) == IS_OBJECT) { ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, priority); - ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 187, handler, _2); + ZEPHIR_CALL_METHOD(NULL, priorityQueue, "insert", NULL, 186, handler, _2); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -59359,7 +59158,6 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59384,7 +59182,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { } ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 186, _1); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "setextractflags", NULL, 185, _1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, 3); @@ -59406,13 +59204,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(_5, handler)) { zephir_array_fetch_string(&_6, data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7, data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 187, _6, _7); + ZEPHIR_CALL_METHOD(NULL, newPriorityQueue, "insert", &_8, 186, _6, _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, 188, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 187, handler, priorityQueue, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(key)) { zephir_array_unset(&priorityQueue, key, PH_SEPARATE); @@ -59434,7 +59232,11 @@ static PHP_METHOD(Phalcon_Events_Manager, enablePriorities) { enablePriorities = zephir_get_boolval(enablePriorities_param); - zephir_update_property_this(this_ptr, SL("_enablePriorities"), enablePriorities ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (enablePriorities) { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enablePriorities"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59455,7 +59257,11 @@ static PHP_METHOD(Phalcon_Events_Manager, collectResponses) { collect = zephir_get_boolval(collect_param); - zephir_update_property_this(this_ptr, SL("_collect"), collect ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (collect) { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_collect"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -59489,7 +59295,6 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59529,7 +59334,6 @@ static PHP_METHOD(Phalcon_Events_Manager, dettachAll) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59568,7 +59372,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(_1, queue, 0 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Unexpected value type: expected object of type SplPriorityQueue, %s given", 0); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 189, &_2, _1); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", NULL, 188, &_2, _1); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _3); zephir_check_call_status(); @@ -59715,7 +59519,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool cancelable, _3; - zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0, *_2; + zval *eventType_param = NULL, *source, *data = NULL, *cancelable_param = NULL, *events, *eventParts, *type, *eventName, *event = NULL, *status = NULL, *fireEvents = NULL, *_0 = NULL, *_2; zval *eventType = NULL, *_1; ZEPHIR_MM_GROW(); @@ -59725,7 +59529,6 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { 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)) { zephir_get_strval(eventType, eventType_param); } else { @@ -59781,9 +59584,15 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (_3) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -59797,10 +59606,16 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { if (Z_TYPE_P(event) == IS_NULL) { ZEPHIR_INIT_NVAR(event); object_init_ex(event, phalcon_events_event_ce); - ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 190, eventName, source, data, (cancelable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (cancelable) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, event, "__construct", &_4, 189, eventName, source, data, _0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 191, fireEvents, event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_5, 190, fireEvents, event); zephir_check_call_status(); } } @@ -59820,7 +59635,6 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { 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)) { zephir_get_strval(type, type_param); } else { @@ -59846,7 +59660,6 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { 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)) { zephir_get_strval(type, type_param); } else { @@ -60013,7 +59826,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { } } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_3, 197); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -60139,7 +59952,6 @@ static PHP_METHOD(Phalcon_Flash_Session, _setSessionMessages) { messages = messages_param; - _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _0); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -60225,7 +60037,7 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { int ZEPHIR_LAST_CALL_STATUS; zend_bool remove; - zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages; + zval *type = NULL, *remove_param = NULL, *messages = NULL, *returnMessages, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 2, &type, &remove_param); @@ -60240,7 +60052,13 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(type) != IS_STRING) { RETURN_CCTOR(messages); @@ -60255,11 +60073,11 @@ static PHP_METHOD(Phalcon_Flash_Session, getMessages) { static PHP_METHOD(Phalcon_Flash_Session, output) { - zephir_fcall_cache_entry *_3 = NULL, *_4 = NULL; - HashTable *_1; - HashPosition _0; + zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; + HashTable *_2; + HashPosition _1; int ZEPHIR_LAST_CALL_STATUS; - zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, **_2; + zval *remove_param = NULL, *type = NULL, *message = NULL, *messages = NULL, *_0, **_3; zend_bool remove; ZEPHIR_MM_GROW(); @@ -60272,21 +60090,27 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { } - ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, (remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (remove) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&messages, this_ptr, "_getsessionmessages", NULL, 0, _0); zephir_check_call_status(); if (Z_TYPE_P(messages) == IS_ARRAY) { - zephir_is_iterable(messages, &_1, &_0, 0, 0, "phalcon/flash/session.zep", 162); + zephir_is_iterable(messages, &_2, &_1, 0, 0, "phalcon/flash/session.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zephir_hash_move_forward_ex(_2, &_1) ) { - ZEPHIR_GET_HMKEY(type, _1, _0); - ZEPHIR_GET_HVALUE(message, _2); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_3, 0, type, message); + ZEPHIR_GET_HMKEY(type, _2, _1); + ZEPHIR_GET_HVALUE(message, _3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "outputmessage", &_4, 0, type, message); zephir_check_call_status(); } } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_4, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60304,7 +60128,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, 198); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 197); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -60411,7 +60235,6 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -60504,7 +60327,6 @@ static PHP_METHOD(Phalcon_Forms_Element, addValidators) { zephir_fetch_params(1, 1, 1, &validators_param, &merge_param); validators = validators_param; - if (!merge_param) { merge = 1; } else { @@ -60574,7 +60396,7 @@ static PHP_METHOD(Phalcon_Forms_Element, prepareAttributes) { } else { ZEPHIR_CPY_WRT(widgetAttributes, attributes); } - zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE, "phalcon/forms/element.zep", 210); + zephir_array_update_long(&widgetAttributes, 0, &name, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_OBS_VAR(defaultAttributes); zephir_read_property_this(&defaultAttributes, this_ptr, SL("_attributes"), PH_NOISY_CC); if (Z_TYPE_P(defaultAttributes) == IS_ARRAY) { @@ -60658,7 +60480,6 @@ static PHP_METHOD(Phalcon_Forms_Element, setAttributes) { attributes = attributes_param; - zephir_update_property_this(this_ptr, SL("_attributes"), attributes TSRMLS_CC); RETURN_THISW(); @@ -61203,7 +61024,6 @@ static PHP_METHOD(Phalcon_Forms_Form, setUserOptions) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); RETURN_THISW(); @@ -61256,7 +61076,6 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { zephir_fetch_params(1, 2, 1, &data_param, &entity, &whitelist); data = data_param; - ZEPHIR_SEPARATE_PARAM(entity); if (!whitelist) { whitelist = ZEPHIR_GLOBAL(global_null); @@ -61409,7 +61228,7 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { } else { ZEPHIR_INIT_NVAR(validation); object_init_ex(validation, phalcon_validation_ce); - ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 212, preparedValidators); + ZEPHIR_CALL_METHOD(NULL, validation, "__construct", &_11, 211, preparedValidators); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&filters, element, "getfilters", NULL, 0); @@ -61417,10 +61236,10 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { if (Z_TYPE_P(filters) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&_2, element, "getname", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 213, _2, filters); + ZEPHIR_CALL_METHOD(NULL, validation, "setfilters", &_12, 212, _2, filters); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 214, data, entity); + ZEPHIR_CALL_METHOD(&elementMessages, validation, "validate", &_13, 213, data, entity); zephir_check_call_status(); if (zephir_fast_count_int(elementMessages TSRMLS_CC)) { ZEPHIR_CALL_METHOD(&_14, element, "getname", NULL, 0); @@ -61483,7 +61302,7 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessages) { ; zephir_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(elementMessages, _3); - ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 215, elementMessages); + ZEPHIR_CALL_METHOD(NULL, group, "appendmessages", &_4, 214, elementMessages); zephir_check_call_status(); } } @@ -61606,7 +61425,6 @@ static PHP_METHOD(Phalcon_Forms_Form, render) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61650,7 +61468,6 @@ static PHP_METHOD(Phalcon_Forms_Form, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61690,7 +61507,6 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61698,8 +61514,8 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { ZVAL_EMPTY_STRING(name); } if (!attributes_param) { - ZEPHIR_INIT_VAR(attributes); - array_init(attributes); + ZEPHIR_INIT_VAR(attributes); + array_init(attributes); } else { zephir_get_arrval(attributes, attributes_param); } @@ -61737,7 +61553,6 @@ static PHP_METHOD(Phalcon_Forms_Form, getLabel) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61781,7 +61596,6 @@ static PHP_METHOD(Phalcon_Forms_Form, getValue) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61845,7 +61659,6 @@ static PHP_METHOD(Phalcon_Forms_Form, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61871,7 +61684,6 @@ static PHP_METHOD(Phalcon_Forms_Form, remove) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -61953,7 +61765,7 @@ static PHP_METHOD(Phalcon_Forms_Form, rewind) { ZVAL_LONG(_0, 0); zephir_update_property_this(this_ptr, SL("_position"), _0 TSRMLS_CC); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 216, _0); + ZEPHIR_CALL_FUNCTION(&_1, "array_values", NULL, 215, _0); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_elementsIndexed"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -62045,7 +61857,7 @@ static PHP_METHOD(Phalcon_Forms_Manager, create) { } ZEPHIR_INIT_VAR(form); object_init_ex(form, phalcon_forms_form_ce); - ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 217, entity); + ZEPHIR_CALL_METHOD(NULL, form, "__construct", NULL, 216, entity); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_forms"), name, form TSRMLS_CC); RETURN_CCTOR(form); @@ -62154,7 +61966,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Check, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 199, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "checkfield", &_0, 198, _1); zephir_check_call_status(); RETURN_MM(); @@ -62199,7 +62011,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Date, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 200, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "datefield", &_0, 199, _1); zephir_check_call_status(); RETURN_MM(); @@ -62244,7 +62056,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Email, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 201, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "emailfield", &_0, 200, _1); zephir_check_call_status(); RETURN_MM(); @@ -62289,7 +62101,7 @@ static PHP_METHOD(Phalcon_Forms_Element_File, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 202, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "filefield", &_0, 201, _1); zephir_check_call_status(); RETURN_MM(); @@ -62334,7 +62146,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Hidden, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 203, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "hiddenfield", &_0, 202, _1); zephir_check_call_status(); RETURN_MM(); @@ -62379,7 +62191,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Numeric, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 204, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "numericfield", &_0, 203, _1); zephir_check_call_status(); RETURN_MM(); @@ -62424,7 +62236,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Password, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 205, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "passwordfield", &_0, 204, _1); zephir_check_call_status(); RETURN_MM(); @@ -62471,7 +62283,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Radio, render) { ZVAL_BOOL(_2, 1); ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes, _2); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 206, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "radiofield", &_0, 205, _1); zephir_check_call_status(); RETURN_MM(); @@ -62522,7 +62334,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, __construct) { zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC); - ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 207, name, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_forms_element_select_ce, this_ptr, "__construct", &_0, 206, name, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -62593,7 +62405,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_optionsValues"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 208, _1, _2); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 207, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -62638,7 +62450,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Submit, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 209, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "submitbutton", &_0, 208, _1); zephir_check_call_status(); RETURN_MM(); @@ -62683,7 +62495,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Text, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 210, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textfield", &_0, 209, _1); zephir_check_call_status(); RETURN_MM(); @@ -62728,7 +62540,7 @@ static PHP_METHOD(Phalcon_Forms_Element_TextArea, render) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "prepareattributes", NULL, 0, attributes); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 211, _1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_ce, "textarea", &_0, 210, _1); zephir_check_call_status(); RETURN_MM(); @@ -62794,7 +62606,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -62872,7 +62683,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setValue) { zephir_update_property_this(this_ptr, SL("_value"), value TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_readed"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_readed"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -63040,7 +62855,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(encryptValue, value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, encryptValue, expire, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, encryptValue, expire, path, domain, secure, httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -63090,7 +62905,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, restore) { } } } - zephir_update_property_this(this_ptr, SL("_restored"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_restored"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } RETURN_THIS(); @@ -63136,7 +62955,7 @@ static PHP_METHOD(Phalcon_Http_Cookie, delete) { zephir_time(_2); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, (zephir_get_numberval(_2) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 218, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 217, name, ZEPHIR_GLOBAL(global_null), &_4, path, domain, secure, httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -63152,7 +62971,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -63216,7 +63039,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, setPath) { 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)) { zephir_get_strval(path, path_param); } else { @@ -63271,7 +63093,6 @@ static PHP_METHOD(Phalcon_Http_Cookie, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -63323,7 +63144,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setSecure) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_secure"), secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (secure) { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_secure"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -63361,7 +63186,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setHttpOnly) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "restore", NULL, 0); zephir_check_call_status(); } - zephir_update_property_this(this_ptr, SL("_httpOnly"), httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (httpOnly) { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_httpOnly"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -63506,7 +63335,7 @@ static PHP_METHOD(Phalcon_Http_Request, get) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_REQUEST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63521,7 +63350,6 @@ static PHP_METHOD(Phalcon_Http_Request, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63547,7 +63375,19 @@ static PHP_METHOD(Phalcon_Http_Request, get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _REQUEST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _REQUEST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63557,7 +63397,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_POST, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63572,7 +63412,6 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63598,7 +63437,19 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _POST, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _POST, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63608,7 +63459,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL, *_1, *_2; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63622,7 +63473,6 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63655,13 +63505,25 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { array_init(put); ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); - Z_SET_ISREF_P(put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 220, _0, put); - Z_UNSET_ISREF_P(put); + ZEPHIR_MAKE_REF(put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 219, _0, put); + ZEPHIR_UNREF(put); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_putCache"), put TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, put, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (notAllowEmpty) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_INIT_VAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, put, name, filters, defaultValue, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -63671,7 +63533,7 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *_GET, *_0, *_1; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63686,7 +63548,6 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63712,7 +63573,19 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 219, _GET, name, filters, defaultValue, (notAllowEmpty ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (notAllowEmpty) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_INIT_VAR(_1); + if (noRecursive) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 218, _GET, name, filters, defaultValue, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -63723,7 +63596,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive, _3; zval *name = NULL; - zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2; + zval *source_param = NULL, *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *value = NULL, *filter = NULL, *dependencyInjector = NULL, *_0, *_1 = NULL, *_2 = NULL; zval *source = NULL; ZEPHIR_MM_GROW(); @@ -63738,7 +63611,6 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63790,7 +63662,13 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_CPY_WRT(filter, _1); zephir_update_property_this(this_ptr, SL("_filter"), filter TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, (noRecursive ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_2); + if (noRecursive) { + ZVAL_BOOL(_2, 1); + } else { + ZVAL_BOOL(_2, 0); + } + ZEPHIR_CALL_METHOD(&_1, filter, "sanitize", NULL, 0, value, filters, _2); zephir_check_call_status(); ZEPHIR_CPY_WRT(value, _1); } @@ -63819,7 +63697,6 @@ static PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63848,7 +63725,6 @@ static PHP_METHOD(Phalcon_Http_Request, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63874,7 +63750,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63900,7 +63775,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasPut) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63928,7 +63802,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63954,7 +63827,6 @@ static PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -63981,7 +63853,6 @@ static PHP_METHOD(Phalcon_Http_Request, getHeader) { 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)) { zephir_get_strval(header, header_param); } else { @@ -64112,7 +63983,7 @@ static PHP_METHOD(Phalcon_Http_Request, getRawBody) { static PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { int ZEPHIR_LAST_CALL_STATUS; - zval *associative_param = NULL, *rawBody = NULL; + zval *associative_param = NULL, *rawBody = NULL, _0; zend_bool associative; ZEPHIR_MM_GROW(); @@ -64130,7 +64001,9 @@ static PHP_METHOD(Phalcon_Http_Request, getJsonRawBody) { if (Z_TYPE_P(rawBody) != IS_STRING) { RETURN_MM_BOOL(0); } - zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval((associative ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))) TSRMLS_CC); + ZEPHIR_SINIT_VAR(_0); + ZVAL_BOOL(&_0, (associative ? 1 : 0)); + zephir_json_decode(return_value, &(return_value), rawBody, zephir_get_intval(&_0) TSRMLS_CC); RETURN_MM(); } @@ -64149,7 +64022,7 @@ static PHP_METHOD(Phalcon_Http_Request, getServerAddress) { } ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "localhost", 0); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 221, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 220, &_0); zephir_check_call_status(); RETURN_MM(); @@ -64340,7 +64213,7 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0 = strict; @@ -64412,7 +64285,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "POST")); @@ -64425,7 +64298,7 @@ static PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "GET")); @@ -64438,7 +64311,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PUT")); @@ -64451,7 +64324,7 @@ static PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "PATCH")); @@ -64464,7 +64337,7 @@ static PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "HEAD")); @@ -64477,7 +64350,7 @@ static PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "DELETE")); @@ -64490,7 +64363,7 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 222); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 221); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(_0, "OPTIONS")); @@ -64498,11 +64371,11 @@ static PHP_METHOD(Phalcon_Http_Request, isOptions) { static PHP_METHOD(Phalcon_Http_Request, hasFiles) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; - zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL; + zval *onlySuccessful_param = NULL, *files = NULL, *file = NULL, *error = NULL, *_FILES, **_2, *_4 = NULL, *_5 = NULL; zend_bool onlySuccessful, _3; ZEPHIR_MM_GROW(); @@ -64538,7 +64411,13 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } } if (Z_TYPE_P(error) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, error, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, error, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64550,12 +64429,12 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { - zephir_fcall_cache_entry *_5 = NULL; + zephir_fcall_cache_entry *_6 = NULL; HashTable *_1; HashPosition _0; int numberFiles = 0, ZEPHIR_LAST_CALL_STATUS; zend_bool onlySuccessful, _3; - zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL; + zval *data, *onlySuccessful_param = NULL, *value = NULL, **_2, *_4 = NULL, *_5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &data, &onlySuccessful_param); @@ -64582,7 +64461,13 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } } if (Z_TYPE_P(value) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_5, 223, value, (onlySuccessful ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_5); + if (onlySuccessful) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&_4, this_ptr, "hasfilehelper", &_6, 222, value, _5); zephir_check_call_status(); numberFiles += zephir_get_numberval(_4); } @@ -64597,7 +64482,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { int ZEPHIR_LAST_CALL_STATUS; HashTable *_1, *_11; HashPosition _0, _10; - zval *files; + zval *files = NULL; zval *onlySuccessful_param = NULL, *superFiles = NULL, *prefix = NULL, *input = NULL, *smoothInput = NULL, *file = NULL, *dataFile = NULL, *_FILES, **_2, *_3 = NULL, *_4, *_5, *_6, *_7, *_8, **_12, *_14, *_15 = NULL, *_16 = NULL, *_17; zend_bool onlySuccessful, _13; @@ -64614,6 +64499,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { array_init(files); + ZEPHIR_INIT_NVAR(files); + array_init(files); ZEPHIR_CPY_WRT(superFiles, _FILES); if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1, &_0, 0, 0, "phalcon/http/request.zep", 720); @@ -64631,7 +64518,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_6, input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_7, input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); zephir_array_fetch_string(&_8, input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 699 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 224, _4, _5, _6, _7, _8, prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_9, 223, _4, _5, _6, _7, _8, prefix); zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11, &_10, 0, 0, "phalcon/http/request.zep", 714); for ( @@ -64665,7 +64552,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17, file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 711 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, dataFile, _17); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, dataFile, _17); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 711); } @@ -64679,7 +64566,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (_13) { ZEPHIR_INIT_NVAR(_16); object_init_ex(_16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 225, input, prefix); + ZEPHIR_CALL_METHOD(NULL, _16, "__construct", &_18, 224, input, prefix); zephir_check_call_status(); zephir_array_append(&files, _16, PH_SEPARATE, "phalcon/http/request.zep", 716); } @@ -64704,15 +64591,10 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_fetch_params(1, 6, 0, &names_param, &types_param, &tmp_names_param, &sizes_param, &errors_param, &prefix_param); names = names_param; - types = types_param; - tmp_names = tmp_names_param; - sizes = sizes_param; - errors = errors_param; - zephir_get_strval(prefix, prefix_param); @@ -64752,7 +64634,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_array_fetch(&_7, tmp_names, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_8, sizes, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); zephir_array_fetch(&_9, errors, idx, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 750 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 224, _5, _6, _7, _8, _9, p); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_10, 223, _5, _6, _7, _8, _9, p); zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12, &_11, 0, 0, "phalcon/http/request.zep", 755); for ( @@ -64806,7 +64688,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_8, " ", 0); zephir_fast_str_replace(&_4, &_7, &_8, _6 TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_10); ZEPHIR_SINIT_NVAR(_11); @@ -64825,7 +64707,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZVAL_STRING(&_7, " ", 0); zephir_fast_str_replace(&_4, &_5, &_7, name TSRMLS_CC); zephir_fast_strtolower(_3, _4); - ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 226, _3); + ZEPHIR_CALL_FUNCTION(&name, "ucwords", &_9, 225, _3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6); ZEPHIR_SINIT_NVAR(_8); @@ -64870,7 +64752,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { 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)) { zephir_get_strval(serverIndex, serverIndex_param); } else { @@ -64881,7 +64762,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -64900,7 +64780,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 227, &_1, _0, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "preg_split", &_5, 226, &_1, _0, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 827); for ( @@ -64918,7 +64798,7 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZVAL_LONG(&_2, -1); ZEPHIR_SINIT_NVAR(_3); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 227, &_1, _9, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&_10, "preg_split", &_5, 226, &_1, _9, &_2, &_3); zephir_check_call_status(); zephir_is_iterable(_10, &_12, &_11, 0, 0, "phalcon/http/request.zep", 824); for ( @@ -64977,7 +64857,6 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -65049,7 +64928,7 @@ static PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(_0, "HTTP_ACCEPT", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65068,7 +64947,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "accept", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65086,7 +64965,7 @@ static PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(_0, "HTTP_ACCEPT_CHARSET", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65105,7 +64984,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "charset", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65123,7 +65002,7 @@ static PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(_0, "HTTP_ACCEPT_LANGUAGE", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 228, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualityheader", NULL, 227, _0, _1); zephir_check_temp_parameter(_0); zephir_check_temp_parameter(_1); zephir_check_call_status(); @@ -65142,7 +65021,7 @@ static PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_1); ZVAL_STRING(_1, "language", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 229, _0, _1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getbestquality", NULL, 228, _0, _1); zephir_check_temp_parameter(_1); zephir_check_call_status(); RETURN_MM(); @@ -65195,10 +65074,10 @@ static PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { ZVAL_STRING(_0, "#(\\w+)=(['\"]?)([^'\" ,]+)\\2#", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 2); - Z_SET_ISREF_P(matches); + ZEPHIR_MAKE_REF(matches); ZEPHIR_CALL_FUNCTION(&_2, "preg_match_all", NULL, 28, _0, digest, matches, _1); zephir_check_temp_parameter(_0); - Z_UNSET_ISREF_P(matches); + ZEPHIR_UNREF(matches); zephir_check_call_status(); if (!(zephir_is_true(_2))) { RETURN_CTOR(auth); @@ -65462,7 +65341,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { if (_4) { ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "HTTP/", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 236, key, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "strstr", &_7, 235, key, &_5); zephir_check_call_status(); _4 = zephir_is_true(_6); } @@ -65743,10 +65622,9 @@ static PHP_METHOD(Phalcon_Http_Response, setCache) { zephir_fetch_params(1, 1, 0, &minutes_param); if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - minutes = Z_LVAL_P(minutes_param); @@ -65889,7 +65767,7 @@ static PHP_METHOD(Phalcon_Http_Response, redirect) { if (_0) { ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "://", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 236, location, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strstr", NULL, 235, location, &_1); zephir_check_call_status(); _0 = zephir_is_true(_2); } @@ -66109,11 +65987,15 @@ static PHP_METHOD(Phalcon_Http_Response, send) { _1 = (zephir_fast_strlen_ev(file)) ? 1 : 0; } if (_1) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 237, file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 236, file); zephir_check_call_status(); } } - zephir_update_property_this(this_ptr, SL("_sent"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_sent"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THIS(); } @@ -66338,7 +66220,6 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_fetch_params(1, 1, 1, &file_param, &key); file = file_param; - if (!key) { key = ZEPHIR_GLOBAL(global_null); } @@ -66349,7 +66230,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, __construct) { zephir_update_property_this(this_ptr, SL("_name"), name TSRMLS_CC); ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "PATHINFO_EXTENSION", 0); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 230, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 229, &_0); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_SINIT_NVAR(_0); @@ -66415,15 +66296,15 @@ static PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 231, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 230, &_0); zephir_check_call_status(); if (Z_TYPE_P(finfo) != IS_RESOURCE) { RETURN_MM_STRING("", 1); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, finfo, _1); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, finfo, _1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, finfo); zephir_check_call_status(); RETURN_CCTOR(mime); @@ -66441,7 +66322,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, isUploadedFile) { zephir_check_call_status(); _0 = Z_TYPE_P(tmp) == IS_STRING; if (_0) { - ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 234, tmp); + ZEPHIR_CALL_FUNCTION(&_1, "is_uploaded_file", NULL, 233, tmp); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -66462,7 +66343,6 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { 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)) { zephir_get_strval(destination, destination_param); } else { @@ -66472,7 +66352,7 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_tmp"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 235, _0, destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 234, _0, destination); zephir_check_call_status(); RETURN_MM(); @@ -66573,7 +66453,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, useEncryption) { useEncryption = zephir_get_boolval(useEncryption_param); - zephir_update_property_this(this_ptr, SL("_useEncryption"), useEncryption ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (useEncryption) { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_useEncryption"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -66590,7 +66474,7 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zval *_3; zend_bool secure, httpOnly; int expire, ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5; + zval *name_param = NULL, *value = NULL, *expire_param = NULL, *path_param = NULL, *secure_param = NULL, *domain_param = NULL, *httpOnly_param = NULL, *cookie = NULL, *encryption, *dependencyInjector, *response = NULL, *_0, *_1, *_2 = NULL, *_4 = NULL, *_5, *_6; zval *name = NULL, *path = NULL, *domain = NULL; ZEPHIR_MM_GROW(); @@ -66600,7 +66484,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66634,7 +66517,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -66693,11 +66575,23 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setpath", NULL, 0, path); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, (secure ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_4); + if (secure) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "setsecure", NULL, 0, _4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, cookie, "setdomain", NULL, 0, domain); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, (httpOnly ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (httpOnly) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, cookie, "sethttponly", NULL, 0, _6); zephir_check_call_status(); } _1 = zephir_fetch_nproperty_this(this_ptr, SL("_registered"), PH_NOISY_CC); @@ -66734,7 +66628,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66788,7 +66681,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -66821,7 +66713,6 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -67062,10 +66953,10 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (!(ZEPHIR_IS_EMPTY(value))) { ZEPHIR_INIT_LNVAR(_5); ZEPHIR_CONCAT_VSV(_5, header, ": ", value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, _5, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, _5, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 238, header, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_6, 237, header, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } } @@ -67110,7 +67001,6 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { data = data_param; - ZEPHIR_INIT_VAR(headers); object_init_ex(headers, phalcon_http_response_headers_ce); if (zephir_has_constructor(headers TSRMLS_CC)) { @@ -67126,7 +67016,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 239, key, value); + ZEPHIR_CALL_METHOD(NULL, headers, "set", &_3, 238, key, value); zephir_check_call_status(); } } @@ -67639,7 +67529,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, sharpen) { static PHP_METHOD(Phalcon_Image_Adapter, reflection) { zend_bool fadeIn, _0; - zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4; + zval *height_param = NULL, *opacity_param = NULL, *fadeIn_param = NULL, *_1, *_2, *_3, *_4, *_5; int height, opacity, ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -67677,7 +67567,13 @@ static PHP_METHOD(Phalcon_Image_Adapter, reflection) { ZVAL_LONG(_3, height); ZEPHIR_INIT_VAR(_4); ZVAL_LONG(_4, opacity); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, (fadeIn ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (fadeIn) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_reflection", NULL, 0, _3, _4, _5); zephir_check_call_status(); RETURN_THIS(); @@ -67712,7 +67608,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getwidth", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); - sub_function(_2, _0, _1 TSRMLS_CC); + zephir_sub_function(_2, _0, _1); tmp = zephir_get_numberval(_2); if (offsetX < 0) { offsetX = 0; @@ -67723,7 +67619,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, watermark) { ZEPHIR_CALL_METHOD(&_1, watermark, "getheight", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); - sub_function(_3, _0, _1 TSRMLS_CC); + zephir_sub_function(_3, _0, _1); tmp = zephir_get_numberval(_3); if (offsetY < 0) { offsetY = 0; @@ -67993,7 +67889,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, save) { } - if (!(file && Z_STRLEN_P(file))) { + if (!(!(!file) && Z_STRLEN_P(file))) { ZEPHIR_OBS_VAR(_0); zephir_read_property_this(&_0, this_ptr, SL("_realpath"), PH_NOISY_CC); zephir_get_strval(_1, _0); @@ -68034,7 +67930,7 @@ static PHP_METHOD(Phalcon_Image_Adapter, render) { } - if (!(ext && Z_STRLEN_P(ext))) { + if (!(!(!ext) && Z_STRLEN_P(ext))) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 4); @@ -68174,13 +68070,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_NULL(version); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "GD_VERSION", 0); - ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 230, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "defined", NULL, 229, &_1); zephir_check_call_status(); if (zephir_is_true(_2)) { ZEPHIR_INIT_NVAR(version); ZEPHIR_GET_CONSTANT(version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 240); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 239); zephir_check_call_status(); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); @@ -68198,7 +68094,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_5, "2.0.1", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ">=", 0); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 241, version, &_5, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 240, version, &_5, &_6); zephir_check_call_status(); if (!(zephir_is_true(_7))) { ZEPHIR_INIT_NVAR(_3); @@ -68211,7 +68107,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZEPHIR_MM_RESTORE(); return; } - zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _9 = zephir_fetch_static_property_ce(phalcon_image_adapter_gd_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_9); @@ -68232,7 +68128,6 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -68264,7 +68159,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_realpath"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 242, _4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 241, _4); zephir_check_call_status(); if (zephir_is_true(imageinfo)) { zephir_array_fetch_long(&_5, imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 77 TSRMLS_CC); @@ -68280,35 +68175,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(_9, 1)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 243, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromgif", NULL, 242, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 2)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 244, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromjpeg", NULL, 243, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 3)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 245, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefrompng", NULL, 244, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 15)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 246, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromwbmp", NULL, 245, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; } if (ZEPHIR_IS_LONG(_9, 16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 247, _10); + ZEPHIR_CALL_FUNCTION(&_11, "imagecreatefromxbm", NULL, 246, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _11 TSRMLS_CC); break; @@ -68333,7 +68228,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _10, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _10, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); } else { _16 = !width; @@ -68356,14 +68251,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZVAL_LONG(&_17, width); ZEPHIR_SINIT_VAR(_18); ZVAL_LONG(&_18, height); - ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 249, &_17, &_18); + ZEPHIR_CALL_FUNCTION(&_3, "imagecreatetruecolor", NULL, 248, &_17, &_18); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), _3 TSRMLS_CC); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _4, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _4, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 248, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_15, 247, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_file"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_realpath"), _10 TSRMLS_CC); @@ -68402,7 +68297,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_OBS_VAR(pre_width); @@ -68450,11 +68345,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14, 0); ZEPHIR_SINIT_VAR(_15); ZVAL_LONG(&_15, 0); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 251, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresized", NULL, 250, image, _9, &_12, &_13, &_14, &_15, pre_width, pre_height, _10, _11); zephir_check_call_status(); if (zephir_is_true(_16)) { _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _17); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _17); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); } @@ -68478,17 +68373,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_15, width); ZEPHIR_SINIT_VAR(_21); ZVAL_LONG(&_21, height); - ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 253, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); + ZEPHIR_CALL_FUNCTION(&_16, "imagecopyresampled", NULL, 252, image, _9, &_6, &_12, &_13, &_14, &_15, &_21, pre_width, pre_height); zephir_check_call_status(); if (zephir_is_true(_16)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _22 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_24, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _24 TSRMLS_CC); } @@ -68498,16 +68393,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_6, width); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 256, _3, &_6, &_12); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 255, _3, &_6, &_12); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_18, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_23, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 255, image); + ZEPHIR_CALL_FUNCTION(&_22, "imagesy", &_25, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _22 TSRMLS_CC); } @@ -68534,7 +68429,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { ZEPHIR_INIT_VAR(_3); @@ -68560,17 +68455,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 253, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_13, "imagecopyresampled", NULL, 252, image, _5, &_1, &_6, &_7, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_13)) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _16 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_18, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _18 TSRMLS_CC); } @@ -68590,16 +68485,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(_3, height); zephir_array_update_string(&rect, SL("height"), &_3, PH_COPY | PH_SEPARATE); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 257, _5, rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 256, _5, rect); zephir_check_call_status(); _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_15, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 254, image); + ZEPHIR_CALL_FUNCTION(&_13, "imagesx", &_17, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _13 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 255, image); + ZEPHIR_CALL_FUNCTION(&_16, "imagesy", &_19, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _16 TSRMLS_CC); } @@ -68627,20 +68522,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_3, 0); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 258, _0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 257, _0, &_1, &_2, &_3, &_4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (360 - degrees)); ZEPHIR_SINIT_NVAR(_2); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 259, _5, &_1, transparent, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 258, _5, &_1, transparent, &_2); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 253, image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 254, image); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -68653,11 +68548,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 260, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 259, _6, image, &_1, &_2, &_3, &_4, width, height, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_width"), width TSRMLS_CC); @@ -68683,7 +68578,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(_0, "PHP_VERSION"); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "5.5.0", 0); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 241, _0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 240, _0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(_2, 0)) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -68711,7 +68606,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, &_12, _8); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, &_12, _8); zephir_check_call_status(); } } else { @@ -68735,18 +68630,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11, ((zephir_get_numberval(_7) - x) - 1)); ZEPHIR_SINIT_NVAR(_12); ZVAL_LONG(&_12, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, image, _6, &_1, &_9, &_10, &_11, _8, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, image, _6, &_1, &_9, &_10, &_11, _8, &_12); zephir_check_call_status(); } } _5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _5); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), image TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 254, image); + ZEPHIR_CALL_FUNCTION(&_14, "imagesx", NULL, 253, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _14 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 255, image); + ZEPHIR_CALL_FUNCTION(&_15, "imagesy", NULL, 254, image); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _15 TSRMLS_CC); } else { @@ -68754,13 +68649,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _3, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _3, &_1); zephir_check_call_status(); } else { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 262, _4, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_16, 261, _4, &_1); zephir_check_call_status(); } } @@ -68783,7 +68678,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 2); @@ -68832,15 +68727,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZVAL_LONG(&_6, (amount - 8)); ZEPHIR_SINIT_VAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 263, _5, matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 262, _5, matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(_8)) { _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 254, _9); + ZEPHIR_CALL_FUNCTION(&_10, "imagesx", NULL, 253, _9); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _10 TSRMLS_CC); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 255, _11); + ZEPHIR_CALL_FUNCTION(&_12, "imagesy", NULL, 254, _11); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _12 TSRMLS_CC); } @@ -68866,7 +68761,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); @@ -68892,7 +68787,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_11, 0); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, _7, &_1, &_10, &_11, &_12, _8, _9); zephir_check_call_status(); offset = 0; while (1) { @@ -68933,7 +68828,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, src_y); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, line, _18, &_11, &_12, &_20, &_21, _19, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, line, _18, &_11, &_12, &_20, &_21, _19, &_22); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_11); ZVAL_LONG(&_11, 4); @@ -68945,7 +68840,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 264, line, &_11, &_12, &_20, &_21, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_23, 263, line, &_11, &_12, &_20, &_21, &_22); zephir_check_call_status(); _24 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_11); @@ -68958,18 +68853,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_21, 0); ZEPHIR_SINIT_NVAR(_22); ZVAL_LONG(&_22, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 261, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_13, 260, reflection, line, &_11, &_12, &_20, &_21, _24, &_22); zephir_check_call_status(); offset++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _14); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), reflection TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 254, reflection); + ZEPHIR_CALL_FUNCTION(&_25, "imagesx", NULL, 253, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_width"), _25 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 255, reflection); + ZEPHIR_CALL_FUNCTION(&_26, "imagesy", NULL, 254, reflection); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_height"), _26 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -68991,21 +68886,21 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, overlay, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, overlay, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, overlay); zephir_check_call_status(); width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, overlay); zephir_check_call_status(); height = zephir_get_intval(_2); if (opacity < 100) { ZEPHIR_INIT_VAR(_3); ZEPHIR_SINIT_VAR(_4); ZVAL_DOUBLE(&_4, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 194, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "abs", NULL, 193, &_4); zephir_check_call_status(); zephir_round(_3, _5, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_3); @@ -69017,11 +68912,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, 127); ZEPHIR_SINIT_VAR(_8); ZVAL_LONG(&_8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, overlay, &_4, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, overlay, &_4, &_6, &_7, &_8); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 266, overlay, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 265, overlay, &_4); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, 0); @@ -69031,11 +68926,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_7, width); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 267, overlay, &_4, &_6, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 266, overlay, &_4, &_6, &_7, &_8, color); zephir_check_call_status(); } _9 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, _9, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, _9, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); @@ -69050,10 +68945,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_11, width); ZEPHIR_SINIT_VAR(_12); ZVAL_LONG(&_12, height); - ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 261, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); + ZEPHIR_CALL_FUNCTION(&_5, "imagecopy", NULL, 260, _10, overlay, &_4, &_6, &_7, &_8, &_11, &_12); zephir_check_call_status(); if (zephir_is_true(_5)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69085,16 +68980,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZEPHIR_INIT_VAR(_0); ZEPHIR_SINIT_VAR(_1); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 193, &_1); zephir_check_call_status(); zephir_round(_0, _2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(_0); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); ZEPHIR_SINIT_VAR(_4); ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 268, &_1, &_4, fontfile, text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 267, &_1, &_4, fontfile, text); zephir_check_call_status(); if (zephir_array_isset_long(space, 0)) { ZEPHIR_OBS_VAR(_5); @@ -69128,12 +69023,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { } ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "abs", &_3, 193, &_1); zephir_check_call_status(); width = (zephir_get_numberval(_12) + 10); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 194, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "abs", &_3, 193, &_1); zephir_check_call_status(); height = (zephir_get_numberval(_13) + 10); if (offsetX < 0) { @@ -69153,7 +69048,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_VAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); angle = 0; _18 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); @@ -69165,17 +69060,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, offsetX); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 269, _18, &_1, &_4, &_15, &_16, color, fontfile, text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 268, _18, &_1, &_4, &_15, &_16, color, fontfile, text); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 270, &_1); + ZEPHIR_CALL_FUNCTION(&_12, "imagefontwidth", NULL, 269, &_1); zephir_check_call_status(); width = (zephir_get_intval(_12) * zephir_fast_strlen_ev(text)); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, size); - ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 271, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "imagefontheight", NULL, 270, &_1); zephir_check_call_status(); height = zephir_get_intval(_13); if (offsetX < 0) { @@ -69195,7 +69090,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_15, b); ZEPHIR_SINIT_NVAR(_16); ZVAL_LONG(&_16, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 258, _14, &_1, &_4, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_17, 257, _14, &_1, &_4, &_15, &_16); zephir_check_call_status(); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); @@ -69204,7 +69099,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_4, offsetX); ZEPHIR_SINIT_NVAR(_15); ZVAL_LONG(&_15, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 272, _19, &_1, &_4, &_15, text, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 271, _19, &_1, &_4, &_15, text, color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69225,22 +69120,22 @@ 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, 265, _0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 264, _0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 254, maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 253, maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 255, maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 254, maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, maskImage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, maskImage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _4 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, _4, _5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 248, newimage, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 247, newimage, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); @@ -69250,13 +69145,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_8, 0); ZEPHIR_SINIT_VAR(_9); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_6); ZVAL_LONG(&_6, 0); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 273, newimage, &_6, &_7, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 272, newimage, &_6, &_7, color); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _12 = !ZEPHIR_IS_LONG(_11, mask_width); @@ -69267,7 +69162,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_12) { _14 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _15 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 249, _14, _15); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 248, _14, _15); zephir_check_call_status(); _16 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); @@ -69283,9 +69178,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_18, mask_width); ZEPHIR_SINIT_VAR(_19); ZVAL_LONG(&_19, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 253, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 252, tempImage, maskImage, &_6, &_7, &_8, &_9, _16, _17, &_18, &_19); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(maskImage, tempImage); } @@ -69305,9 +69200,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_6, x); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, maskImage, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, maskImage, &_6, &_7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, maskImage, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, maskImage, index); zephir_check_call_status(); if (zephir_array_isset_string(color, SS("red"))) { zephir_array_fetch_string(&_23, color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 431 TSRMLS_CC); @@ -69320,10 +69215,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 274, _16, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_21, 273, _16, &_7, &_8); zephir_check_call_status(); _17 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 275, _17, index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_22, 274, _17, index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(r); zephir_array_fetch_string(&r, color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); @@ -69333,22 +69228,22 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_array_fetch_string(&b, color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 436 TSRMLS_CC); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 258, newimage, r, g, b, &_7); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 257, newimage, r, g, b, &_7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_7); ZVAL_LONG(&_7, x); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 276, newimage, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_24, 275, newimage, &_7, &_8, color); zephir_check_call_status(); y++; } x++; } _14 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, _14); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, _14); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 252, maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_20, 251, maskImage); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), newimage TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -69382,9 +69277,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, b); ZEPHIR_SINIT_VAR(_5); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 258, background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 257, background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, background, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, background, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_width"), PH_NOISY_CC); @@ -69397,11 +69292,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_4, 0); ZEPHIR_SINIT_NVAR(_5); ZVAL_LONG(&_5, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 261, background, _6, &_2, &_3, &_4, &_5, _7, _8); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 260, background, _6, &_2, &_3, &_4, &_5, _7, _8); zephir_check_call_status(); if (zephir_is_true(_9)) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, _10); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, _10); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_image"), background TSRMLS_CC); } @@ -69429,7 +69324,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 264, _0, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 263, _0, &_1); zephir_check_call_status(); i++; } @@ -69468,7 +69363,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_3, x1); ZEPHIR_SINIT_NVAR(_4); ZVAL_LONG(&_4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 274, _2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 273, _2, &_3, &_4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -69481,7 +69376,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_7, x2); ZEPHIR_SINIT_NVAR(_8); ZVAL_LONG(&_8, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 267, _6, &_3, &_4, &_7, &_8, color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 266, _6, &_3, &_4, &_7, &_8, color); zephir_check_call_status(); y += amount; } @@ -69512,7 +69407,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { zephir_check_call_status(); if (!(zephir_is_true(ext))) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 277, _1, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 276, _1, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); } ZEPHIR_INIT_VAR(_2); @@ -69520,30 +69415,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(ext, _2); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 1); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_5, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _5 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_5, 0); if (!(_8)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(_9, 0); } @@ -69552,64 +69447,64 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(_1, 2); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _7, file, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _7, file, &_0); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "png", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 3); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 15); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 278, ext, &_0); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", &_4, 277, ext, &_0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_5, 0)) { ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(_1, 16); zephir_update_property_this(this_ptr, SL("_type"), _1 TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 279, _1); + ZEPHIR_CALL_FUNCTION(&_10, "image_type_to_mime_type", &_6, 278, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_mime"), _10 TSRMLS_CC); _7 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _7, file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _7, file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -69647,25 +69542,25 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "gif", 0); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_2, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 280, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 279, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpg", 0); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_6, 0); if (!(_7)) { ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "jpeg", 0); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(_8, 0); } @@ -69673,45 +69568,45 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_1); ZVAL_LONG(&_1, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 281, _4, ZEPHIR_GLOBAL(global_null), &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 280, _4, ZEPHIR_GLOBAL(global_null), &_1); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "png", 0); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_9, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 282, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 281, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "wbmp", 0); - ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_10, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_10, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 283, _4); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 282, _4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_SINIT_NVAR(_1); ZVAL_STRING(&_1, "xbm", 0); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 278, ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 277, ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(_11, 0)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 284, _4, ZEPHIR_GLOBAL(global_null)); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 283, _4, ZEPHIR_GLOBAL(global_null)); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 284); zephir_check_call_status(); RETURN_MM(); } @@ -69743,11 +69638,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 249, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 248, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 250, image, ZEPHIR_GLOBAL(global_false)); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 249, image, ZEPHIR_GLOBAL(global_false)); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 248, image, ZEPHIR_GLOBAL(global_true)); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 247, image, ZEPHIR_GLOBAL(global_true)); zephir_check_call_status(); RETURN_CCTOR(image); @@ -69763,7 +69658,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(image); zephir_read_property_this(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 252, image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 251, image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -69816,16 +69711,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 230, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 229, &_2); zephir_check_call_status(); if (zephir_is_true(_3)) { ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM", 0); - ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 192, &_2); + ZEPHIR_CALL_FUNCTION(&_4, "constant", NULL, 191, &_2); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_4 TSRMLS_CC); } - zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); _5 = zephir_fetch_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_checked") TSRMLS_CC); RETURN_CTOR(_5); @@ -69845,7 +69740,6 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { 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)) { zephir_get_strval(file, file_param); } else { @@ -69904,7 +69798,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { _12 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_13); ZVAL_STRING(&_13, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 192, &_13); + ZEPHIR_CALL_FUNCTION(&_14, "constant", NULL, 191, &_13); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _12, "setimagealphachannel", NULL, 0, _14); zephir_check_call_status(); @@ -70370,7 +70264,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_DSTOUT", 0); - ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_12, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70384,11 +70278,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_17, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, opacity); @@ -70427,7 +70321,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_9, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagealphachannel", &_25, 0, _9); zephir_check_call_status(); @@ -70444,7 +70338,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { _30 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_SRC", 0); - ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_18, "constant", &_15, 191, &_14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_3); ZVAL_LONG(_3, 0); @@ -70474,7 +70368,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_SINIT_NVAR(_14); ZVAL_STRING(&_14, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 192, &_14); + ZEPHIR_CALL_FUNCTION(&_2, "constant", &_15, 191, &_14); zephir_check_call_status(); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_height"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(_3); @@ -70554,7 +70448,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_4); ZVAL_STRING(&_4, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 192, &_4); + ZEPHIR_CALL_FUNCTION(&_5, "constant", &_6, 191, &_4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, offsetX); @@ -70616,7 +70510,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); object_init_ex(_4, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -70624,7 +70518,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, draw, "setfillcolor", NULL, 0, _4); zephir_check_call_status(); - if (fontfile && Z_STRLEN_P(fontfile)) { + if (!(!fontfile) && Z_STRLEN_P(fontfile)) { ZEPHIR_CALL_METHOD(NULL, draw, "setfont", NULL, 0, fontfile); zephir_check_call_status(); } @@ -70655,24 +70549,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_CENTER", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70688,13 +70582,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70705,13 +70599,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70730,13 +70624,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTH", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70747,13 +70641,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_EAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_WEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70769,13 +70663,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHEAST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } else { @@ -70786,13 +70680,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_SOUTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::GRAVITY_NORTHWEST", 0); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 192, &_0); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_7, 191, &_0); zephir_check_call_status(); } } @@ -70860,7 +70754,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_5); ZVAL_STRING(&_5, "Imagick::COMPOSITE_DSTIN", 0); - ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 192, &_5); + ZEPHIR_CALL_FUNCTION(&_6, "constant", &_7, 191, &_5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 0); @@ -70910,7 +70804,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_2, g); ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 189, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 188, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(pixel1); object_init_ex(pixel1, zephir_get_internal_ce(SS("imagickpixel") TSRMLS_CC)); @@ -70943,7 +70837,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(_9))) { ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::ALPHACHANNEL_SET", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, background, "setimagealphachannel", &_13, 0, _11); zephir_check_call_status(); @@ -70952,11 +70846,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::EVALUATE_MULTIPLY", 0); - ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_11, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::CHANNEL_ALPHA", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, opacity); @@ -70970,7 +70864,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { _20 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPOSITE_DISSOLVE", 0); - ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_21, "constant", &_12, 191, &_0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 0); @@ -71124,7 +71018,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "w", 0); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); _11 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_CALL_METHOD(NULL, _11, "writeimagesfile", NULL, 0, fp); @@ -71148,7 +71042,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { _10 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); ZEPHIR_SINIT_NVAR(_0); ZVAL_STRING(&_0, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 192, &_0); + ZEPHIR_CALL_FUNCTION(&_15, "constant", NULL, 191, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _10, "setimagecompression", NULL, 0, _15); zephir_check_call_status(); @@ -71220,7 +71114,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { if (_7) { ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "Imagick::COMPRESSION_JPEG", 0); - ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 192, &_3); + ZEPHIR_CALL_FUNCTION(&_9, "constant", NULL, 191, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, image, "setimagecompression", NULL, 0, _9); zephir_check_call_status(); @@ -71379,7 +71273,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, setFormatter) { static PHP_METHOD(Phalcon_Logger_Adapter, begin) { - zephir_update_property_this(this_ptr, SL("_transaction"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -71399,7 +71297,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, commit) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 107); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_OBS_VAR(queue); zephir_read_property_this(&queue, this_ptr, SL("_queue"), PH_NOISY_CC); if (Z_TYPE_P(queue) == IS_ARRAY) { @@ -71437,7 +71339,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, rollback) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "There is no active transaction", "phalcon/logger/adapter.zep", 139); return; } - zephir_update_property_this(this_ptr, SL("_transaction"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_VAR(_0); array_init(_0); zephir_update_property_this(this_ptr, SL("_queue"), _0 TSRMLS_CC); @@ -71466,7 +71372,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71474,11 +71379,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71504,7 +71408,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71512,11 +71415,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71542,7 +71444,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71550,11 +71451,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71580,7 +71480,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71588,11 +71487,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71618,7 +71516,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71626,11 +71523,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71656,7 +71552,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71664,11 +71559,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71694,7 +71588,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71702,11 +71595,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71732,7 +71624,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -71740,11 +71631,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -71770,11 +71660,10 @@ static PHP_METHOD(Phalcon_Logger_Adapter, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72221,11 +72110,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, log) { message = ZEPHIR_GLOBAL(global_null); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72260,7 +72148,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72268,11 +72155,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72298,7 +72184,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72306,11 +72191,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72336,7 +72220,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72344,11 +72227,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72374,7 +72256,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72382,11 +72263,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72412,7 +72292,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72420,11 +72299,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72450,7 +72328,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72458,11 +72335,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72488,7 +72364,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72496,11 +72371,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72526,7 +72400,6 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { 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)) { zephir_get_strval(message, message_param); } else { @@ -72534,11 +72407,10 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZVAL_EMPTY_STRING(message); } if (!context_param) { - ZEPHIR_INIT_VAR(context); - array_init(context); + ZEPHIR_INIT_VAR(context); + array_init(context); } else { context = context_param; - } @@ -72599,7 +72471,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -72626,7 +72497,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (Z_TYPE_P(handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_0); @@ -72658,7 +72529,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -72738,7 +72609,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", 152); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 286, path, mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 285, path, mode); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_fileHandler"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -72823,17 +72694,17 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!ZEPHIR_IS_TRUE_IDENTICAL(_1)) { ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1", 0); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 238, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, &_2); zephir_check_call_status(); - zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &(ZEPHIR_GLOBAL(global_true)) TSRMLS_CC); + zephir_update_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_initialized"), &ZEPHIR_GLOBAL(global_true) TSRMLS_CC); } ZEPHIR_CALL_METHOD(&_4, this_ptr, "getformatter", NULL, 0); zephir_check_call_status(); @@ -72861,7 +72732,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", &_3, 238, content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_3, 237, content); zephir_check_call_status(); _10 = zephir_fetch_static_property_ce(phalcon_logger_adapter_firephp_ce, SL("_index") TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_11); @@ -72917,7 +72788,6 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -72939,7 +72809,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_STRING(mode, "ab", 1); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 286, name, mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 285, name, mode); zephir_check_call_status(); if (!(zephir_is_true(stream))) { ZEPHIR_INIT_VAR(_0); @@ -72969,7 +72839,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 290); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 289); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_formatter"), _1 TSRMLS_CC); } @@ -73071,9 +72941,13 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(facility); ZVAL_LONG(facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 291, name, option, facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 290, name, option, facility); zephir_check_call_status(); - zephir_update_property_this(this_ptr, SL("_opened"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_opened"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -73131,7 +73005,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", 102 TSRMLS_CC); zephir_array_fetch_long(&_4, appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 292, _3, _4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 291, _3, _4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -73146,7 +73020,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_opened"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 293); + ZEPHIR_CALL_FUNCTION(NULL, "closelog", NULL, 292); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -73223,7 +73097,11 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, setShowBacktrace) { } - zephir_update_property_this(this_ptr, SL("_showBacktrace"), isShow ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isShow) { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_showBacktrace"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73249,7 +73127,11 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, enableLabels) { } - zephir_update_property_this(this_ptr, SL("_enableLabels"), isEnable ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isEnable) { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableLabels"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73268,7 +73150,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { HashPosition _6; zend_bool param, _11, _14; int type, timestamp, ZEPHIR_LAST_CALL_STATUS; - zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; + zval *message_param = NULL, *type_param = NULL, *timestamp_param = NULL, *context = NULL, *meta, *body = NULL, *backtrace = NULL, *encoded, *len, *lastTrace = NULL, *_0 = NULL, *_1 = NULL, *_2, *backtraceItem = NULL, *key = NULL, _3 = zval_used_for_init, _4, *_5, **_8, *_9, *_10, *_12, *_13, *_15, *_16, *_17; zval *message = NULL; ZEPHIR_MM_GROW(); @@ -73303,16 +73185,18 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { ZVAL_STRING(&_3, "5.3.6", 0); ZEPHIR_SINIT_VAR(_4); ZVAL_STRING(&_4, "<", 0); - ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 241, _1, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_0, "version_compare", NULL, 240, _1, &_3, &_4); zephir_check_call_status(); if (!(zephir_is_true(_0))) { param = (2) ? 1 : 0; } - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, (param ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_SINIT_NVAR(_3); + ZVAL_BOOL(&_3, (param ? 1 : 0)); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 152, &_3); zephir_check_call_status(); - Z_SET_ISREF_P(backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 172, backtrace); - Z_UNSET_ISREF_P(backtrace); + ZEPHIR_MAKE_REF(backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 171, backtrace); + ZEPHIR_UNREF(backtrace); zephir_check_call_status(); if (zephir_array_isset_string(lastTrace, SS("file"))) { zephir_array_fetch_string(&_5, lastTrace, SL("file"), PH_NOISY | PH_READONLY, "phalcon/logger/formatter/firephp.zep", 133 TSRMLS_CC); @@ -73482,13 +73366,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat) { - zval *dateFormat; + zval *dateFormat_param = NULL; + zval *dateFormat = NULL; - zephir_fetch_params(0, 1, 0, &dateFormat); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &dateFormat_param); + zephir_get_strval(dateFormat, dateFormat_param); zephir_update_property_this(this_ptr, SL("_dateFormat"), dateFormat TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73501,13 +73389,17 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat) { static PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat) { - zval *format; + zval *format_param = NULL; + zval *format = NULL; - zephir_fetch_params(0, 1, 0, &format); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &format_param); + zephir_get_strval(format, format_param); zephir_update_property_this(this_ptr, SL("_format"), format TSRMLS_CC); + ZEPHIR_MM_RESTORE(); } @@ -73558,7 +73450,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_dateFormat"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_LONG(&_2, timestamp); - ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 294, _1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "date", NULL, 293, _1, &_2); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_2); ZVAL_STRING(&_2, "%date%", 0); @@ -73702,7 +73594,11 @@ static PHP_METHOD(Phalcon_Mvc_Application, useImplicitView) { implicitView = zephir_get_boolval(implicitView_param); - zephir_update_property_this(this_ptr, SL("_implicitView"), implicitView ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (implicitView) { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_implicitView"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -73761,7 +73657,6 @@ static PHP_METHOD(Phalcon_Mvc_Application, getModule) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -73799,7 +73694,6 @@ static PHP_METHOD(Phalcon_Mvc_Application, setDefaultModule) { 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)) { zephir_get_strval(defaultModule, defaultModule_param); } else { @@ -74308,7 +74202,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, getReservedAttributes) { static PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { int ZEPHIR_LAST_CALL_STATUS; - zval *useImplicitObjectIds_param = NULL, *_0; + zval *useImplicitObjectIds_param = NULL, *_0, *_1; zend_bool useImplicitObjectIds; ZEPHIR_MM_GROW(); @@ -74318,7 +74212,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, (useImplicitObjectIds ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (useImplicitObjectIds) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "useimplicitobjectids", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -74336,7 +74236,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -74383,7 +74282,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -74444,7 +74342,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -74474,7 +74371,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -74503,7 +74399,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { document = document_param; - ZEPHIR_INIT_VAR(clonedCollection); if (zephir_clone(clonedCollection, collection TSRMLS_CC) == FAILURE) { RETURN_MM(); @@ -74612,7 +74507,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(collections); array_init(collections); - ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 295, documentsCursor); + ZEPHIR_CALL_FUNCTION(&_0, "iterator_to_array", NULL, 294, documentsCursor); zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 440); for ( @@ -74823,7 +74718,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _postSave) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, (disableEvents ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (disableEvents) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_canceloperation", NULL, 0, _1); zephir_check_call_status(); RETURN_MM_BOOL(0); @@ -74889,7 +74790,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -74922,7 +74822,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -74932,7 +74831,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -75039,7 +74938,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zval *_3; int ZEPHIR_LAST_CALL_STATUS; zend_bool success; - zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL; + zval *dependencyInjector, *connection = NULL, *exists = NULL, *source = NULL, *data = NULL, *status = NULL, *id, *ok, *collection = NULL, *disableEvents, *_0, *_1, *_2 = NULL, *_4; ZEPHIR_MM_GROW(); @@ -75075,7 +74974,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_this(this_ptr, SL("_errorMessages"), _1 TSRMLS_CC); ZEPHIR_OBS_VAR(disableEvents); zephir_read_static_property_ce(&disableEvents, phalcon_mvc_collection_ce, SL("_disableEvents") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 296, dependencyInjector, disableEvents, exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 295, dependencyInjector, disableEvents, exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_2)) { RETURN_MM_BOOL(0); @@ -75104,7 +75003,13 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { success = 0; } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 297, disableEvents, (success ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), exists); + ZEPHIR_INIT_VAR(_4); + if (success) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 296, disableEvents, _4, exists); zephir_check_call_status(); RETURN_MM(); @@ -75127,7 +75032,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findById) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75171,8 +75076,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75182,7 +75087,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75209,8 +75114,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75220,7 +75125,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, find) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75247,8 +75152,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75258,7 +75163,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, count) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(collection); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(collection, _1); if (zephir_has_constructor(collection TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, collection, "__construct", NULL, 0); @@ -75283,8 +75188,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_fetch_params(1, 0, 1, ¶meters_param); if (!parameters_param) { - ZEPHIR_INIT_VAR(parameters); - array_init(parameters); + ZEPHIR_INIT_VAR(parameters); + array_init(parameters); } else { zephir_get_arrval(parameters, parameters_param); } @@ -75294,7 +75199,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -75330,7 +75235,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { 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)) { zephir_get_strval(field, field_param); } else { @@ -75349,7 +75253,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { zephir_get_called_class(className TSRMLS_CC); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_0, className); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _1); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -75505,7 +75409,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -75576,7 +75484,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -75773,7 +75680,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { 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)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { @@ -75799,7 +75705,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -75825,7 +75730,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -75873,7 +75777,6 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { 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)) { zephir_get_strval(message, message_param); } else { @@ -76150,7 +76053,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76183,7 +76085,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76216,7 +76117,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76249,7 +76149,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76282,7 +76181,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76315,7 +76213,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76348,7 +76245,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76381,7 +76277,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -76433,7 +76328,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(lazyHandler); object_init_ex(lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 298, mainHandler); + ZEPHIR_CALL_METHOD(NULL, lazyHandler, "__construct", NULL, 297, mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(lazyHandler, mainHandler); @@ -76553,7 +76448,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { int ZEPHIR_LAST_CALL_STATUS; zend_bool shared; - zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL; + zval *serviceName_param = NULL, *definition, *shared_param = NULL, *dependencyInjector = NULL, *_0; zval *serviceName = NULL; ZEPHIR_MM_GROW(); @@ -76563,7 +76458,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76582,11 +76476,17 @@ 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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 299, serviceName, definition, (shared ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (shared) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "set", NULL, 298, serviceName, definition, _0); zephir_check_call_status(); RETURN_MM(); @@ -76605,7 +76505,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76619,11 +76518,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 300, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "has", NULL, 299, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76642,7 +76541,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { 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)) { zephir_get_strval(serviceName, serviceName_param); } else { @@ -76656,11 +76554,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 301, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "get", NULL, 300, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76681,11 +76579,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, 176); + ZEPHIR_CALL_METHOD(NULL, dependencyInjector, "__construct", NULL, 175); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); } - ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 302, serviceName); + ZEPHIR_RETURN_CALL_METHOD(dependencyInjector, "getshared", NULL, 301, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -76775,7 +76673,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(beforeHandlers); zephir_read_property_this(&beforeHandlers, this_ptr, SL("_beforeHandlers"), PH_NOISY_CC); if (Z_TYPE_P(beforeHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(beforeHandlers, &_6, &_5, 0, 0, "phalcon/mvc/micro.zep", 687); for ( ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS @@ -76833,7 +76735,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(afterHandlers); zephir_read_property_this(&afterHandlers, this_ptr, SL("_afterHandlers"), PH_NOISY_CC); if (Z_TYPE_P(afterHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_is_iterable(afterHandlers, &_10, &_9, 0, 0, "phalcon/mvc/micro.zep", 742); for ( ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS @@ -76909,7 +76815,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_OBS_VAR(finishHandlers); zephir_read_property_this(&finishHandlers, this_ptr, SL("_finishHandlers"), PH_NOISY_CC); if (Z_TYPE_P(finishHandlers) == IS_ARRAY) { - zephir_update_property_this(this_ptr, SL("_stopped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(params); ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_15, &_14, 0, 0, "phalcon/mvc/micro.zep", 832); @@ -77019,7 +76929,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { static PHP_METHOD(Phalcon_Mvc_Micro, stop) { - zephir_update_property_this(this_ptr, SL("_stopped"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_stopped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -77391,7 +77305,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -77434,7 +77347,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -77477,7 +77389,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77506,7 +77417,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77535,7 +77445,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -77658,7 +77567,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_fetch_params(1, 1, 2, &data_param, &dataColumnMap, &whiteList); data = data_param; - if (!dataColumnMap) { dataColumnMap = ZEPHIR_GLOBAL(global_null); } @@ -77762,7 +77670,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_fetch_params(1, 3, 2, &base, &data_param, &columnMap, &dirtyState_param, &keepSnapshots_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -77886,7 +77793,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { zephir_fetch_params(1, 3, 0, &data_param, &columnMap, &hydrationMode_param); data = data_param; - hydrationMode = zephir_get_intval(hydrationMode_param); @@ -77960,7 +77866,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_fetch_params(1, 2, 1, &base, &data_param, &dirtyState_param); data = data_param; - if (!dirtyState_param) { dirtyState = 0; } else { @@ -78182,12 +78087,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, 303, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, criteria, "setdi", NULL, 302, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(_2); zephir_get_called_class(_2 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, _2); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, _2); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -78373,7 +78278,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(functionName, functionName_param); } else { @@ -78384,7 +78288,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -78606,7 +78509,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -78639,7 +78541,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -78649,7 +78550,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { if ((zephir_method_exists(this_ptr, eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); + ZEPHIR_CALL_METHOD_ZVAL(&_0, this_ptr, eventName, NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(_0)) { RETURN_MM_BOOL(0); @@ -79370,7 +79271,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (ZEPHIR_IS_FALSE_IDENTICAL(_3)) { RETURN_MM_BOOL(0); } - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } if (exists) { ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "beforeUpdate", ZEPHIR_TEMP_PARAM_COPY); @@ -79742,9 +79647,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(bindType, 3) || ZEPHIR_IS_LONG(bindType, 7)) { - ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 305, snapshotValue); + ZEPHIR_CALL_FUNCTION(&_1, "floatval", &_8, 304, snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 305, value); + ZEPHIR_CALL_FUNCTION(&_9, "floatval", &_8, 304, value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(_1, _9); break; @@ -79835,12 +79740,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL, *_6 = NULL, *_11 = NULL, *_12 = NULL; - HashTable *_2, *_9; - HashPosition _1, _8; + zephir_fcall_cache_entry *_5 = NULL, *_7 = NULL, *_8 = NULL, *_13 = NULL, *_14 = NULL; + HashTable *_3, *_11; + HashPosition _2, _10; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting; - zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0 = NULL, **_3, *_7 = NULL, **_10; + zval *connection, *related, *className, *manager = NULL, *type = NULL, *relation = NULL, *columns = NULL, *referencedFields = NULL, *referencedModel = NULL, *message = NULL, *name = NULL, *record = NULL, *_0, *_1 = NULL, **_4, *_6 = NULL, *_9 = NULL, **_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -79848,29 +79753,41 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { nesting = 0; - ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (nesting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "begin", NULL, 0, _0); zephir_check_call_status(); ZEPHIR_INIT_VAR(className); zephir_get_class(className, this_ptr, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, 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", 2592); + ZEPHIR_CPY_WRT(manager, _1); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2592); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zephir_hash_move_forward_ex(_3, &_2) ) { - ZEPHIR_GET_HMKEY(name, _2, _1); - ZEPHIR_GET_HVALUE(record, _3); - ZEPHIR_CALL_METHOD(&_0, manager, "getrelationbyalias", &_4, 0, className, name); + ZEPHIR_GET_HMKEY(name, _3, _2); + ZEPHIR_GET_HVALUE(record, _4); + ZEPHIR_CALL_METHOD(&_1, manager, "getrelationbyalias", &_5, 0, className, name); zephir_check_call_status(); - ZEPHIR_CPY_WRT(relation, _0); + ZEPHIR_CPY_WRT(relation, _1); if (Z_TYPE_P(relation) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&type, relation, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_LONG(type, 0)) { if (Z_TYPE_P(record) != IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_5, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2541); return; @@ -79882,36 +79799,48 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2550); return; } - ZEPHIR_CALL_METHOD(&_0, record, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, record, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_0))) { - ZEPHIR_CALL_METHOD(&_7, record, "getmessages", NULL, 0); + if (!(zephir_is_true(_1))) { + ZEPHIR_CALL_METHOD(&_9, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_7, &_9, &_8, 0, 0, "phalcon/mvc/model.zep", 2579); + zephir_is_iterable(_9, &_11, &_10, 0, 0, "phalcon/mvc/model.zep", 2579); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS + ; zephir_hash_move_forward_ex(_11, &_10) ) { - ZEPHIR_GET_HVALUE(message, _10); + ZEPHIR_GET_HVALUE(message, _12); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_11, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_13, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_12, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_14, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } - ZEPHIR_CALL_METHOD(&_7, record, "readattribute", NULL, 0, referencedFields); + ZEPHIR_CALL_METHOD(&_9, record, "readattribute", NULL, 0, referencedFields); zephir_check_call_status(); - zephir_update_property_zval_zval(this_ptr, columns, _7 TSRMLS_CC); + zephir_update_property_zval_zval(this_ptr, columns, _9 TSRMLS_CC); } } } @@ -79921,12 +79850,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { - zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_11 = NULL, *_20 = NULL, *_21 = NULL, *_22 = NULL, *_27 = NULL, *_28 = NULL; - HashTable *_2, *_14, *_18, *_25; - HashPosition _1, _13, _17, _24; + zephir_fcall_cache_entry *_4 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_21 = NULL, *_22 = NULL, *_23 = NULL, *_28 = NULL, *_29 = NULL; + HashTable *_2, *_15, *_19, *_26; + HashPosition _1, _14, _18, _25; int ZEPHIR_LAST_CALL_STATUS; zend_bool nesting, isThrough, _5; - zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_9 = NULL, *_10 = NULL, *_12 = NULL, **_15, *_16 = NULL, **_19, *_23 = NULL, **_26; + zval *connection, *related, *className, *manager = NULL, *relation = NULL, *name = NULL, *record = NULL, *message = NULL, *columns = NULL, *referencedModel = NULL, *referencedFields = NULL, *relatedRecords = NULL, *value = NULL, *recordAfter = NULL, *intermediateModel = NULL, *intermediateFields = NULL, *intermediateValue = NULL, *intermediateModelName = NULL, *intermediateReferencedFields = NULL, *_0 = NULL, **_3, *_6 = NULL, *_10 = NULL, *_11 = NULL, *_13 = NULL, **_16, *_17 = NULL, **_20, *_24 = NULL, **_27; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &connection, &related); @@ -79960,7 +79889,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { _5 = Z_TYPE_P(record) != IS_ARRAY; } if (_5) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_6, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, _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", 2631); return; @@ -79972,7 +79907,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&referencedFields, relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(columns) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_7, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _6); zephir_check_call_status(); ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2640); return; @@ -79986,21 +79927,27 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, columns, PH_SILENT_CC))) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVS(_10, "The column '", columns, "' needs to be present in the model"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVS(_11, "The column '", columns, "' needs to be present in the model"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2654 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, relation, "isthrough", NULL, 0); zephir_check_call_status(); - isThrough = zephir_get_boolval(_12); + isThrough = zephir_get_boolval(_13); if (isThrough) { ZEPHIR_CALL_METHOD(&intermediateModelName, relation, "getintermediatemodel", NULL, 0); zephir_check_call_status(); @@ -80009,42 +79956,48 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_14, &_13, 0, 0, "phalcon/mvc/model.zep", 2769); + zephir_is_iterable(relatedRecords, &_15, &_14, 0, 0, "phalcon/mvc/model.zep", 2769); for ( - ; zephir_hash_get_current_data_ex(_14, (void**) &_15, &_13) == SUCCESS - ; zephir_hash_move_forward_ex(_14, &_13) + ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zephir_hash_move_forward_ex(_15, &_14) ) { - ZEPHIR_GET_HVALUE(recordAfter, _15); + ZEPHIR_GET_HVALUE(recordAfter, _16); if (!(isThrough)) { ZEPHIR_CALL_METHOD(NULL, recordAfter, "writeattribute", NULL, 0, referencedFields, value); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&_12, recordAfter, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_13, recordAfter, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&_16, recordAfter, "getmessages", NULL, 0); + if (!(zephir_is_true(_13))) { + ZEPHIR_CALL_METHOD(&_17, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_16, &_18, &_17, 0, 0, "phalcon/mvc/model.zep", 2711); + zephir_is_iterable(_17, &_19, &_18, 0, 0, "phalcon/mvc/model.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_18, (void**) &_19, &_17) == SUCCESS - ; zephir_hash_move_forward_ex(_18, &_17) + ; zephir_hash_get_current_data_ex(_19, (void**) &_20, &_18) == SUCCESS + ; zephir_hash_move_forward_ex(_19, &_18) ) { - ZEPHIR_GET_HVALUE(message, _19); + ZEPHIR_GET_HVALUE(message, _20); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_21, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_22, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(0); } if (isThrough) { - ZEPHIR_INIT_NVAR(_9); - ZVAL_BOOL(_9, 1); - ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_22, 0, intermediateModelName, _9); + ZEPHIR_INIT_NVAR(_10); + ZVAL_BOOL(_10, 1); + ZEPHIR_CALL_METHOD(&intermediateModel, manager, "load", &_23, 0, intermediateModelName, _10); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateFields, value); zephir_check_call_status(); @@ -80052,25 +80005,31 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, intermediateModel, "writeattribute", NULL, 0, intermediateReferencedFields, intermediateValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_16, intermediateModel, "save", NULL, 0); + ZEPHIR_CALL_METHOD(&_17, intermediateModel, "save", NULL, 0); zephir_check_call_status(); - if (!(zephir_is_true(_16))) { - ZEPHIR_CALL_METHOD(&_23, intermediateModel, "getmessages", NULL, 0); + if (!(zephir_is_true(_17))) { + ZEPHIR_CALL_METHOD(&_24, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_23, &_25, &_24, 0, 0, "phalcon/mvc/model.zep", 2763); + zephir_is_iterable(_24, &_26, &_25, 0, 0, "phalcon/mvc/model.zep", 2763); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zephir_hash_get_current_data_ex(_26, (void**) &_27, &_25) == SUCCESS + ; zephir_hash_move_forward_ex(_26, &_25) ) { - ZEPHIR_GET_HVALUE(message, _26); + ZEPHIR_GET_HVALUE(message, _27); if (Z_TYPE_P(message) == IS_OBJECT) { ZEPHIR_CALL_METHOD(NULL, message, "setmodel", NULL, 0, record); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_20, 0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_21, 0, message); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_27, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_10); + if (nesting) { + ZVAL_BOOL(_10, 1); + } else { + ZVAL_BOOL(_10, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, _10); zephir_check_call_status(); RETURN_MM_BOOL(0); } @@ -80078,21 +80037,33 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } } else { if (Z_TYPE_P(record) != IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_28, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_29, 0, _6); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(_9); - object_init_ex(_9, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "There are no defined relations for the model '", className, "' using alias '", name, "'"); - ZEPHIR_CALL_METHOD(NULL, _9, "__construct", &_11, 9, _10); + ZEPHIR_INIT_NVAR(_10); + object_init_ex(_10, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVS(_11, "There are no defined relations for the model '", className, "' using alias '", name, "'"); + ZEPHIR_CALL_METHOD(NULL, _10, "__construct", &_12, 9, _11); zephir_check_call_status(); - zephir_throw_exception_debug(_9, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); + zephir_throw_exception_debug(_10, "phalcon/mvc/model.zep", 2772 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, (nesting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_6); + if (nesting) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(NULL, connection, "commit", NULL, 0, _6); zephir_check_call_status(); RETURN_MM_BOOL(1); @@ -80181,7 +80152,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_INIT_NVAR(_4); object_init_ex(_4, phalcon_mvc_model_validationfailed_ce); _3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 306, this_ptr, _3); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 305, this_ptr, _3); zephir_check_call_status(); zephir_throw_exception_debug(_4, "phalcon/mvc/model.zep", 2885 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -80433,7 +80404,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3107); } if (ZEPHIR_GLOBAL(orm).events) { - zephir_update_property_this(this_ptr, SL("_skipped"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } ZEPHIR_INIT_NVAR(_6); ZVAL_STRING(_6, "beforeDelete", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_CALL_METHOD(&_2, this_ptr, "fireeventcancel", NULL, 0, _6); @@ -80594,7 +80569,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipOperation) { skip = zephir_get_boolval(skip_param); - zephir_update_property_this(this_ptr, SL("_skipped"), skip ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (skip) { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_skipped"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -80610,7 +80589,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -80640,7 +80618,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -80668,7 +80645,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributes) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3310); @@ -80703,7 +80679,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3341); @@ -80736,7 +80711,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3370); @@ -80769,7 +80743,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { attributes = attributes_param; - ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3399); @@ -80801,7 +80774,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80833,7 +80805,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80865,7 +80836,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80897,7 +80867,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -80908,7 +80877,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { 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)) { zephir_get_strval(referenceModel, referenceModel_param); } else { @@ -80947,7 +80915,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, addBehavior) { static PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { int ZEPHIR_LAST_CALL_STATUS; - zval *keepSnapshot_param = NULL, *_0; + zval *keepSnapshot_param = NULL, *_0, *_1; zend_bool keepSnapshot; ZEPHIR_MM_GROW(); @@ -80957,7 +80925,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, keepSnapshots) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, (keepSnapshot ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (keepSnapshot) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "keepsnapshots", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -80976,7 +80950,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { zephir_fetch_params(1, 1, 1, &data_param, &columnMap); data = data_param; - if (!columnMap) { columnMap = ZEPHIR_GLOBAL(global_null); } @@ -81230,7 +81203,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { int ZEPHIR_LAST_CALL_STATUS; - zval *dynamicUpdate_param = NULL, *_0; + zval *dynamicUpdate_param = NULL, *_0, *_1; zend_bool dynamicUpdate; ZEPHIR_MM_GROW(); @@ -81240,7 +81213,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, useDynamicUpdate) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsManager"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, (dynamicUpdate ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (dynamicUpdate) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(NULL, _0, "usedynamicupdate", NULL, 0, this_ptr, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -81312,7 +81291,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -81323,7 +81301,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -81444,7 +81421,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { } ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_3, modelName); - _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _4 = zend_fetch_class(Z_STRVAL_P(_3), Z_STRLEN_P(_3), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _4); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -81510,7 +81487,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) != IS_NULL) { RETURN_CCTOR(records); @@ -81553,7 +81530,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_strval(method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 307, method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 306, method, arguments); zephir_check_call_status(); if (Z_TYPE_P(records) == IS_NULL) { ZEPHIR_INIT_VAR(_1); @@ -81664,7 +81641,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { 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)) { zephir_get_strval(property, property_param); } else { @@ -81736,7 +81712,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { 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)) { zephir_get_strval(property, property_param); } else { @@ -81788,7 +81763,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { 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)) { zephir_get_strval(data, data_param); } else { @@ -81923,7 +81897,6 @@ static PHP_METHOD(Phalcon_Mvc_Model, setup) { options = options_param; - ZEPHIR_OBS_VAR(disableEvents); if (zephir_array_isset_string_fetch(&disableEvents, options, SS("events"), 0 TSRMLS_CC)) { ZEPHIR_GLOBAL(orm).events = zend_is_true(disableEvents); @@ -82169,7 +82142,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *routes, *_1, *_4; + zval *routes = NULL, *_1, *_4; zval *defaultRoutes_param = NULL, *_0 = NULL, *_2 = NULL, *_5; zend_bool defaultRoutes; @@ -82183,13 +82156,14 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } - defaultRoutes = Z_BVAL_P(defaultRoutes_param); } ZEPHIR_INIT_VAR(routes); array_init(routes); + ZEPHIR_INIT_NVAR(routes); + array_init(routes); if (defaultRoutes) { ZEPHIR_INIT_VAR(_0); object_init_ex(_0, phalcon_mvc_router_route_ce); @@ -82320,11 +82294,14 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } - remove = Z_BVAL_P(remove_param); - zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), remove ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (remove) { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_removeExtraSlashes"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -82341,7 +82318,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { 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)) { zephir_get_strval(namespaceName, namespaceName_param); } else { @@ -82367,7 +82343,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { 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)) { zephir_get_strval(moduleName, moduleName_param); } else { @@ -82393,7 +82368,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -82419,7 +82393,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -82443,7 +82416,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaults) { defaults = defaults_param; - if (zephir_array_isset_string_fetch(&namespaceName, defaults, SS("namespace"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_defaultNamespace"), namespaceName TSRMLS_CC); } @@ -82511,7 +82483,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { } - if (!(uri && Z_STRLEN_P(uri))) { + if (!(!(!uri) && Z_STRLEN_P(uri))) { ZEPHIR_CALL_METHOD(&realUri, this_ptr, "getrewriteuri", NULL, 0); zephir_check_call_status(); } else { @@ -82542,7 +82514,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { array_init(params); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_matchedRoute"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_OBS_VAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); @@ -82728,9 +82704,17 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { } } if (zephir_is_true(routeFound)) { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { - zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_wasMatched"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } if (!(zephir_is_true(routeFound))) { ZEPHIR_OBS_VAR(notFoundPaths); @@ -82828,7 +82812,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82887,7 +82870,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82925,7 +82907,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -82963,7 +82944,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83001,7 +82981,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83039,7 +83018,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83077,7 +83055,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83115,7 +83092,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { 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)) { zephir_get_strval(pattern, pattern_param); } else { @@ -83339,7 +83315,6 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -83509,7 +83484,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { 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)) { zephir_get_strval(baseUri, baseUri_param); } else { @@ -83539,7 +83513,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { 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)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { @@ -83613,7 +83586,6 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { 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)) { zephir_get_strval(basePath, basePath_param); } else { @@ -83783,7 +83755,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 364, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 363, args); zephir_check_call_status(); _0 = Z_TYPE_P(queryString) == IS_STRING; if (_0) { @@ -84267,7 +84239,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84291,7 +84262,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setVars) { zephir_fetch_params(1, 1, 1, ¶ms_param, &merge_param); params = params_param; - if (!merge_param) { merge = 1; } else { @@ -84328,7 +84298,6 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84354,7 +84323,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -84434,7 +84402,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(registeredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(_1); object_init_ex(_1, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 365, this_ptr, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 364, this_ptr, dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1, PH_COPY | PH_SEPARATE); } else { @@ -84488,13 +84456,13 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { - zephir_fcall_cache_entry *_9 = NULL, *_10 = NULL; + zephir_fcall_cache_entry *_9 = NULL, *_11 = NULL; HashTable *_6; HashPosition _5; int renderLevel, cacheLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean, notExists; zval *viewPath = NULL; - zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_11; + zval *engines, *viewPath_param = NULL, *silence_param = NULL, *mustClean_param = NULL, *cache = NULL, *key = NULL, *lifetime = NULL, *viewsDir, *basePath, *viewsDirPath, *viewOptions, *cacheOptions, *cachedView = NULL, *viewParams, *eventsManager = NULL, *extension = NULL, *engine = NULL, *viewEnginePath = NULL, *_0, *_1, *_2 = NULL, *_3 = NULL, *_4, **_7, *_8 = NULL, *_10 = NULL, *_12; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &engines, &viewPath_param, &silence_param, &mustClean_param, &cache); @@ -84585,14 +84553,20 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { continue; } } - ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_8); + if (mustClean) { + ZVAL_BOOL(_8, 1); + } else { + ZVAL_BOOL(_8, 0); + } + ZEPHIR_CALL_METHOD(NULL, engine, "render", NULL, 0, viewEnginePath, viewParams, _8); zephir_check_call_status(); notExists = 0; if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_8); - ZVAL_STRING(_8, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_10, 0, _8, this_ptr); - zephir_check_temp_parameter(_8); + ZEPHIR_INIT_NVAR(_10); + ZVAL_STRING(_10, "view:afterRenderView", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_11, 0, _10, this_ptr); + zephir_check_temp_parameter(_10); zephir_check_call_status(); } break; @@ -84610,9 +84584,9 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { if (!(silence)) { ZEPHIR_INIT_NVAR(_8); object_init_ex(_8, phalcon_mvc_view_exception_ce); - ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVS(_11, "View '", viewsDirPath, "' was not found in the views directory"); - ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _11); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVS(_12, "View '", viewsDirPath, "' was not found in the views directory"); + ZEPHIR_CALL_METHOD(NULL, _8, "__construct", NULL, 9, _12); zephir_check_call_status(); zephir_throw_exception_debug(_8, "phalcon/mvc/view.zep", 684 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -84633,7 +84607,6 @@ static PHP_METHOD(Phalcon_Mvc_View, registerEngines) { engines = engines_param; - zephir_update_property_this(this_ptr, SL("_registeredEngines"), engines TSRMLS_CC); RETURN_THISW(); @@ -84654,7 +84627,6 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { 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)) { zephir_get_strval(view, view_param); } else { @@ -84699,12 +84671,12 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { static PHP_METHOD(Phalcon_Mvc_View, render) { - HashTable *_11, *_15; - HashPosition _10, _14; - zephir_fcall_cache_entry *_2 = NULL, *_9 = NULL; + HashTable *_12, *_17; + HashPosition _11, _16; + zephir_fcall_cache_entry *_2 = NULL, *_10 = NULL; int renderLevel, ZEPHIR_LAST_CALL_STATUS; zend_bool silence, mustClean; - zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, **_12, *_13 = NULL, **_16, *_17 = NULL, *_18, *_19 = NULL, *_20 = NULL; + zval *controllerName_param = NULL, *actionName_param = NULL, *params = NULL, *layoutsDir = NULL, *layout, *pickView, *layoutName = NULL, *engines = NULL, *renderView = NULL, *pickViewAction, *eventsManager = NULL, *disabledLevels, *templatesBefore, *templatesAfter, *templateBefore = NULL, *templateAfter = NULL, *cache = NULL, *_0, *_1 = NULL, *_4, *_5, *_6, *_7 = NULL, *_8, *_9 = NULL, **_13, *_14 = NULL, *_15 = NULL, **_18, *_19 = NULL, *_20 = NULL, *_21, *_22 = NULL, *_23 = NULL; zval *controllerName = NULL, *actionName = NULL, *_3; ZEPHIR_MM_GROW(); @@ -84714,7 +84686,6 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -84725,7 +84696,6 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -84818,7 +84788,19 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 1); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, renderView, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_7); + if (silence) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_INIT_VAR(_9); + if (mustClean) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, renderView, _7, _9, cache); zephir_check_call_status(); } } @@ -84831,15 +84813,27 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesBefore, this_ptr, SL("_templatesBefore"), PH_NOISY_CC); if (Z_TYPE_P(templatesBefore) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesBefore, &_11, &_10, 0, 0, "phalcon/mvc/view.zep", 881); + zephir_is_iterable(templatesBefore, &_12, &_11, 0, 0, "phalcon/mvc/view.zep", 881); for ( - ; zephir_hash_get_current_data_ex(_11, (void**) &_12, &_10) == SUCCESS - ; zephir_hash_move_forward_ex(_11, &_10) + ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zephir_hash_move_forward_ex(_12, &_11) ) { - ZEPHIR_GET_HVALUE(templateBefore, _12); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, templateBefore); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateBefore, _13); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, templateBefore); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } silence = 1; @@ -84851,9 +84845,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_INIT_ZVAL_NREF(_5); ZVAL_LONG(_5, 3); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_13); - ZEPHIR_CONCAT_VV(_13, layoutsDir, layoutName); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _13, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_LNVAR(_14); + ZEPHIR_CONCAT_VV(_14, layoutsDir, layoutName); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _14, _9, _15, cache); zephir_check_call_status(); } } @@ -84866,15 +84872,27 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_read_property_this(&templatesAfter, this_ptr, SL("_templatesAfter"), PH_NOISY_CC); if (Z_TYPE_P(templatesAfter) == IS_ARRAY) { silence = 0; - zephir_is_iterable(templatesAfter, &_15, &_14, 0, 0, "phalcon/mvc/view.zep", 912); + zephir_is_iterable(templatesAfter, &_17, &_16, 0, 0, "phalcon/mvc/view.zep", 912); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zephir_hash_move_forward_ex(_17, &_16) ) { - ZEPHIR_GET_HVALUE(templateAfter, _16); - ZEPHIR_INIT_LNVAR(_17); - ZEPHIR_CONCAT_VV(_17, layoutsDir, templateAfter); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _17, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_GET_HVALUE(templateAfter, _18); + ZEPHIR_INIT_LNVAR(_19); + ZEPHIR_CONCAT_VV(_19, layoutsDir, templateAfter); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_20); + if (mustClean) { + ZVAL_BOOL(_20, 1); + } else { + ZVAL_BOOL(_20, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _19, _9, _20, cache); zephir_check_call_status(); } silence = 1; @@ -84887,20 +84905,32 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZVAL_LONG(_5, 5); zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _5 TSRMLS_CC); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_mainView"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_9, 0, engines, _5, (silence ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), (mustClean ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false)), cache); + ZEPHIR_INIT_NVAR(_9); + if (silence) { + ZVAL_BOOL(_9, 1); + } else { + ZVAL_BOOL(_9, 0); + } + ZEPHIR_INIT_NVAR(_15); + if (mustClean) { + ZVAL_BOOL(_15, 1); + } else { + ZVAL_BOOL(_15, 0); + } + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_enginerender", &_10, 0, engines, _5, _9, _15, cache); zephir_check_call_status(); } } - ZEPHIR_INIT_ZVAL_NREF(_18); - ZVAL_LONG(_18, 0); - zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _18 TSRMLS_CC); + ZEPHIR_INIT_ZVAL_NREF(_21); + ZVAL_LONG(_21, 0); + zephir_update_property_this(this_ptr, SL("_currentRenderLevel"), _21 TSRMLS_CC); if (Z_TYPE_P(cache) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(&_19, cache, "isstarted", NULL, 0); + ZEPHIR_CALL_METHOD(&_22, cache, "isstarted", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_19)) { - ZEPHIR_CALL_METHOD(&_20, cache, "isfresh", NULL, 0); + if (ZEPHIR_IS_TRUE(_22)) { + ZEPHIR_CALL_METHOD(&_23, cache, "isfresh", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE(_20)) { + if (ZEPHIR_IS_TRUE(_23)) { ZEPHIR_CALL_METHOD(NULL, cache, "save", NULL, 0); zephir_check_call_status(); } else { @@ -84969,7 +84999,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -84985,7 +85014,7 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { 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, 285); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 284); zephir_check_call_status(); RETURN_MM(); @@ -85004,7 +85033,6 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { 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)) { zephir_get_strval(partialPath, partialPath_param); } else { @@ -85062,7 +85090,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(controllerName, controllerName_param); } else { @@ -85073,7 +85100,6 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { 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)) { zephir_get_strval(actionName, actionName_param); } else { @@ -85294,7 +85320,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath) { static PHP_METHOD(Phalcon_Mvc_View, disable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (1) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -85302,7 +85332,11 @@ static PHP_METHOD(Phalcon_Mvc_View, disable) { static PHP_METHOD(Phalcon_Mvc_View, enable) { - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -85312,8 +85346,16 @@ static PHP_METHOD(Phalcon_Mvc_View, reset) { zval *_0; - zephir_update_property_this(this_ptr, SL("_disabled"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_engines"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (0) { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_disabled"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } + if (0) { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_engines"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } zephir_update_property_this(this_ptr, SL("_cache"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(_0, 5); @@ -85340,7 +85382,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85366,7 +85407,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85402,7 +85442,6 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -85606,7 +85645,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -85636,7 +85674,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -85752,7 +85789,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85777,7 +85813,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85807,7 +85842,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { 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)) { zephir_get_strval(index, index_param); } else { @@ -85863,7 +85897,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -86075,7 +86108,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -86110,7 +86142,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -86218,7 +86249,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -86295,7 +86325,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -86442,7 +86471,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -86540,7 +86568,6 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -86566,7 +86593,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -86669,7 +86696,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { 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)) { zephir_get_strval(method, method_param); } else { @@ -86701,7 +86727,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { 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)) { zephir_get_strval(prefix, prefix_param); } else { @@ -86744,7 +86769,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setHandler) { zephir_update_property_this(this_ptr, SL("_handler"), handler TSRMLS_CC); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -86760,11 +86789,14 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } - lazy = Z_BVAL_P(lazy_param); - zephir_update_property_this(this_ptr, SL("_lazy"), lazy ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (lazy) { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_lazy"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -86796,7 +86828,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86829,7 +86860,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86863,7 +86893,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86897,7 +86926,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86931,7 +86959,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86965,7 +86992,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -86999,7 +87025,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -87033,7 +87058,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { 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)) { zephir_get_strval(routePattern, routePattern_param); } else { @@ -87164,7 +87188,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { 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)) { zephir_get_strval(definition, definition_param); } else { @@ -87193,7 +87216,6 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { 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)) { zephir_get_strval(method, method_param); } else { @@ -87209,7 +87231,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { zephir_read_property_this(&definition, this_ptr, SL("_definition"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(handler); zephir_fetch_safe_class(_0, definition); - _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _1 = zend_fetch_class(Z_STRVAL_P(_0), Z_STRLEN_P(_0), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(handler, _1); if (zephir_has_constructor(handler TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, handler, "__construct", NULL, 0); @@ -87300,7 +87322,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -87330,7 +87351,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -87485,7 +87505,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -87517,7 +87536,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, bind) { bindParams = bindParams_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bind", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindParams TSRMLS_CC); @@ -87536,7 +87554,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, bindTypes) { bindTypes = bindTypes_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "bindTypes", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, bindTypes TSRMLS_CC); @@ -87589,7 +87606,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87652,7 +87668,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87689,7 +87704,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87726,7 +87740,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { 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)) { zephir_get_strval(model, model_param); } else { @@ -87762,7 +87775,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87823,7 +87835,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87856,7 +87867,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87925,7 +87935,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -87996,7 +88005,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88042,7 +88050,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88090,7 +88097,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88100,7 +88106,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -88149,7 +88154,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { 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)) { zephir_get_strval(expr, expr_param); } else { @@ -88159,7 +88163,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { values = values_param; - ZEPHIR_OBS_VAR(hiddenParam); zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC); ZEPHIR_INIT_VAR(bindParams); @@ -88204,7 +88207,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { 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)) { zephir_get_strval(conditions, conditions_param); } else { @@ -88232,7 +88234,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -88260,7 +88261,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { 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)) { zephir_get_strval(orderColumns, orderColumns_param); } else { @@ -88397,7 +88397,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, cache) { cache = cache_param; - ZEPHIR_INIT_VAR(_0); ZVAL_STRING(_0, "cache", 1); zephir_update_property_array(this_ptr, SL("_params"), _0, cache TSRMLS_CC); @@ -88521,7 +88520,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88529,7 +88527,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZVAL_EMPTY_STRING(modelName); } data = data_param; - if (!operator_param) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); @@ -88538,7 +88535,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { 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)) { zephir_get_strval(operator, operator_param); } else { @@ -88558,7 +88554,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { zephir_check_call_status(); ZEPHIR_INIT_VAR(model); zephir_fetch_safe_class(_1, modelName); - _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _2 = zend_fetch_class(Z_STRVAL_P(_1), Z_STRLEN_P(_1), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(model, _2); if (zephir_has_constructor(model TSRMLS_CC)) { ZEPHIR_CALL_METHOD(NULL, model, "__construct", NULL, 0); @@ -88622,12 +88618,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(_10); ZEPHIR_CONCAT_SVS(_10, " ", operator, " "); zephir_fast_join(_0, _10, conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 308, _0); + ZEPHIR_CALL_METHOD(NULL, criteria, "where", NULL, 307, _0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 309, bind); + ZEPHIR_CALL_METHOD(NULL, criteria, "bind", NULL, 308, bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 304, modelName); + ZEPHIR_CALL_METHOD(NULL, criteria, "setmodelname", NULL, 303, modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -88938,7 +88934,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88976,7 +88971,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -88997,7 +88991,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { if (zephir_array_isset_fetch(&model, _0, _1, 0 TSRMLS_CC)) { if (newInstance) { zephir_fetch_safe_class(_2, modelName); - _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _3 = zend_fetch_class(Z_STRVAL_P(_2), Z_STRLEN_P(_2), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _3); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -89012,7 +89006,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { } if (zephir_class_exists(modelName, 1 TSRMLS_CC)) { zephir_fetch_safe_class(_5, modelName); - _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + _6 = zend_fetch_class(Z_STRVAL_P(_5), Z_STRLEN_P(_5), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(return_value, _6); if (zephir_has_constructor(return_value TSRMLS_CC)) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); @@ -89045,7 +89039,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { 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)) { zephir_get_strval(source, source_param); } else { @@ -89101,7 +89094,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { 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)) { zephir_get_strval(schema, schema_param); } else { @@ -89150,7 +89142,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89179,7 +89170,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89207,7 +89197,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { 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)) { zephir_get_strval(connectionService, connectionService_param); } else { @@ -89371,7 +89360,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -89449,7 +89437,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { 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)) { zephir_get_strval(eventName, eventName_param); } else { @@ -89613,7 +89600,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89647,7 +89633,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 1); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89690,7 +89676,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89724,7 +89709,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, 0); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _1, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _1, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89767,7 +89752,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89802,7 +89786,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 2); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89845,7 +89829,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -89856,7 +89839,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -89899,9 +89881,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { object_init_ex(relation, phalcon_mvc_model_relation_ce); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, 4); - ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 310, _0, referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, relation, "__construct", NULL, 309, _0, referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 311, intermediateFields, intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, relation, "setintermediaterelation", NULL, 310, intermediateFields, intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(alias); if (zephir_array_isset_string_fetch(&alias, options, SS("alias"), 0 TSRMLS_CC)) { @@ -89944,7 +89926,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -89955,7 +89936,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -89993,7 +89973,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90004,7 +89983,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90042,7 +90020,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90053,7 +90030,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90091,7 +90067,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90102,7 +90077,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { 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)) { zephir_get_strval(modelRelation, modelRelation_param); } else { @@ -90139,7 +90113,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90150,7 +90123,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -90212,12 +90184,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1128); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1130 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1130); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -90244,12 +90216,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } if (_5) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1149); + zephir_array_update_long(&findParams, 0, &value, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1151 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", value); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1151); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } continue; } @@ -90277,12 +90249,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { } else { if (Z_TYPE_P(findParamsTwo) == IS_STRING) { if (!(zephir_array_isset_long(findParams, 0))) { - zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1174); + zephir_array_update_long(&findParams, 0, &findParamsTwo, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } else { zephir_array_fetch_long(&_6, findParams, 0, PH_NOISY | PH_READONLY, "phalcon/mvc/model/manager.zep", 1176 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_1); ZEPHIR_CONCAT_SVSV(_1, "(", _6, ") AND ", findParamsTwo); - zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1176); + zephir_array_update_long(&findParams, 0, &_1, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } } @@ -90308,7 +90280,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90362,7 +90333,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", 1242); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 312, extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_mergefindparameters", &_3, 311, extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, _2); zephir_check_call_status(); @@ -90427,10 +90398,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_2, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 312, findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_3, 311, findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 312, findArguments, extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_3, 311, findArguments, extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(findParams, findArguments); @@ -90504,7 +90475,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90515,7 +90485,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -90544,7 +90513,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90555,7 +90523,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -90589,7 +90556,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90600,7 +90566,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90648,7 +90613,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90659,7 +90623,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90707,7 +90670,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(method, method_param); } else { @@ -90718,7 +90680,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90874,7 +90835,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { 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)) { zephir_get_strval(modelName, modelName_param); } else { @@ -90945,7 +90905,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(first, first_param); } else { @@ -90956,7 +90915,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { 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)) { zephir_get_strval(second, second_param); } else { @@ -91010,7 +90968,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -91054,7 +91011,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { 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)) { zephir_get_strval(phql, phql_param); } else { @@ -91170,7 +91126,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { 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)) { zephir_get_strval(alias, alias_param); } else { @@ -91342,7 +91297,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -91382,7 +91336,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -91415,7 +91368,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -91495,7 +91447,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_mvc_model_message_ce); zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 161 TSRMLS_CC); @@ -91927,16 +91878,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMapIndex) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 374); @@ -91949,16 +91900,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 391); @@ -91971,16 +91922,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 2); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 408); @@ -91993,16 +91944,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 3); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 425); @@ -92015,16 +91966,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 4); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 442); @@ -92037,16 +91988,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 5); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 5); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 459); @@ -92059,16 +92010,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, _0; + zval *model, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 8); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 8); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, _0); zephir_check_call_status(); RETURN_MM(); @@ -92077,16 +92028,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 9); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 9); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 491); @@ -92099,16 +92050,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 508); @@ -92121,16 +92072,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 525); @@ -92144,7 +92095,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92152,9 +92103,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 10); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92164,7 +92115,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92172,9 +92123,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 11); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92184,7 +92135,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; zval *attributes = NULL; - zval *model, *attributes_param = NULL, _0; + zval *model, *attributes_param = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &attributes_param); @@ -92192,9 +92143,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { zephir_get_arrval(attributes, attributes_param); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, attributes); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, _0, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -92203,16 +92154,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 13); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 578); @@ -92225,16 +92176,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDefaultValues) { int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 12); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 12); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, 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", 595); @@ -92248,16 +92199,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { @@ -92275,16 +92226,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getReverseColumnMap) { zend_bool _1; int ZEPHIR_LAST_CALL_STATUS; - zval *model, *data = NULL, _0; + zval *model, *data = NULL, *_0; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &model); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 1); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, _0); zephir_check_call_status(); _1 = Z_TYPE_P(data) != IS_NULL; if (_1) { @@ -92597,9 +92548,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, __construct) { _0 = zephir_array_isset_string_fetch(&enableImplicitJoins, options, SS("enable_implicit_joins"), 0 TSRMLS_CC); } if (_0) { - zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), (ZEPHIR_IS_TRUE(enableImplicitJoins)) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (ZEPHIR_IS_TRUE(enableImplicitJoins)) { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } else { - zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), (ZEPHIR_GLOBAL(orm).enable_implicit_joins) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (ZEPHIR_GLOBAL(orm).enable_implicit_joins) { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_enableImplicitJoins"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } ZEPHIR_MM_RESTORE(); @@ -92657,7 +92616,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setUniqueRow) { uniqueRow = zephir_get_boolval(uniqueRow_param); - zephir_update_property_this(this_ptr, SL("_uniqueRow"), uniqueRow ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (uniqueRow) { + zephir_update_property_this(this_ptr, SL("_uniqueRow"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_uniqueRow"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -92684,7 +92647,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { expr = expr_param; - ZEPHIR_OBS_VAR(columnName); zephir_array_fetch_string(&columnName, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 196 TSRMLS_CC); ZEPHIR_OBS_VAR(sqlColumnAliases); @@ -92862,14 +92824,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { argument = argument_param; - zephir_array_fetch_string(&_0, argument, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 336 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 352)) { zephir_create_array(return_value, 1, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("all"), 1); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 318, argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 317, argument); zephir_check_call_status(); RETURN_MM(); @@ -92890,7 +92851,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { expr = expr_param; - ZEPHIR_INIT_VAR(whenClauses); array_init(whenClauses); zephir_array_fetch_string(&_0, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 350 TSRMLS_CC); @@ -92905,11 +92865,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("when"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 354 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_8, whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 355 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _8); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _8); zephir_check_call_status(); zephir_array_update_string(&_4, SL("then"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 356); @@ -92918,7 +92878,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(_4, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(_4, SS("type"), SL("else"), 1); zephir_array_fetch_string(&_6, whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 360 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, _4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 361); @@ -92927,7 +92887,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SS("type"), SL("case"), 1); zephir_array_fetch_string(&_6, expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 367 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 318, _6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_getexpression", &_7, 317, _6); zephir_check_call_status(); zephir_array_update_string(&return_value, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -92950,7 +92910,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { expr = expr_param; - ZEPHIR_OBS_VAR(arguments); if (zephir_array_isset_string_fetch(&arguments, expr, SS("arguments"), 0 TSRMLS_CC)) { if (zephir_array_isset_string(expr, SS("distinct"))) { @@ -92967,13 +92926,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(argument, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, argument); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, argument); zephir_check_call_status(); zephir_array_append(&functionArgs, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 391); } } else { zephir_create_array(functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 319, arguments); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcallargument", &_4, 318, arguments); zephir_check_call_status(); zephir_array_fast_append(functionArgs, _3); } @@ -93011,10 +92970,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { HashTable *_14; HashPosition _13; - zephir_fcall_cache_entry *_0 = NULL, *_1 = NULL; + zephir_fcall_cache_entry *_1 = NULL, *_2 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool quoting, tempNotQuoting; - zval *expr, *quoting_param = NULL, *exprType, *exprLeft, *exprRight, *left = NULL, *right = NULL, *listItems, *exprListItem = NULL, *exprReturn = NULL, *value = NULL, *escapedValue = NULL, *exprValue = NULL, *valueParts, *name, *bindType, *bind, *_2 = NULL, *_3 = NULL, *_4, _5, _6, *_7 = NULL, *_8 = NULL, *_9, *_10 = NULL, *_11, *_12 = NULL, **_15; + zval *expr, *quoting_param = NULL, *exprType, *exprLeft, *exprRight, *left = NULL, *right = NULL, *listItems, *exprListItem = NULL, *exprReturn = NULL, *value = NULL, *escapedValue = NULL, *exprValue = NULL, *valueParts, *name, *bindType, *bind, *_0 = NULL, *_3 = NULL, *_4, _5, _6, *_7 = NULL, *_8 = NULL, *_9, *_10 = NULL, *_11, *_12 = NULL, **_15; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &expr, "ing_param); @@ -93036,12 +92995,24 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { if (!ZEPHIR_IS_LONG(exprType, 409)) { ZEPHIR_OBS_VAR(exprLeft); if (zephir_array_isset_string_fetch(&exprLeft, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_0, 318, exprLeft, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_0); + if (tempNotQuoting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 317, exprLeft, _0); zephir_check_call_status(); } ZEPHIR_OBS_VAR(exprRight); if (zephir_array_isset_string_fetch(&exprRight, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_0, 318, exprRight, (tempNotQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_0); + if (tempNotQuoting) { + ZVAL_BOOL(_0, 1); + } else { + ZVAL_BOOL(_0, 0); + } + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 317, exprRight, _0); zephir_check_call_status(); } } @@ -93119,7 +93090,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_1, 320, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_2, 319, expr); zephir_check_call_status(); break; } @@ -93205,9 +93176,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("literal"), 1); - ZEPHIR_OBS_VAR(_2); - zephir_array_fetch_string(&_2, expr, SL("value"), PH_NOISY, "phalcon/mvc/model/query.zep", 535 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_OBS_VAR(_3); + zephir_array_fetch_string(&_3, expr, SL("value"), PH_NOISY, "phalcon/mvc/model/query.zep", 535 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 333)) { @@ -93249,14 +93220,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("placeholder"), 1); - ZEPHIR_INIT_VAR(_3); + ZEPHIR_INIT_NVAR(_0); zephir_array_fetch_string(&_4, expr, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 565 TSRMLS_CC); ZEPHIR_SINIT_VAR(_5); ZVAL_STRING(&_5, "?", 0); ZEPHIR_SINIT_VAR(_6); ZVAL_STRING(&_6, ":", 0); - zephir_fast_str_replace(&_3, &_5, &_6, _4 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); + zephir_fast_str_replace(&_0, &_5, &_6, _4 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_0, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 274)) { @@ -93281,9 +93252,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { zephir_array_fetch_long(&bindType, valueParts, 1, PH_NOISY, "phalcon/mvc/model/query.zep", 578 TSRMLS_CC); do { if (ZEPHIR_IS_STRING(bindType, "str")) { - ZEPHIR_INIT_NVAR(_3); - ZVAL_LONG(_3, 2); - zephir_update_property_array(this_ptr, SL("_bindTypes"), name, _3 TSRMLS_CC); + ZEPHIR_INIT_NVAR(_0); + ZVAL_LONG(_0, 2); + zephir_update_property_array(this_ptr, SL("_bindTypes"), name, _0 TSRMLS_CC); ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("placeholder"), 1); @@ -93558,18 +93529,18 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("literal"), 1); - ZEPHIR_OBS_NVAR(_2); - zephir_array_fetch_string(&_2, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 710 TSRMLS_CC); - zephir_array_update_string(&exprReturn, SL("value"), &_2, PH_COPY | PH_SEPARATE); + ZEPHIR_OBS_NVAR(_3); + zephir_array_fetch_string(&_3, expr, SL("name"), PH_NOISY, "phalcon/mvc/model/query.zep", 710 TSRMLS_CC); + zephir_array_update_string(&exprReturn, SL("value"), &_3, PH_COPY | PH_SEPARATE); break; } if (ZEPHIR_IS_LONG(exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 321, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 320, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 322, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 321, expr); zephir_check_call_status(); break; } @@ -93577,20 +93548,20 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ZEPHIR_INIT_NVAR(exprReturn); zephir_create_array(exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(exprReturn, SS("type"), SL("select"), 1); - ZEPHIR_INIT_NVAR(_3); - ZVAL_BOOL(_3, 1); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 323, expr, _3); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, 1); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_prepareselect", NULL, 322, expr, _0); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_12, PH_COPY | PH_SEPARATE); break; } - ZEPHIR_INIT_NVAR(_3); - object_init_ex(_3, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_NVAR(_0); + object_init_ex(_0, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "Unknown expression type ", exprType); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", NULL, 9, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 9, _7); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model/query.zep", 726 TSRMLS_CC); + zephir_throw_exception_debug(_0, "phalcon/mvc/model/query.zep", 726 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while(0); @@ -93598,7 +93569,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SS("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_1, 320, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_2, 319, expr); zephir_check_call_status(); RETURN_MM(); } @@ -93611,7 +93582,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { ; zephir_hash_move_forward_ex(_14, &_13) ) { ZEPHIR_GET_HVALUE(exprListItem, _15); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_0, 318, exprListItem); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_1, 317, exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, _12, PH_SEPARATE, "phalcon/mvc/model/query.zep", 745); } @@ -93640,7 +93611,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { column = column_param; - ZEPHIR_OBS_VAR(columnType); if (!(zephir_array_isset_string_fetch(&columnType, column, SS("type"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Corrupted SELECT AST", "phalcon/mvc/model/query.zep", 764); @@ -93733,7 +93703,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(sqlColumn, SS("type"), SL("scalar"), 1); ZEPHIR_OBS_VAR(columnData); zephir_array_fetch_string(&columnData, column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 871 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 318, columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 317, columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(balias); if (zephir_array_isset_string_fetch(&balias, sqlExprColumn, SS("balias"), 0 TSRMLS_CC)) { @@ -93904,7 +93874,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { 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)) { zephir_get_strval(joinType, joinType_param); } else { @@ -93931,7 +93900,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_4); @@ -93939,7 +93908,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_fast_append(sqlJoinConditions, _0); @@ -93975,7 +93944,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(_2, SS("type"), 355); zephir_array_update_string(&_2, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _2); zephir_check_call_status(); zephir_array_update_string(&_0, SL("left"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_4); @@ -93983,7 +93952,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(_4, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 320, _4); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getqualified", &_3, 319, _4); zephir_check_call_status(); zephir_array_update_string(&_0, SL("right"), &_1, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, _0, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1076); @@ -94066,7 +94035,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_8, SS("type"), 355); zephir_array_update_string(&_8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _8); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(_10); @@ -94074,7 +94043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_10, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_10, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _10); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _10); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7, PH_COPY | PH_SEPARATE); } @@ -94096,7 +94065,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_12, SS("type"), 355); zephir_array_update_string(&_12, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _12); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _12); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_13); @@ -94104,7 +94073,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_13, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_13, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_13, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _13); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _13); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -94125,7 +94094,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(_14, SS("type"), 355); zephir_array_update_string(&_14, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _14); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _14); zephir_check_call_status(); zephir_array_update_string(&_11, SL("left"), &_7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(_15); @@ -94133,7 +94102,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(_15, SS("type"), SL("qualified"), 1); zephir_array_update_string(&_15, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 320, _15); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "_getqualified", &_9, 319, _15); zephir_check_call_status(); zephir_array_update_string(&_11, SL("right"), &_7, PH_COPY | PH_SEPARATE); zephir_array_fast_append(_10, _11); @@ -94209,7 +94178,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 324, manager, joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 323, 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", 1315 TSRMLS_CC); @@ -94223,7 +94192,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", &_4, 325, joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 324, joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, joinItem, SS("alias"), 0 TSRMLS_CC)) { @@ -94291,7 +94260,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_GET_HVALUE(joinItem, _11); ZEPHIR_OBS_NVAR(joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, joinItem, SS("conditions"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 318, joinExpr); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "_getexpression", &_13, 317, joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, joinAliasName, &_12, PH_COPY | PH_SEPARATE); } @@ -94388,10 +94357,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_12, relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(_12))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 326, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_35, 325, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 327, joinType, joinSource, modelAlias, joinAlias, relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_36, 326, joinType, joinSource, modelAlias, joinAlias, relation); zephir_check_call_status(); } if (zephir_array_isset_long(sqlJoin, 0)) { @@ -94462,7 +94431,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1625 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 318, _3); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_4, 317, _3); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, orderItem, SS("sort"), 1 TSRMLS_CC)) { ZEPHIR_INIT_NVAR(orderPartSort); @@ -94505,7 +94474,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { group = group_param; - ZEPHIR_INIT_VAR(groupParts); if (zephir_array_isset_long(group, 0)) { array_init(groupParts); @@ -94515,13 +94483,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { ; zephir_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(groupItem, _2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, groupItem); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1659); } } else { zephir_create_array(groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 318, group); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_4, 317, group); zephir_check_call_status(); zephir_array_fast_append(groupParts, _3); } @@ -94534,26 +94502,27 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { zephir_fcall_cache_entry *_1 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval *limitClause_param = NULL, *number, *offset, *_0 = NULL; - zval *limitClause = NULL, *limit; + zval *limitClause = NULL, *limit = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &limitClause_param); limitClause = limitClause_param; - ZEPHIR_INIT_VAR(limit); array_init(limit); + ZEPHIR_INIT_NVAR(limit); + array_init(limit); ZEPHIR_OBS_VAR(number); if (zephir_array_isset_string_fetch(&number, limitClause, SS("number"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, number); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(offset); if (zephir_array_isset_string_fetch(&offset, limitClause, SS("offset"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 318, offset); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_1, 317, offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_0, PH_COPY | PH_SEPARATE); } @@ -94876,12 +94845,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", &_32, 328, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, 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", &_32, 328, select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_32, 327, select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(sqlJoins); @@ -94897,7 +94866,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { ; zephir_hash_move_forward_ex(_34, &_33) ) { ZEPHIR_GET_HVALUE(column, _35); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 329, column); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getselectcolumn", &_36, 328, column); zephir_check_call_status(); zephir_is_iterable(_3, &_38, &_37, 0, 0, "phalcon/mvc/model/query.zep", 1997); for ( @@ -94946,31 +94915,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 318, where); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_40, 317, where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SS("groupBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 330, groupBy); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getgroupclause", NULL, 329, groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(having); if (zephir_array_isset_string_fetch(&having, ast, SS("having"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 318, having); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getexpression", &_40, 317, having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(order); if (zephir_array_isset_string_fetch(&order, ast, SS("orderBy"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 331, order); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getorderclause", NULL, 330, order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_41, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_41, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_41, PH_COPY | PH_SEPARATE); } @@ -94991,13 +94960,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { - zephir_fcall_cache_entry *_9 = NULL, *_13 = NULL, *_16 = NULL; + zephir_fcall_cache_entry *_9 = NULL, *_13 = NULL, *_17 = NULL; zval *_7 = NULL; HashTable *_5, *_11; HashPosition _4, _10; int ZEPHIR_LAST_CALL_STATUS; zend_bool notQuoting; - zval *ast, *qualifiedName, *nsAlias, *manager, *modelName, *model = NULL, *source = NULL, *schema = NULL, *exprValues, *exprValue = NULL, *sqlInsert, *metaData, *fields, *sqlFields, *field = NULL, *name = NULL, *realModelName = NULL, *_0 = NULL, *_1, *_2, *_3 = NULL, **_6, *_8 = NULL, **_12, *_14, *_15 = NULL; + zval *ast, *qualifiedName, *nsAlias, *manager, *modelName, *model = NULL, *source = NULL, *schema = NULL, *exprValues, *exprValue = NULL, *sqlInsert, *metaData, *fields, *sqlFields, *field = NULL, *name = NULL, *realModelName = NULL, *_0 = NULL, *_1, *_2, *_3 = NULL, **_6, *_8 = NULL, **_12, *_14 = NULL, *_15, *_16 = NULL; ZEPHIR_MM_GROW(); @@ -95062,7 +95031,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_OBS_NVAR(_8); zephir_array_fetch_string(&_8, exprValue, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2110 TSRMLS_CC); zephir_array_update_string(&_7, SL("type"), &_8, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 318, exprValue, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_3); + if (notQuoting) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getexpression", &_9, 317, exprValue, _3); zephir_check_call_status(); zephir_array_update_string(&_7, SL("value"), &_0, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, _7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2112); @@ -95088,14 +95063,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { ZEPHIR_CALL_METHOD(&_0, metaData, "hasattribute", &_13, 0, model, name); zephir_check_call_status(); if (!(zephir_is_true(_0))) { - ZEPHIR_INIT_NVAR(_3); - object_init_ex(_3, phalcon_mvc_model_exception_ce); - _14 = zephir_fetch_nproperty_this(this_ptr, SL("_phql"), PH_NOISY_CC); - ZEPHIR_INIT_LNVAR(_15); - ZEPHIR_CONCAT_SVSVSV(_15, "The model '", modelName, "' doesn't have the attribute '", name, "', when preparing: ", _14); - ZEPHIR_CALL_METHOD(NULL, _3, "__construct", &_16, 9, _15); + ZEPHIR_INIT_NVAR(_14); + object_init_ex(_14, phalcon_mvc_model_exception_ce); + _15 = zephir_fetch_nproperty_this(this_ptr, SL("_phql"), PH_NOISY_CC); + ZEPHIR_INIT_LNVAR(_16); + ZEPHIR_CONCAT_SVSVSV(_16, "The model '", modelName, "' doesn't have the attribute '", name, "', when preparing: ", _15); + ZEPHIR_CALL_METHOD(NULL, _14, "__construct", &_17, 9, _16); zephir_check_call_status(); - zephir_throw_exception_debug(_3, "phalcon/mvc/model/query.zep", 2130 TSRMLS_CC); + zephir_throw_exception_debug(_14, "phalcon/mvc/model/query.zep", 2130 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -95116,7 +95091,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { HashTable *_1, *_10; HashPosition _0, _9; zend_bool notQuoting; - zval *ast, *update, *tables, *values, *modelsInstances, *models, *sqlTables, *sqlAliases, *sqlAliasesModelsInstances, *updateTables = NULL, *nsAlias = NULL, *realModelName = NULL, *completeSource = NULL, *sqlModels, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *alias = NULL, *sqlFields, *sqlValues, *updateValues = NULL, *updateValue = NULL, *exprColumn = NULL, *sqlUpdate, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, **_11, *_14 = NULL, *_15 = NULL, _16; + zval *ast, *update, *tables, *values, *modelsInstances, *models, *sqlTables, *sqlAliases, *sqlAliasesModelsInstances, *updateTables = NULL, *nsAlias = NULL, *realModelName = NULL, *completeSource = NULL, *sqlModels, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *alias = NULL, *sqlFields, *sqlValues, *updateValues = NULL, *updateValue = NULL, *exprColumn = NULL, *sqlUpdate, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, **_11, *_14 = NULL, *_15 = NULL, *_16 = NULL; ZEPHIR_MM_GROW(); @@ -95237,7 +95212,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_4, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2260 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 318, _4, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_7); + if (notQuoting) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", &_12, 317, _4, _7); zephir_check_call_status(); zephir_array_append(&sqlFields, _3, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2260); ZEPHIR_OBS_NVAR(exprColumn); @@ -95247,7 +95228,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_NVAR(_14); zephir_array_fetch_string(&_14, exprColumn, SL("type"), PH_NOISY, "phalcon/mvc/model/query.zep", 2263 TSRMLS_CC); zephir_array_update_string(&_13, SL("type"), &_14, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, exprColumn, (notQuoting ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_16); + if (notQuoting) { + ZVAL_BOOL(_16, 1); + } else { + ZVAL_BOOL(_16, 0); + } + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, exprColumn, _16); zephir_check_call_status(); zephir_array_update_string(&_13, SL("value"), &_15, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, _13, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2265); @@ -95260,15 +95247,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { zephir_array_update_string(&sqlUpdate, SL("values"), &sqlValues, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_SINIT_VAR(_16); - ZVAL_BOOL(&_16, 1); - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 318, where, &_16); + ZEPHIR_INIT_NVAR(_7); + ZVAL_BOOL(_7, 1); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getexpression", &_12, 317, where, _7); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_15, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_15, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_15, PH_COPY | PH_SEPARATE); } @@ -95282,7 +95269,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { int ZEPHIR_LAST_CALL_STATUS; HashTable *_1; HashPosition _0; - zval *ast, *delete, *tables, *models, *modelsInstances, *sqlTables, *sqlModels, *sqlAliases, *sqlAliasesModelsInstances, *deleteTables = NULL, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *nsAlias = NULL, *realModelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *completeSource = NULL, *alias = NULL, *sqlDelete, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, _9, *_10 = NULL; + zval *ast, *delete, *tables, *models, *modelsInstances, *sqlTables, *sqlModels, *sqlAliases, *sqlAliasesModelsInstances, *deleteTables = NULL, *manager, *table = NULL, *qualifiedName = NULL, *modelName = NULL, *nsAlias = NULL, *realModelName = NULL, *model = NULL, *source = NULL, *schema = NULL, *completeSource = NULL, *alias = NULL, *sqlDelete, *where, *limit, **_2, *_3 = NULL, *_4, *_6, *_7 = NULL, *_9 = NULL; ZEPHIR_MM_GROW(); @@ -95385,17 +95372,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { zephir_array_update_string(&sqlDelete, SL("models"), &sqlModels, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_VAR(where); if (zephir_array_isset_string_fetch(&where, ast, SS("where"), 0 TSRMLS_CC)) { - ZEPHIR_SINIT_VAR(_9); - ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 318, where, &_9); + ZEPHIR_INIT_NVAR(_7); + ZVAL_BOOL(_7, 1); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getexpression", NULL, 317, where, _7); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(limit); if (zephir_array_isset_string_fetch(&limit, ast, SS("limit"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getlimitclause", NULL, 332, limit); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "_getlimitclause", NULL, 331, limit); zephir_check_call_status(); - zephir_array_update_string(&sqlDelete, SL("limit"), &_10, PH_COPY | PH_SEPARATE); + zephir_array_update_string(&sqlDelete, SL("limit"), &_9, PH_COPY | PH_SEPARATE); } RETURN_CCTOR(sqlDelete); @@ -95441,22 +95428,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_this(this_ptr, SL("_type"), type TSRMLS_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 323); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 322); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 333); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 332); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 334); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 333); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 335); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 334); zephir_check_call_status(); break; } @@ -95843,12 +95830,18 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { isKeepingSnapshots = zephir_get_boolval(_40); } object_init_ex(return_value, phalcon_mvc_model_resultset_simple_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, simpleColumnMap, resultObject, resultData, cache, (isKeepingSnapshots ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_4); + if (isKeepingSnapshots) { + ZVAL_BOOL(_4, 1); + } else { + ZVAL_BOOL(_4, 0); + } + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 335, simpleColumnMap, resultObject, resultData, cache, _4); 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, 337, columns1, resultData, cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 336, columns1, resultData, cache); zephir_check_call_status(); RETURN_MM(); @@ -96008,7 +96001,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_15, insertModel, "create", NULL, 0, insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 338, _15, insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 337, _15, insertModel); zephir_check_call_status(); RETURN_MM(); @@ -96139,13 +96132,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_array_update_zval(&updateValues, fieldName, &updateValue, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, model, intermediate, selectBindParams, selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); } @@ -96178,7 +96171,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11, record); zephir_check_call_status(); RETURN_MM(); } @@ -96189,7 +96182,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_11); ZVAL_BOOL(_11, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 338, _11); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_16, 337, _11); zephir_check_call_status(); RETURN_MM(); @@ -96222,13 +96215,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, _1, "load", NULL, 0, modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 339, model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 338, 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); ZEPHIR_INIT_VAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); } @@ -96261,7 +96254,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2, record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2, record); zephir_check_call_status(); RETURN_MM(); } @@ -96272,7 +96265,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_INIT_NVAR(_2); ZVAL_BOOL(_2, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 338, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 337, _2); zephir_check_call_status(); RETURN_MM(); @@ -96320,18 +96313,18 @@ 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, 340); + ZEPHIR_CALL_METHOD(NULL, query, "__construct", NULL, 339); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 341, _5); + ZEPHIR_CALL_METHOD(NULL, query, "setdi", NULL, 340, _5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_2); ZVAL_LONG(_2, 309); - ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 342, _2); + ZEPHIR_CALL_METHOD(NULL, query, "settype", NULL, 341, _2); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 343, selectIr); + ZEPHIR_CALL_METHOD(NULL, query, "setintermediate", NULL, 342, selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 344, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(query, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -96413,7 +96406,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { if (Z_TYPE_P(defaultBindParams) == IS_ARRAY) { if (Z_TYPE_P(bindParams) == IS_ARRAY) { ZEPHIR_INIT_VAR(mergedParams); - zephir_add_function_ex(mergedParams, defaultBindParams, bindParams TSRMLS_CC); + zephir_add_function(mergedParams, defaultBindParams, bindParams); } else { ZEPHIR_CPY_WRT(mergedParams, defaultBindParams); } @@ -96425,7 +96418,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { if (Z_TYPE_P(defaultBindTypes) == IS_ARRAY) { if (Z_TYPE_P(bindTypes) == IS_ARRAY) { ZEPHIR_INIT_VAR(mergedTypes); - zephir_add_function_ex(mergedTypes, defaultBindTypes, bindTypes TSRMLS_CC); + zephir_add_function(mergedTypes, defaultBindTypes, bindTypes); } else { ZEPHIR_CPY_WRT(mergedTypes, defaultBindTypes); } @@ -96452,22 +96445,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property_this(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 345, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 344, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 346, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 345, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 347, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 346, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 348, intermediate, mergedParams, mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 347, intermediate, mergedParams, mergedTypes); zephir_check_call_status(); break; } @@ -96522,7 +96515,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 344, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 343, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -96564,7 +96557,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindParams) { zephir_fetch_params(1, 1, 1, &bindParams_param, &merge_param); bindParams = bindParams_param; - if (!merge_param) { merge = 0; } else { @@ -96576,7 +96568,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindParams) { currentBindParams = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); if (Z_TYPE_P(currentBindParams) == IS_ARRAY) { ZEPHIR_INIT_VAR(_0); - zephir_add_function_ex(_0, currentBindParams, bindParams TSRMLS_CC); + zephir_add_function(_0, currentBindParams, bindParams); zephir_update_property_this(this_ptr, SL("_bindParams"), _0 TSRMLS_CC); } else { zephir_update_property_this(this_ptr, SL("_bindParams"), bindParams TSRMLS_CC); @@ -96605,7 +96597,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindTypes) { zephir_fetch_params(1, 1, 1, &bindTypes_param, &merge_param); bindTypes = bindTypes_param; - if (!merge_param) { merge = 0; } else { @@ -96617,7 +96608,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setBindTypes) { currentBindTypes = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); if (Z_TYPE_P(currentBindTypes) == IS_ARRAY) { ZEPHIR_INIT_VAR(_0); - zephir_add_function_ex(_0, currentBindTypes, bindTypes TSRMLS_CC); + zephir_add_function(_0, currentBindTypes, bindTypes); zephir_update_property_this(this_ptr, SL("_bindTypes"), _0 TSRMLS_CC); } else { zephir_update_property_this(this_ptr, SL("_bindTypes"), bindTypes TSRMLS_CC); @@ -96646,7 +96637,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, setIntermediate) { intermediate = intermediate_param; - zephir_update_property_this(this_ptr, SL("_intermediate"), intermediate TSRMLS_CC); RETURN_THISW(); @@ -96682,7 +96672,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getCacheOptions) { static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { int ZEPHIR_LAST_CALL_STATUS; - zval *intermediate = NULL, *_0, *_1, *_2, _3; + zval *intermediate = NULL, *_0, *_1, *_2, *_3; ZEPHIR_MM_GROW(); @@ -96692,9 +96682,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { if (ZEPHIR_IS_LONG(_0, 309)) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_bindParams"), PH_NOISY_CC); _2 = zephir_fetch_nproperty_this(this_ptr, SL("_bindTypes"), PH_NOISY_CC); - ZEPHIR_SINIT_VAR(_3); - ZVAL_BOOL(&_3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 345, intermediate, _1, _2, &_3); + ZEPHIR_INIT_VAR(_3); + ZVAL_BOOL(_3, 1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 344, intermediate, _1, _2, _3); zephir_check_call_status(); RETURN_MM(); } @@ -96802,7 +96792,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { 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)) { zephir_get_strval(referencedModel, referencedModel_param); } else { @@ -96835,7 +96824,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { 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)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { @@ -96898,7 +96886,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { @@ -97200,14 +97187,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, __construct) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0, _1; + zval *_0, *_1; ZEPHIR_MM_GROW(); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_pointer"), PH_NOISY_CC); - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, (zephir_get_numberval(_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, (zephir_get_numberval(_0) + 1)); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97241,13 +97228,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, key) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { int ZEPHIR_LAST_CALL_STATUS; - zval _0; + zval *_0; ZEPHIR_MM_GROW(); - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, 0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -97356,25 +97343,24 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { - zval *index_param = NULL, *_0, _1; + zval *index_param = NULL, *_0, *_1; int index, ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - index = Z_LVAL_P(index_param); _0 = zephir_fetch_nproperty_this(this_ptr, SL("_count"), PH_NOISY_CC); if (ZEPHIR_GT_LONG(_0, index)) { - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, index); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97434,7 +97420,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { int ZEPHIR_LAST_CALL_STATUS; - zval *_0, _1; + zval *_0, *_1; ZEPHIR_MM_GROW(); @@ -97442,9 +97428,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { if (ZEPHIR_IS_LONG(_0, 0)) { RETURN_MM_BOOL(0); } - ZEPHIR_SINIT_VAR(_1); - ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_1); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, 0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97455,7 +97441,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { int ZEPHIR_LAST_CALL_STATUS; - zval *count, _0; + zval *count, *_0; ZEPHIR_MM_GROW(); @@ -97464,9 +97450,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { if (ZEPHIR_IS_LONG(count, 0)) { RETURN_MM_BOOL(0); } - ZEPHIR_SINIT_VAR(_0); - ZVAL_LONG(&_0, (zephir_get_numberval(count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, &_0); + ZEPHIR_INIT_VAR(_0); + ZVAL_LONG(_0, (zephir_get_numberval(count) - 1)); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 73, _0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -97484,7 +97470,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh) { isFresh = zephir_get_boolval(isFresh_param); - zephir_update_property_this(this_ptr, SL("_isFresh"), isFresh ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isFresh) { + zephir_update_property_this(this_ptr, SL("_isFresh"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_isFresh"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } RETURN_THISW(); } @@ -97698,7 +97688,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, filter) { _0->funcs->get_current_data(_0, &ZEPHIR_TMP_ITERATOR_PTR TSRMLS_CC); ZEPHIR_CPY_WRT(record, (*ZEPHIR_TMP_ITERATOR_PTR)); } - zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE, "phalcon/mvc/model/resultset.zep", 546); + zephir_array_update_long(¶meters, 0, &record, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(processedRecord); ZEPHIR_CALL_USER_FUNC_ARRAY(processedRecord, filter, parameters); zephir_check_call_status(); @@ -97876,7 +97866,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { 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)) { zephir_get_strval(attribute, attribute_param); } else { @@ -98084,7 +98073,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_NVAR(_0); object_init_ex(_0, phalcon_mvc_model_transaction_failed_ce); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackRecord"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 355, rollbackMessage, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 354, rollbackMessage, _5); zephir_check_call_status(); zephir_throw_exception_debug(_0, "phalcon/mvc/model/transaction.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -98103,7 +98092,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC); if (zephir_is_true(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 356); + ZEPHIR_CALL_FUNCTION(&_1, "connection_aborted", NULL, 355); zephir_check_call_status(); if (zephir_is_true(_1)) { ZEPHIR_INIT_VAR(_2); @@ -98127,7 +98116,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, setIsNewTransaction) { isNew = zephir_get_boolval(isNew_param); - zephir_update_property_this(this_ptr, SL("_isNewTransaction"), isNew ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (isNew) { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_isNewTransaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -98141,7 +98134,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, setRollbackOnAbort) { rollbackOnAbort = zephir_get_boolval(rollbackOnAbort_param); - zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), rollbackOnAbort ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + if (rollbackOnAbort) { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC); + } else { + zephir_update_property_this(this_ptr, SL("_rollbackOnAbort"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC); + } } @@ -98268,7 +98265,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_ValidationFailed, __construct) { validationMessages = validationMessages_param; - if (zephir_fast_count_int(validationMessages TSRMLS_CC) > 0) { ZEPHIR_OBS_VAR(message); zephir_array_fetch_long(&message, validationMessages, 0, PH_NOISY, "phalcon/mvc/model/validationfailed.zep", 51 TSRMLS_CC); @@ -98337,7 +98333,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, __construct) { options = options_param; - zephir_update_property_this(this_ptr, SL("_options"), options TSRMLS_CC); } @@ -98355,7 +98350,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -98417,7 +98411,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -98451,7 +98444,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { 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)) { zephir_get_strval(option, option_param); } else { @@ -98549,7 +98541,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -98647,7 +98638,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { 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)) { zephir_get_strval(type, type_param); } else { @@ -98673,7 +98663,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(timestamp); ZEPHIR_OBS_VAR(format); if (zephir_array_isset_string_fetch(&format, options, SS("format"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 294, format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 293, format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(generator); @@ -98777,7 +98767,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98811,7 +98800,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98891,7 +98879,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98930,7 +98917,6 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -98949,7 +98935,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_INIT_VAR(_3); ZEPHIR_INIT_VAR(_4); ZEPHIR_INIT_NVAR(_4); - zephir_var_export_ex(_4, &(data) TSRMLS_CC); + zephir_var_export_ex(_4, &data TSRMLS_CC); ZEPHIR_INIT_VAR(_5); ZEPHIR_CONCAT_SVS(_5, "callMacro('", name, "', array(", arguments, "))"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 378, nameExpr); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_0, 377, nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, _7, "(", arguments, ")"); RETURN_MM(); @@ -118993,7 +118963,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { zephir_fetch_params(1, 2, 0, &test_param, &left_param); test = test_param; - zephir_get_strval(left, left_param); @@ -119034,28 +119003,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, testName, SS("value"), 0 TSRMLS_CC)) { if (ZEPHIR_IS_STRING(name, "divisibleby")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 641 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", left, ") % (", _0, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "sameas")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 648 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", left, ") === (", _0, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(name, "type")) { zephir_array_fetch_string(&_1, test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 655 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, _1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, _1); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", left, ") === (", _0, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 378, test); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", &_2, 377, test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, left, " == ", _0); RETURN_MM(); @@ -119074,7 +119043,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_fetch_params(1, 2, 0, &filter_param, &left_param); filter = filter_param; - zephir_get_strval(left, left_param); @@ -119126,12 +119094,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4, SL("expr"), &_5, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4, SL("line"), &line, PH_COPY | PH_SEPARATE); - Z_SET_ISREF_P(funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, funcArguments, _4); - Z_UNSET_ISREF_P(funcArguments); + ZEPHIR_MAKE_REF(funcArguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, funcArguments, _4); + ZEPHIR_UNREF(funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 378, funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 377, funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(arguments, left); @@ -119146,7 +119114,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(_4, funcArguments); ZEPHIR_INIT_NVAR(_0); ZVAL_STRING(_0, "compileFilter", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 379, _0, _4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 378, _0, _4); zephir_check_temp_parameter(_0); zephir_check_call_status(); if (Z_TYPE_P(code) == IS_STRING) { @@ -119331,7 +119299,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { expr = expr_param; - ZEPHIR_INIT_VAR(exprCode); ZVAL_NULL(exprCode); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("_exprLevel") TSRMLS_CC)); @@ -119344,7 +119311,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(_0, expr); ZEPHIR_INIT_NVAR(_1); ZVAL_STRING(_1, "resolveExpression", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 379, _1, _0); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 378, _1, _0); zephir_check_temp_parameter(_1); zephir_check_call_status(); if (Z_TYPE_P(exprCode) == IS_STRING) { @@ -119362,7 +119329,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ) { ZEPHIR_GET_HVALUE(singleExpr, _5); zephir_array_fetch_string(&_6, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 993 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_OBS_NVAR(name); if (zephir_array_isset_string_fetch(&name, singleExpr, SS("name"), 0 TSRMLS_CC)) { @@ -119384,7 +119351,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(left); if (zephir_array_isset_string_fetch(&left, expr, SS("left"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 378, left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 377, left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(type, 311)) { @@ -119395,13 +119362,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 124)) { zephir_array_fetch_string(&_11, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1031 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 382, _11, leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_12, 381, _11, leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(right); if (zephir_array_isset_string_fetch(&right, expr, SS("right"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 378, right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 377, right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(exprCode); @@ -119577,7 +119544,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, SS("start"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 378, start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 377, start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(startCode); @@ -119585,7 +119552,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(end); if (zephir_array_isset_string_fetch(&end, expr, SS("end"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 378, end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 377, end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(endCode); @@ -119677,7 +119644,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(type, 366)) { zephir_array_fetch_string(&_6, expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1261 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 378, _6); + ZEPHIR_CALL_METHOD(&_16, this_ptr, "expression", &_7, 377, _6); zephir_check_call_status(); ZEPHIR_INIT_NVAR(exprCode); ZEPHIR_CONCAT_SVSVSVS(exprCode, "(", _16, " ? ", leftCode, " : ", rightCode, ")"); @@ -119750,7 +119717,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends } } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 383, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 382, statements); zephir_check_call_status(); RETURN_MM(); } @@ -119766,14 +119733,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5 = NULL, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *prefix = NULL, *level, *prefixLevel, *expr, *exprCode = NULL, *bstatement = NULL, *type = NULL, *blockStatements, *forElse = NULL, *code = NULL, *loopContext, *iterator = NULL, *key, *ifExpr, *variable, **_3, *_4 = NULL, *_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_11 = NULL, *_12, *_13 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -119798,7 +119764,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", 1363 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, 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", 1369 TSRMLS_CC); @@ -119828,7 +119794,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } } } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_5); + if (extendsMode) { + ZVAL_BOOL(_5, 1); + } else { + ZVAL_BOOL(_5, 0); + } + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 382, blockStatements, _5); zephir_check_call_status(); ZEPHIR_OBS_VAR(loopContext); zephir_read_property_this(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -119836,27 +119808,27 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_INIT_LNVAR(_4); ZEPHIR_CONCAT_SVSVS(_4, "length = count($", prefixLevel, "iterator); "); + ZEPHIR_CONCAT_SVS(_7, "$", prefixLevel, "loop = new stdClass(); "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_VAR(_8); - ZEPHIR_CONCAT_SVS(_8, "$", prefixLevel, "loop->index = 1; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->length = count($", prefixLevel, "iterator); "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_VAR(_9); - ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index0 = 1; "); + ZEPHIR_CONCAT_SVS(_9, "$", prefixLevel, "loop->index = 1; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_VAR(_10); - ZEPHIR_CONCAT_SVSVS(_10, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); + ZEPHIR_CONCAT_SVS(_10, "$", prefixLevel, "loop->index0 = 1; "); zephir_concat_self(&compilation, _10 TSRMLS_CC); ZEPHIR_INIT_VAR(_11); - ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + ZEPHIR_CONCAT_SVSVS(_11, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length; "); zephir_concat_self(&compilation, _11 TSRMLS_CC); + ZEPHIR_INIT_VAR(_12); + ZEPHIR_CONCAT_SVSVS(_12, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - 1; ?>"); + zephir_concat_self(&compilation, _12 TSRMLS_CC); ZEPHIR_INIT_VAR(iterator); ZEPHIR_CONCAT_SVS(iterator, "$", prefixLevel, "iterator"); } else { @@ -119866,48 +119838,48 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_array_fetch_string(&variable, statement, SL("variable"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1424 TSRMLS_CC); ZEPHIR_OBS_VAR(key); if (zephir_array_isset_string_fetch(&key, statement, SS("key"), 0 TSRMLS_CC)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, " $", variable, ") { "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVSVSVS(_6, " $", variable, ") { "); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, "if (", _13, ") { ?>"); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("?>") TSRMLS_CC); } if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVS(_5, "first = ($", prefixLevel, "incr == 0); "); - zephir_concat_self(&compilation, _5 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_6); - ZEPHIR_CONCAT_SVSVS(_6, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); + ZEPHIR_CONCAT_SVSVS(_6, "first = ($", prefixLevel, "incr == 0); "); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7); - ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_7, "$", prefixLevel, "loop->index = $", prefixLevel, "incr + 1; "); zephir_concat_self(&compilation, _7 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_8); - ZEPHIR_CONCAT_SVSVSVS(_8, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); + ZEPHIR_CONCAT_SVSVS(_8, "$", prefixLevel, "loop->index0 = $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _8 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_9); - ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); + ZEPHIR_CONCAT_SVSVSVS(_9, "$", prefixLevel, "loop->revindex = $", prefixLevel, "loop->length - $", prefixLevel, "incr; "); zephir_concat_self(&compilation, _9 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_10); - ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + ZEPHIR_CONCAT_SVSVSVS(_10, "$", prefixLevel, "loop->revindex0 = $", prefixLevel, "loop->length - ($", prefixLevel, "incr + 1); "); zephir_concat_self(&compilation, _10 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11); + ZEPHIR_CONCAT_SVSVSVS(_11, "$", prefixLevel, "loop->last = ($", prefixLevel, "incr == ($", prefixLevel, "loop->length - 1)); ?>"); + zephir_concat_self(&compilation, _11 TSRMLS_CC); } if (Z_TYPE_P(forElse) == IS_STRING) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } zephir_concat_self(&compilation, code TSRMLS_CC); if (zephir_array_isset_string(statement, SS("if_expr"))) { @@ -119917,9 +119889,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } else { if (zephir_array_isset(loopContext, level)) { - ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVS(_5, ""); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_6); + ZEPHIR_CONCAT_SVS(_6, ""); + zephir_concat_self(&compilation, _6 TSRMLS_CC); } else { zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); } @@ -119951,17 +119923,16 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForElse) { static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { - zephir_fcall_cache_entry *_3 = NULL; + zephir_fcall_cache_entry *_4 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_4 = NULL, *_5; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *blockStatements, *expr, *_0 = NULL, *_1 = NULL, *_2, *_3, *_5 = NULL, *_6, *_7; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -119974,20 +119945,32 @@ 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", 1515); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, 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", 1521 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_3, 383, _2, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_3); + if (extendsMode) { + ZVAL_BOOL(_3, 1); + } else { + ZVAL_BOOL(_3, 0); + } + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 382, _2, _3); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVSV(compilation, "", _1); ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("false_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_4, this_ptr, "_statementlist", &_3, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_6); + if (extendsMode) { + ZVAL_BOOL(_6, 1); + } else { + ZVAL_BOOL(_6, 0); + } + ZEPHIR_CALL_METHOD(&_5, this_ptr, "_statementlist", &_4, 382, blockStatements, _6); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_5); - ZEPHIR_CONCAT_SV(_5, "", _4); - zephir_concat_self(&compilation, _5 TSRMLS_CC); + ZEPHIR_INIT_VAR(_7); + ZEPHIR_CONCAT_SV(_7, "", _5); + zephir_concat_self(&compilation, _7 TSRMLS_CC); } zephir_concat_self_str(&compilation, SL("") TSRMLS_CC); RETURN_CCTOR(compilation); @@ -120006,13 +119989,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1550); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120024,14 +120006,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { zephir_fcall_cache_entry *_0 = NULL; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7; + zval *statement_param = NULL, *extendsMode_param = NULL, *compilation, *expr, *exprCode = NULL, *lifetime = NULL, *_1 = NULL, *_2 = NULL, *_3, *_4, *_5 = NULL, *_6 = NULL, *_7, *_8; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &statement_param, &extendsMode_param); statement = statement_param; - if (!extendsMode_param) { extendsMode = 0; } else { @@ -120044,9 +120025,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", 1570); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 378, expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 377, expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(compilation); ZEPHIR_CONCAT_SVS(compilation, "di->get('viewCache'); "); @@ -120076,16 +120057,22 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_CONCAT_SVS(_2, "if ($_cacheKey[", exprCode, "] === null) { ?>"); zephir_concat_self(&compilation, _2 TSRMLS_CC); zephir_array_fetch_string(&_3, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1593 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 383, _3, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_7); + if (extendsMode) { + ZVAL_BOOL(_7, 1); + } else { + ZVAL_BOOL(_7, 0); + } + ZEPHIR_CALL_METHOD(&_6, this_ptr, "_statementlist", NULL, 382, _3, _7); zephir_check_call_status(); zephir_concat_self(&compilation, _6 TSRMLS_CC); ZEPHIR_OBS_NVAR(lifetime); if (zephir_array_isset_string_fetch(&lifetime, statement, SS("lifetime"), 0 TSRMLS_CC)) { zephir_array_fetch_string(&_4, lifetime, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1599 TSRMLS_CC); if (ZEPHIR_IS_LONG(_4, 265)) { - zephir_array_fetch_string(&_7, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); + zephir_array_fetch_string(&_8, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1600 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_5); - ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _7, "); "); + ZEPHIR_CONCAT_SVSVSVS(_5, "save(", exprCode, ", null, $", _8, "); "); zephir_concat_self(&compilation, _5 TSRMLS_CC); } else { zephir_array_fetch_string(&_4, lifetime, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1602 TSRMLS_CC); @@ -120120,7 +120107,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { statement = statement_param; - ZEPHIR_OBS_VAR(assignments); if (!(zephir_array_isset_string_fetch(&assignments, statement, SS("assignments"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1623); @@ -120135,10 +120121,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ) { ZEPHIR_GET_HVALUE(assignment, _2); zephir_array_fetch_string(&_3, assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1633 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 378, _3); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_4, 377, _3); zephir_check_call_status(); zephir_array_fetch_string(&_5, assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 378, _5); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_4, 377, _5); zephir_check_call_status(); zephir_array_fetch_string(&_6, assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1644 TSRMLS_CC); do { @@ -120190,13 +120176,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1684); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120215,13 +120200,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileReturn) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1704); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -120232,14 +120216,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0; + zval *statement_param = NULL, *extendsMode_param = NULL, *autoescape, *oldAutoescape, *compilation = NULL, *_0, *_1; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -120252,7 +120235,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { zephir_read_property_this(&oldAutoescape, this_ptr, SL("_autoescape"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_autoescape"), autoescape TSRMLS_CC); zephir_array_fetch_string(&_0, statement, SL("block_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1733 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 383, _0, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_VAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 382, _0, _1); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_autoescape"), oldAutoescape TSRMLS_CC); RETURN_CCTOR(compilation); @@ -120271,13 +120260,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { statement = statement_param; - ZEPHIR_OBS_VAR(expr); if (!(zephir_array_isset_string_fetch(&expr, statement, SS("expr"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1754); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 378, expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 377, expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1762 TSRMLS_CC); if (ZEPHIR_IS_LONG(_0, 350)) { @@ -120313,7 +120301,6 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { statement = statement_param; - ZEPHIR_OBS_VAR(pathExpr); if (!(zephir_array_isset_string_fetch(&pathExpr, statement, SS("path"), 0 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1799); @@ -120351,14 +120338,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 378, pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 377, pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(params); if (!(zephir_array_isset_string_fetch(¶ms, statement, SS("params"), 0 TSRMLS_CC))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 378, params); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_3, 377, params); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", path, ", ", _1, "); ?>"); RETURN_MM(); @@ -120372,14 +120359,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { HashPosition _3; int ZEPHIR_LAST_CALL_STATUS; zend_bool extendsMode; - zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; + zval *statement_param = NULL, *extendsMode_param = NULL, *code, *name, *defaultValue = NULL, *macroName, *parameters, *position = NULL, *parameter = NULL, *variableName = NULL, *blockStatements, *_0, *_1 = NULL, *_2 = NULL, **_5, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_9 = NULL, *_10 = NULL, *_12 = NULL; zval *statement = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &statement_param, &extendsMode_param); statement = statement_param; - extendsMode = zephir_get_boolval(extendsMode_param); @@ -120439,7 +120425,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, parameter, SS("default"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 378, defaultValue); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_11, 377, defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_12); ZEPHIR_CONCAT_SVSVS(_12, "$", variableName, " = ", _10, ";"); @@ -120455,7 +120441,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } ZEPHIR_OBS_VAR(blockStatements); if (zephir_array_isset_string_fetch(&blockStatements, statement, SS("block_statements"), 0 TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 383, blockStatements, (extendsMode ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false))); + ZEPHIR_INIT_NVAR(_1); + if (extendsMode) { + ZVAL_BOOL(_1, 1); + } else { + ZVAL_BOOL(_1, 0); + } + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 382, blockStatements, _1); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_2); ZEPHIR_CONCAT_VS(_2, _10, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 417, options, using, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromresultset", &_9, 416, options, using, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134510,7 +134584,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(_6, "PHP_EOL"); ZEPHIR_INIT_LNVAR(_7); ZEPHIR_CONCAT_SV(_7, "", _6); - ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 418, options, value, _7); + ZEPHIR_CALL_SELF(&_8, "_optionsfromarray", &_10, 417, options, value, _7); zephir_check_call_status(); zephir_concat_self(&code, _8 TSRMLS_CC); } else { @@ -134612,7 +134686,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromResultset) { ZEPHIR_INIT_NVAR(params); array_init(params); } - zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE, "phalcon/tag/select.zep", 218); + zephir_array_update_long(¶ms, 0, &option, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); ZEPHIR_INIT_NVAR(_4); ZEPHIR_CALL_USER_FUNC_ARRAY(_4, using, params); zephir_check_call_status(); @@ -134648,12 +134722,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 183, optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 182, optionValue); zephir_check_call_status(); if (Z_TYPE_P(optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(_4); ZEPHIR_GET_CONSTANT(_4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 418, optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5, "_optionsfromarray", &_6, 417, optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(_7); ZEPHIR_GET_CONSTANT(_7, "PHP_EOL"); @@ -134728,7 +134802,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, __construct) { options = options_param; - ZEPHIR_OBS_VAR(interpolator); if (!(zephir_array_isset_string_fetch(&interpolator, options, SS("interpolator"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(interpolator); @@ -134770,7 +134843,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134801,7 +134873,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134845,7 +134916,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134886,7 +134956,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { 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)) { zephir_get_strval(translateKey, translateKey_param); } else { @@ -134916,7 +134985,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135046,8 +135114,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, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 426, 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", 43); @@ -135060,7 +135127,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, 428, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 427, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -135082,7 +135149,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_SINIT_VAR(_0); ZVAL_STRING(&_0, "rb", 0); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 286, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 285, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(_1); @@ -135096,7 +135163,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 429, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 428, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -135138,7 +135205,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135173,7 +135239,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135253,8 +135318,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { options = options_param; - - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -135275,7 +135339,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135287,22 +135350,22 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 422); + ZEPHIR_CALL_FUNCTION(&_0, "func_num_args", NULL, 421); zephir_check_call_status(); if (ZEPHIR_GT_LONG(_0, 2)) { ZEPHIR_SINIT_VAR(_1); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 421, &_1); + ZEPHIR_CALL_FUNCTION(&domain, "func_get_arg", NULL, 420, &_1); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(domain); ZVAL_NULL(domain); } if (!(zephir_is_true(domain))) { - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 430, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 429, index); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 431, domain, index); + ZEPHIR_CALL_FUNCTION(&translation, "dgettext", NULL, 430, domain, index); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135324,7 +135387,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135352,7 +135414,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid1, msgid1_param); } else { @@ -135363,7 +135424,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(msgid2, msgid2_param); } else { @@ -135371,10 +135431,9 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZVAL_EMPTY_STRING(msgid2); } if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - count = Z_LVAL_P(count_param); if (!placeholders) { placeholders = ZEPHIR_GLOBAL(global_null); @@ -135387,7 +135446,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135397,15 +135455,15 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { } - if (!(domain && Z_STRLEN_P(domain))) { + if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 432, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 431, msgid1, msgid2, &_0); zephir_check_call_status(); } else { ZEPHIR_SINIT_NVAR(_0); ZVAL_LONG(&_0, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 433, domain, msgid1, msgid2, &_0); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 432, domain, msgid1, msgid2, &_0); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -135427,7 +135485,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135436,7 +135493,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { } - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 434, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, domain); zephir_check_call_status(); RETURN_MM(); @@ -135451,7 +135508,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, 434, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 433, _0); zephir_check_call_status(); RETURN_MM(); @@ -135469,7 +135526,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { 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)) { zephir_get_strval(domain, domain_param); } else { @@ -135513,14 +135569,14 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, key, value); zephir_check_call_status(); } } } else { ZEPHIR_CALL_METHOD(&_4, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 435, _4, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 434, _4, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -135553,7 +135609,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { 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)) { zephir_get_strval(locale, locale_param); } else { @@ -135563,7 +135618,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 168); + ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 167); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); @@ -135576,12 +135631,12 @@ 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", NULL, 436, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", NULL, 435, _4); zephir_check_call_status(); _5 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_6); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 416, &_6, _5); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 415, &_6, _5); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -135613,7 +135668,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, prepareOptions) { options = options_param; - if (!(zephir_array_isset_string(options, SS("locale")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter \"locale\" is required", "phalcon/translate/adapter/gettext.zep", 231); return; @@ -135693,8 +135747,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, 427, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 426, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -135723,7 +135776,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135758,7 +135810,6 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { 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)) { zephir_get_strval(index, index_param); } else { @@ -135810,7 +135861,6 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135882,7 +135932,6 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde 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)) { zephir_get_strval(translation, translation_param); } else { @@ -135899,9 +135948,9 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde _0 = (zephir_fast_count_int(placeholders TSRMLS_CC)) ? 1 : 0; } if (_0) { - Z_SET_ISREF_P(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 381, placeholders, translation); - Z_UNSET_ISREF_P(placeholders); + ZEPHIR_MAKE_REF(placeholders); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 380, placeholders, translation); + ZEPHIR_UNREF(placeholders); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "sprintf", 0); @@ -135979,7 +136028,6 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { 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)) { zephir_get_strval(message, message_param); } else { @@ -136027,7 +136075,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { 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)) { zephir_get_strval(type, type_param); } else { @@ -136060,7 +136107,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { 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)) { zephir_get_strval(message, message_param); } else { @@ -136093,7 +136139,6 @@ static PHP_METHOD(Phalcon_Validation_Message, setField) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136157,12 +136202,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { message = message_param; - object_init_ex(return_value, phalcon_validation_message_ce); 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, 437, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 436, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -136268,7 +136312,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136294,7 +136337,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136320,7 +136362,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136355,7 +136396,6 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { @@ -136455,10 +136495,9 @@ 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)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } - index = Z_LVAL_P(index_param); @@ -136479,10 +136518,9 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { zephir_fetch_params(1, 2, 0, &index_param, &message); if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a long/integer") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } - index = Z_LVAL_P(index_param); @@ -136606,7 +136644,6 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { 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)) { zephir_get_strval(fieldName, fieldName_param); } else { @@ -136753,7 +136790,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136776,7 +136812,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 438, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alnum", NULL, 437, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136809,7 +136845,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136856,7 +136892,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -136879,7 +136914,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 439, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_alpha", NULL, 438, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -136912,7 +136947,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -136959,7 +136994,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137029,7 +137063,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137075,7 +137109,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137093,7 +137126,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(&_1, this_ptr, "compare", NULL, 440, value, valueWith); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "compare", NULL, 439, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_1))) { ZEPHIR_INIT_NVAR(_0); @@ -137136,7 +137169,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137175,12 +137208,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_SINIT_VAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 196, a, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "mb_strtolower", &_5, 195, a, &_3); zephir_check_call_status(); zephir_get_strval(a, _4); ZEPHIR_SINIT_NVAR(_3); ZVAL_STRING(&_3, "utf-8", 0); - ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 196, b, &_3); + ZEPHIR_CALL_FUNCTION(&_6, "mb_strtolower", &_5, 195, b, &_3); zephir_check_call_status(); zephir_get_strval(b, _6); } @@ -137223,7 +137256,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137234,7 +137266,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, 441, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 440, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0); @@ -137267,7 +137299,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_2); ZVAL_STRING(_2, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _1, field, _2); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _1, field, _2); zephir_check_temp_parameter(_2); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137298,7 +137330,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_get_arrval(_2, _0); ZEPHIR_CPY_WRT(digits, _2); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 441, digits); zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 87); for ( @@ -137318,7 +137350,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 70, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 443, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 442, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -137360,7 +137392,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137383,7 +137414,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { if (_2) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 444, value); + ZEPHIR_CALL_FUNCTION(&_3, "ctype_digit", NULL, 443, value); zephir_check_call_status(); if (!(zephir_is_true(_3))) { ZEPHIR_INIT_NVAR(_1); @@ -137416,7 +137447,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_5); ZVAL_STRING(_5, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _4, field, _5); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _4, field, _5); zephir_check_temp_parameter(_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137463,7 +137494,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137488,7 +137518,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -137521,7 +137551,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137568,7 +137598,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137634,7 +137663,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _3, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _3, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -137685,7 +137714,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -137750,7 +137778,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11); ZVAL_STRING(_11, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 437, _9, field, _11); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_12, 436, _9, field, _11); zephir_check_temp_parameter(_11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -137790,7 +137818,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _20 = _18; if (!(_20)) { zephir_array_fetch_string(&_21, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 234, _21); + ZEPHIR_CALL_FUNCTION(&_9, "is_uploaded_file", NULL, 233, _21); zephir_check_call_status(); _20 = !zephir_is_true(_9); } @@ -137816,7 +137844,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_23); ZVAL_STRING(_23, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137853,7 +137881,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _9, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _9, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -137899,7 +137927,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 115 TSRMLS_CC); } zephir_array_fetch_long(&_28, matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _28); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _28); zephir_check_call_status(); ZEPHIR_INIT_VAR(_30); zephir_array_fetch(&_31, byteUnits, unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 118 TSRMLS_CC); @@ -137909,9 +137937,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(bytes); mul_function(bytes, _22, _30 TSRMLS_CC); zephir_array_fetch_string(&_33, value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 120 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 305, _33); + ZEPHIR_CALL_FUNCTION(&_22, "floatval", &_29, 304, _33); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 305, bytes); + ZEPHIR_CALL_FUNCTION(&_34, "floatval", &_29, 304, bytes); zephir_check_call_status(); if (ZEPHIR_GT(_22, _34)) { ZEPHIR_INIT_NVAR(_30); @@ -137936,7 +137964,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_36); ZVAL_STRING(_36, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 437, _35, field, _36); + ZEPHIR_CALL_METHOD(NULL, _30, "__construct", &_12, 436, _35, field, _36); zephir_check_temp_parameter(_36); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _30); @@ -137962,12 +137990,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { if ((zephir_function_exists_ex(SS("finfo_open") TSRMLS_CC) == SUCCESS)) { ZEPHIR_SINIT_NVAR(_32); ZVAL_LONG(&_32, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 231, &_32); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 230, &_32); zephir_check_call_status(); zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 143 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 232, tmp, _28); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 231, tmp, _28); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 233, tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 232, tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(mime); @@ -137998,7 +138026,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _22, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _22, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138022,7 +138050,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_37) { zephir_array_fetch_string(&_28, value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 164 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 242, _28); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 241, _28); zephir_check_call_status(); ZEPHIR_OBS_VAR(width); zephir_array_fetch_long(&width, tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 165 TSRMLS_CC); @@ -138083,7 +138111,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_23); ZVAL_STRING(_23, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 437, _35, field, _23); + ZEPHIR_CALL_METHOD(NULL, _11, "__construct", &_12, 436, _35, field, _23); zephir_check_temp_parameter(_23); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11); @@ -138139,7 +138167,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_26); ZVAL_STRING(_26, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 437, _41, field, _26); + ZEPHIR_CALL_METHOD(NULL, _23, "__construct", &_12, 436, _41, field, _26); zephir_check_temp_parameter(_26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _23); @@ -138188,7 +138216,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138257,7 +138284,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _4); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _4); zephir_check_temp_parameter(_4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138304,7 +138331,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138354,7 +138380,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_temp_parameter(_1); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 360, value, domain, strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 359, value, domain, strict); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -138390,7 +138416,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138437,7 +138463,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138496,7 +138521,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _5, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5); @@ -138543,7 +138568,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138589,7 +138613,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_3); ZVAL_STRING(_3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _2, field, _3); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _2, field, _3); zephir_check_temp_parameter(_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); @@ -138636,7 +138660,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138705,7 +138728,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _4, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4); @@ -138753,7 +138776,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -138804,7 +138826,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); } if ((zephir_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 361, value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 360, value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(length); @@ -138839,7 +138861,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 437, _4, field, _6); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", &_7, 436, _4, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -138876,7 +138898,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 437, _4, field, _8); + ZEPHIR_CALL_METHOD(NULL, _6, "__construct", &_7, 436, _4, field, _8); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6); @@ -138925,7 +138947,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -139017,7 +139038,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7); ZVAL_STRING(_7, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 437, _6, field, _7); + ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 436, _6, field, _7); zephir_check_temp_parameter(_7); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0); @@ -139064,7 +139085,6 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { 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)) { zephir_get_strval(field, field_param); } else { @@ -139089,7 +139109,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_SINIT_VAR(_3); ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 193, value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 192, value, &_3); zephir_check_call_status(); if (!(zephir_is_true(_4))) { ZEPHIR_INIT_NVAR(_1); @@ -139122,7 +139142,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6); ZVAL_STRING(_6, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 437, _5, field, _6); + ZEPHIR_CALL_METHOD(NULL, _1, "__construct", NULL, 436, _5, field, _6); zephir_check_temp_parameter(_6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1); diff --git a/build/safe/php_phalcon.h b/build/safe/php_phalcon.h index 07c26e8d906..4a60e53b947 100644 --- a/build/safe/php_phalcon.h +++ b/build/safe/php_phalcon.h @@ -199,7 +199,7 @@ typedef zend_function zephir_fcall_cache_entry; #define PHP_PHALCON_VERSION "2.0.8" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.7.1b" +#define PHP_PHALCON_ZEPVERSION "0.8.0a" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db {
Memory
Usage", _13, "